模板: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 | <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;" 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:{{{前缀尊称|}}}|<span style="font-size: small; font-weight: normal">{{{前缀尊称}}}</span><br />}}{{{姓名|{{PAGENAME}}}}}{{#if:{{{后缀尊称|}}}|<br /><span style="font-size: small; font-weight: normal">{{{后缀尊称}}}</span>}} | ||
| 第6行: | 第6行: | ||
{{!}} 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. 政治职务循环区域 (核心功能,保留) ----------> | ||
{{Infobox officeholder/office | {{Infobox officeholder/office | ||
| office = {{{职务|}}} | | office = {{{职务|}}} | ||
| 第57行: | 第57行: | ||
}} | }} | ||
<!---------- | <!---------- 2. 个人资料区域 (中文参数) ----------> | ||
|- | |- | ||
! colspan="2" style="background: #eee; text-align: center;" {{!}} 个人资料 | ! colspan="2" style="background: #eee; text-align: center;" {{!}} 个人资料 | ||
| 第131行: | 第131行: | ||
}} | }} | ||
<!---------- | <!---------- 3. 军事嵌套接口 (这就是你要的!) ----------> | ||
{{#if:{{{ | <!-- 这里不再写死rank/unit,而是留一个大坑,让你填入 child=yes 的模板 --> | ||
{{#if:{{{军事|}}}| | |||
|- | |- | ||
! colspan="2" style=" | {{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{军事}}} | ||
{{!}} {{{ | |||
}} | }} | ||
<!---------- 4. 其他通用接口 ----------> | |||
{{#if:{{{其他|}}}{{{module|}}}| | |||
|- | |- | ||
{{ | {{!}} colspan="2" style="padding:0; border:none; margin:0;" {{!}} {{{其他|{{{module|}}}}}} | ||
{{ | |||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||