模板:CharacterBox:修订间差异
LocalAdmin(留言 | 贡献) Create CharacterBox infobox template with TemplateData |
LocalAdmin(留言 | 贡献) 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:{{{image|}}}| | {{#if:{{{image|}}}| | ||
|- | |- | ||
! colspan="2" style="text-align:center;" | ! colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|200px]]}} | ||
{{#if:{{{aliases|}}}| | {{#if:{{{aliases|}}}| | ||
|- | |- | ||
! 别称 | ! 别称 | ||
{{!}} {{{aliases|}}}}} | |||
{{#if:{{{location|}}}| | {{#if:{{{location|}}}| | ||
|- | |- | ||
! 所处地 | ! 所处地 | ||
{{!}} {{{location|}}}}} | |||
{{#if:{{{faction|}}}| | {{#if:{{{faction|}}}| | ||
|- | |- | ||
! 所属势力 | ! 所属势力 | ||
{{!}} {{{faction|}}}}} | |||
{{#if:{{{identity|}}}| | {{#if:{{{identity|}}}| | ||
|- | |- | ||
! 身份 | ! 身份 | ||
{{!}} {{{identity|}}}}} | |||
{{#if:{{{position|}}}| | {{#if:{{{position|}}}| | ||
|- | |- | ||
! 职位 | ! 职位 | ||
{{!}} {{{position|}}}}} | |||
{{#if:{{{age|}}}| | {{#if:{{{age|}}}| | ||
|- | |- | ||
! 年龄 | ! 年龄 | ||
{{!}} {{{age|}}}}} | |||
{{#if:{{{race|}}}| | {{#if:{{{race|}}}| | ||
|- | |- | ||
! 种族 | ! 种族 | ||
{{!}} {{{race|}}}}} | |||
{{#if:{{{cultivation|}}}| | {{#if:{{{cultivation|}}}| | ||
|- | |- | ||
! 修为 | ! 修为 | ||
{{!}} {{{cultivation|}}}}} | |||
{{#if:{{{aptitude|}}}| | {{#if:{{{aptitude|}}}| | ||
|- | |- | ||
! 资质 | ! 资质 | ||
{{!}} {{{aptitude|}}}}} | |||
{{#if:{{{skills|}}}| | {{#if:{{{skills|}}}| | ||
|- | |- | ||
! 技能 | ! 技能 | ||
{{!}} {{{skills|}}}}} | |||
|}</includeonly> | |}</includeonly> | ||