模板: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:{{{前缀尊称|}}}|< | {{#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. 军事背景 (直接集成,不用嵌套!) ----------> | ||
{{#if:{{{效忠|}}}{{{服役|}}}{{{军衔|}}}{{{部队|}}}{{{指挥|}}}{{{参战|}}}{{{军事奖项|}}}| | |||
{{#if:{{{ | |||
|- | |- | ||
! colspan="2" style="background: #eee; text-align: center;" {{!}} 军事背景 | |||
|- | |||
{{#if:{{{效忠|}}}| | |||
! 效忠 | |||
{{!}} {{{效忠}}} | |||
}} | |||
|- | |||
{{#if:{{{服役|}}}| | |||
! 服役 | |||
{{!}} {{{服役}}} | |||
}} | |||
|- | |||
{{#if:{{{服役时间|}}}| | |||
! 服役时间 | |||
{{!}} {{{服役时间}}} | |||
}} | |||
|- | |||
{{#if:{{{军衔|}}}| | |||
! 军衔 | |||
{{!}} {{{军衔}}} | |||
}} | |||
|- | |||
{{#if:{{{部队|}}}| | |||
! 部队 | |||
{{!}} {{{部队}}} | |||
}} | |||
|- | |||
{{#if:{{{指挥|}}}| | |||
! 指挥 | |||
{{!}} {{{指挥}}} | |||
}} | |||
|- | |||
{{#if:{{{参战|}}}| | |||
! 参战 | |||
{{!}} {{{参战}}} | |||
}} | |||
|- | |||
{{#if:{{{军事奖项|}}}| | |||
! 获奖 | |||
{{!}} {{{军事奖项}}} | |||
}} | |||
}} | }} | ||
<!---------- 4. | <!---------- 4. 自由扩展区域 (这就叫自由!) ----------> | ||
{{#if:{{{ | <!-- 只要你填了“自定义标签1”,这一行就会出现。不需要改模板 --> | ||
{{#if:{{{自定义标签1|}}}| | |||
|- | |||
! {{{自定义标签1}}} | |||
{{!}} {{{自定义内容1|}}} | |||
}} | |||
{{#if:{{{自定义标签2|}}}| | |||
|- | |||
! {{{自定义标签2}}} | |||
{{!}} {{{自定义内容2|}}} | |||
}} | |||
{{#if:{{{自定义标签3|}}}| | |||
|- | |||
! {{{自定义标签3}}} | |||
{{!}} {{{自定义内容3|}}} | |||
}} | |||
{{#if:{{{自定义标签4|}}}| | |||
|- | |||
! {{{自定义标签4}}} | |||
{{!}} {{{自定义内容4|}}} | |||
}} | |||
{{#if:{{{自定义标签5|}}}| | |||
|- | |- | ||
{{ | ! {{{自定义标签5}}} | ||
{{!}} {{{自定义内容5|}}} | |||
}} | }} | ||
<!---------- 5. 最后的嵌套接口 (备用) ----------> | |||
{{{module|}}} | |||
{{{其他|}}} | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||