模板:CharacterBox:修订间差异

Create CharacterBox infobox template with TemplateData
 
Fix: use {{!}} instead of | for table pipes inside #if blocks
第1行: 第1行:
<noinclude>
<noinclude>
人物信息框模板。在角色词条页面顶部使用。
人物信息框模板。在角色词条页面顶部使用。
用法示例:
<pre>
{{CharacterBox
| name      = 唐浩
| image      = 唐浩.jpg
| aliases    = 张寒、魂天帝
| location  = 不定
| faction    = 万兽门
| identity  = 客卿
| age        = 34岁
| race      = 人族
| cultivation= 半步元婴
| skills    = 灵血神通
}}
</pre>


<templatedata>
<templatedata>
第77行: 第93行:
</templatedata>
</templatedata>
</noinclude><includeonly>{| class="infobox biography vcard"
</noinclude><includeonly>{| class="infobox biography vcard"
|+ | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|+ '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
|-
|-
! colspan="2" style="text-align:center;" &#124; [[File:{{{image}}}|200px|alt={{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}]]}}
! colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|200px]]}}
{{#if:{{{aliases|}}}|
{{#if:{{{aliases|}}}|
|-
|-
! 别称
! 别称
&#124; {{{aliases|}}}}}
{{!}} {{{aliases|}}}}}
{{#if:{{{location|}}}|
{{#if:{{{location|}}}|
|-
|-
! 所处地
! 所处地
&#124; {{{location|}}}}}
{{!}} {{{location|}}}}}
{{#if:{{{faction|}}}|
{{#if:{{{faction|}}}|
|-
|-
! 所属势力
! 所属势力
&#124; {{{faction|}}}}}
{{!}} {{{faction|}}}}}
{{#if:{{{identity|}}}|
{{#if:{{{identity|}}}|
|-
|-
! 身份
! 身份
&#124; {{{identity|}}}}}
{{!}} {{{identity|}}}}}
{{#if:{{{position|}}}|
{{#if:{{{position|}}}|
|-
|-
! 职位
! 职位
&#124; {{{position|}}}}}
{{!}} {{{position|}}}}}
{{#if:{{{age|}}}|
{{#if:{{{age|}}}|
|-
|-
! 年龄
! 年龄
&#124; {{{age|}}}}}
{{!}} {{{age|}}}}}
{{#if:{{{race|}}}|
{{#if:{{{race|}}}|
|-
|-
! 种族
! 种族
&#124; {{{race|}}}}}
{{!}} {{{race|}}}}}
{{#if:{{{cultivation|}}}|
{{#if:{{{cultivation|}}}|
|-
|-
! 修为
! 修为
&#124; {{{cultivation|}}}}}
{{!}} {{{cultivation|}}}}}
{{#if:{{{aptitude|}}}|
{{#if:{{{aptitude|}}}|
|-
|-
! 资质
! 资质
&#124; {{{aptitude|}}}}}
{{!}} {{{aptitude|}}}}}
{{#if:{{{skills|}}}|
{{#if:{{{skills|}}}|
|-
|-
! 技能
! 技能
&#124; {{{skills|}}}}}
{{!}} {{{skills|}}}}}
|}</includeonly>
|}</includeonly>