跳转到内容
打开/关闭菜单
  • 451 条目
  • 808 文件
  • 22 用户
  • 9259 编辑
Blockland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Infobox officeholder:修订间差异

来自Blockland Wiki
无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly>{| class="infobox vcard" style="width: 22em; font-size: 88%; line-height: 1.5em; float:right; clear:right; margin:0 0 1em 1em; border-spacing:3px;"
<includeonly>{| class="infobox vcard" style="width: 22em; font-size: 88%; line-height: 1.5em; float:right; clear:right; margin:0 0 1em 1em; border-spacing:3px;"
! colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; background-color: lavender; color: black;" class="fn" |  
! colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; background-color: lavender; color: black; padding-bottom: 0.3em;" class="fn" |  
{{#if:{{{前缀尊称|}}}|<span style="font-size: small; font-weight: normal">{{{前缀尊称}}}</span><br />}}{{{姓名|{{PAGENAME}}}}}{{#if:{{{后缀尊称|}}}|<br /><span style="font-size: small; font-weight: normal">{{{后缀尊称}}}</span>}}
{{#if:{{{前缀尊称|}}}|<div style="font-size: 75%; font-weight: normal; line-height: 1.2;">{{{前缀尊称}}}</div>}}<!--
-->{{{姓名|{{PAGENAME}}}}}<!--
-->{{#if:{{{英文名|}}}|<div style="font-size: 80%; font-weight: normal; margin-top: 2px;">{{{英文名}}}</div>}}<!--
-->{{#if:{{{后缀尊称|}}}|<div style="font-size: 75%; font-weight: normal; line-height: 1.2;">{{{后缀尊称}}}</div>}}
|-
|-
{{#if:{{{图像|}}}|
{{#if:{{{图像|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} [[File:{{{图像}}}|{{#if:{{{图像大小|}}}|{{{图像大小}}}|220px}}|frameless|alt={{{alt|}}}]] {{#if:{{{图像说明|}}}|<br /><div style="font-size: 90%; padding-top: 0.3em;">{{{图像说明}}}</div>}}
{{!}} colspan="2" style="text-align: center;" {{!}} [[File:{{{图像}}}|{{#if:{{{图像大小|}}}|{{{图像大小}}}|220px}}|frameless|alt={{{alt|}}}]] {{#if:{{{图像说明|}}}|<br /><div style="font-size: 90%; padding-top: 0.3em;">{{{图像说明}}}</div>}}
}}
}}
<!---------- 1. 政治职务循环区域 (核心功能,保留) ---------->
<!---------- 1. 政治职务循环 (使用了注释符消除空隙) ---------->
{{Infobox officeholder/office
{{Infobox officeholder/office
| office = {{{职务|}}}
| office = {{{职务|}}}
第18行: 第21行:
| successor = {{{继任|}}}
| successor = {{{继任|}}}
| constituency = {{{选区|}}}
| constituency = {{{选区|}}}
}}
}}<!--
{{#if:{{{职务1|}}}|
-->{{#if:{{{职务1|}}}|
{{Infobox officeholder/office
{{Infobox officeholder/office
| office = {{{职务1|}}}
| office = {{{职务1|}}}
第31行: 第34行:
| successor = {{{继任1|}}}
| successor = {{{继任1|}}}
| constituency = {{{选区1|}}}
| constituency = {{{选区1|}}}
}}
}} }}<!--
}}
-->{{#if:{{{职务2|}}}|
{{#if:{{{职务2|}}}|
{{Infobox officeholder/office
{{Infobox officeholder/office
| office = {{{职务2|}}}
| office = {{{职务2|}}}
第45行: 第47行:
| successor = {{{继任2|}}}
| successor = {{{继任2|}}}
| constituency = {{{选区2|}}}
| constituency = {{{选区2|}}}
}}
}} }}<!--
}}
-->{{#if:{{{职务3|}}}|
{{#if:{{{职务3|}}}|
{{Infobox officeholder/office
{{Infobox officeholder/office
| office = {{{职务3|}}}
| office = {{{职务3|}}}
第54行: 第55行:
| predecessor = {{{前任3|}}}
| predecessor = {{{前任3|}}}
| successor = {{{继任3|}}}
| successor = {{{继任3|}}}
}}
}} }}<!--
}}
-->
 
<!---------- 2. 个人资料区域 ---------->
<!---------- 2. 个人资料区域 (中文参数) ---------->
|-
|-
! colspan="2" style="background: #eee; text-align: center;" {{!}} 个人资料
! colspan="2" style="background: #eee; text-align: center;" {{!}} 个人资料
第131行: 第131行:
}}
}}


<!---------- 3. 军事嵌套接口 (这就是你要的!) ---------->
<!---------- 3. 军事背景 (直接集成,不用嵌套!) ---------->
<!-- 这里不再写死rank/unit,而是留一个大坑,让你填入 child=yes 的模板 -->
{{#if:{{{效忠|}}}{{{服役|}}}{{{军衔|}}}{{{部队|}}}{{{指挥|}}}{{{参战|}}}{{{军事奖项|}}}|
{{#if:{{{军事|}}}|
|-
|-
{{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{军事}}}
! colspan="2" style="background: #eee; text-align: center;" {{!}} 军事背景
|-
{{#if:{{{效忠|}}}|
! 效忠
{{!}} {{{效忠}}}
}}
|-
{{#if:{{{服役|}}}|
! 服役
{{!}} {{{服役}}}
}}
|-
{{#if:{{{服役时间|}}}|
! 服役时间
{{!}} {{{服役时间}}}
}}
|-
{{#if:{{{军衔|}}}|
! 军衔
{{!}} {{{军衔}}}
}}
|-
{{#if:{{{部队|}}}|
! 部队
{{!}} {{{部队}}}
}}
|-
{{#if:{{{指挥|}}}|
! 指挥
{{!}} {{{指挥}}}
}}
|-
{{#if:{{{参战|}}}|
! 参战
{{!}} {{{参战}}}
}}
|-
{{#if:{{{军事奖项|}}}|
! 获奖
{{!}} {{{军事奖项}}}
}}
}}
}}


<!---------- 4. 其他通用接口 ---------->
<!---------- 4. 自由扩展区域 (这就叫自由!) ---------->
{{#if:{{{其他|}}}{{{module|}}}|
<!-- 只要你填了“自定义标签1”,这一行就会出现。不需要改模板 -->
{{#if:{{{自定义标签1|}}}|
|-
! {{{自定义标签1}}}
{{!}} {{{自定义内容1|}}}
}}
{{#if:{{{自定义标签2|}}}|
|-
! {{{自定义标签2}}}
{{!}} {{{自定义内容2|}}}
}}
{{#if:{{{自定义标签3|}}}|
|-
! {{{自定义标签3}}}
{{!}} {{{自定义内容3|}}}
}}
{{#if:{{{自定义标签4|}}}|
|-
! {{{自定义标签4}}}
{{!}} {{{自定义内容4|}}}
}}
{{#if:{{{自定义标签5|}}}|
|-
|-
{{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{其他|{{{module|}}}}}}
! {{{自定义标签5}}}
{{!}} {{{自定义内容5|}}}
}}
}}
<!---------- 5. 最后的嵌套接口 (备用) ---------->
{{{module|}}}
{{{其他|}}}


|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

2025年11月19日 (三) 20:51的版本