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

模板:Infobox officeholder:修订间差异

来自Blockland Wiki
无编辑摘要
无编辑摘要
 
(未显示同一用户的10个中间版本)
第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>{{Infobox
! colspan="2" style="text-align: center; font-size: 125%; font-weight: bold; background-color: lavender; color: black;" class="fn" |
| name = {{{姓名|{{PAGENAME}}}}}
{{#if:{{{前缀尊称|}}}|<span style="font-size: small; font-weight: normal">{{{前缀尊称}}}</span><br />}}{{{姓名|{{PAGENAME}}}}}{{#if:{{{后缀尊称|}}}|<br /><span style="font-size: small; font-weight: normal">{{{后缀尊称}}}</span>}}
| bodyclass = ve-infobox-country
|-
| above = {{#if:{{{前缀尊称|}}}|<div style="font-size: 75%; font-weight: normal;">{{{前缀尊称}}}</div>}}{{{姓名|{{PAGENAME}}}}}{{#if:{{{英文名|}}}|<div style="font-size: 80%; font-weight: normal;">{{{英文名}}}</div>}}{{#if:{{{后缀尊称|}}}|<div style="font-size: 75%; font-weight: normal;">{{{后缀尊称}}}</div>}}
{{#if:{{{图像|}}}|
| abovestyle = background-color: #CCEEFF;
{{!}} 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. 政治职务循环区域 (核心功能,保留) ---------->
{{Infobox officeholder/office
| office = {{{职务|}}}
| term_start = {{{就任日期|}}}
| term_end = {{{卸任日期|}}}
| president = {{{总统|}}}
| monarch = {{{君主|}}}
| premier = {{{总理|}}}
| deputy = {{{副职|}}}
| predecessor = {{{前任|}}}
| successor = {{{继任|}}}
| constituency = {{{选区|}}}
}}
{{#if:{{{职务1|}}}|
{{Infobox officeholder/office
| office = {{{职务1|}}}
| term_start = {{{就任日期1|}}}
| term_end = {{{卸任日期1|}}}
| president = {{{总统1|}}}
| monarch = {{{君主1|}}}
| premier = {{{总理1|}}}
| deputy = {{{副职1|}}}
| predecessor = {{{前任1|}}}
| successor = {{{继任1|}}}
| constituency = {{{选区1|}}}
}}
}}
{{#if:{{{职务2|}}}|
{{Infobox officeholder/office
| office = {{{职务2|}}}
| term_start = {{{就任日期2|}}}
| term_end = {{{卸任日期2|}}}
| president = {{{总统2|}}}
| monarch = {{{君主2|}}}
| premier = {{{总理2|}}}
| deputy = {{{副职2|}}}
| predecessor = {{{前任2|}}}
| successor = {{{继任2|}}}
| constituency = {{{选区2|}}}
}}
}}
{{#if:{{{职务3|}}}|
{{Infobox officeholder/office
| office = {{{职务3|}}}
| term_start = {{{就任日期3|}}}
| term_end = {{{卸任日期3|}}}
| predecessor = {{{前任3|}}}
| successor = {{{继任3|}}}
}}
}}


<!---------- 2. 个人资料区域 (中文参数) ---------->
| image1 = {{{图像|}}}
|-
| caption1 = {{{图像说明|}}}
! colspan="2" style="background: #eee; text-align: center;" {{!}} 个人资料
| image2 = {{#if:{{{签名|}}}|[[File:{{{签名}}}|128px|center|frameless]]}}
|-
{{#if:{{{原文名|}}}|
! 原文名
{{!}} <span class="nickname">{{{原文名}}}</span>
}}
|-
{{#if:{{{出生日期|}}}|
! 出生
{{!}} {{{出生日期}}} {{#if:{{{出生地点|}}}|<br />{{{出生地点}}}}}
}}
|-
{{#if:{{{逝世日期|}}}|
! 逝世
{{!}} {{{逝世日期}}} {{#if:{{{逝世地点|}}}|<br />{{{逝世地点}}}}}
}}
|-
{{#if:{{{死因|}}}|
! 死因
{{!}} {{{死因}}}
}}
|-
{{#if:{{{国籍|}}}|
! 国籍
{{!}} {{{国籍}}}
}}
|-
{{#if:{{{政党|}}}|
! 政党
{{!}} {{{政党}}}
}}
|-
{{#if:{{{配偶|}}}|
! 配偶
{{!}} {{{配偶}}}
}}
|-
{{#if:{{{儿女|}}}|
! 儿女
{{!}} {{{儿女}}}
}}
|-
{{#if:{{{亲属|}}}|
! 亲属
{{!}} {{{亲属}}}
}}
|-
{{#if:{{{母校|}}}|
! 母校
{{!}} {{{母校}}}
}}
|-
{{#if:{{{职业|}}}|
! 职业
{{!}} {{{职业}}}
}}
|-
{{#if:{{{奖项|}}}|
! 奖项
{{!}} {{{奖项}}}
}}
|-
{{#if:{{{签名|}}}|
! 签名
{{!}} [[File:{{{签名}}}|128px|frameless]]
}}
|-
{{#if:{{{网站|}}}|
! 网站
{{!}} {{{网站}}}
}}


<!---------- 3. 军事嵌套接口 (这就是你要的!) ---------->
| headerstyle = background-color: #F3F3F3;
<!-- 这里不再写死rank/unit,而是留一个大坑,让你填入 child=yes 的模板 -->
| labelstyle = width: 25%;
{{#if:{{{军事|}}}|
| datastyle = width: 75%;
|-
{{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{军事}}}
}}


<!---------- 4. 其他通用接口 ---------->
| header1 = {{#if:{{{原文名|}}}{{{出生日期|}}}{{{逝世日期|}}}{{{国籍|}}}|个人资料}}
{{#if:{{{其他|}}}{{{module|}}}|
|-
{{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{其他|{{{module|}}}}}}
}}


|}</includeonly><noinclude>
| label2 = 原文名
| data2 = {{{原文名|}}}
 
| label3 = 出生
| data3 = {{{出生日期|}}} {{#if:{{{出生地点|}}}|<br />{{{出生地点}}}}}
 
| label4 = 逝世
| data4 = {{{逝世日期|}}} {{#if:{{{逝世地点|}}}|<br />{{{逝世地点}}}}}
 
| label5 = 国籍
| data5 = {{{国籍|}}}
 
| header6 = {{#if:{{{政党|}}}{{{母校|}}}{{{职业|}}}|社会背景}}
 
| label7 = 政党
| data7 = {{{政党|}}}
 
| label8 = 母校
| data8 = {{{母校|}}}
 
| label9 = 职业
| data9 = {{{职业|}}}
 
| header10 = {{#if:{{{配偶|}}}{{{儿女|}}}|家庭生活}}
 
| label11 = 配偶
| data11 = {{{配偶|}}}
 
| label12 = 儿女
| data12 = {{{儿女|}}}
 
| header13 = {{{模块标题|}}}
| data14 = {{{模块|}}}
 
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

2026年4月13日 (一) 17:39的最新版本