Template:人物信息:修订间差异

imported>850710247liu
无编辑摘要
imported>Irukaza
文本替换 - 替换“285px”为“300px”
 
(未显示2个用户的12个中间版本)
第14行: 第14行:
         | 2
         | 2
         | 3 = {{#if: {{str_endswith|{{#var:生日日期}}|日}}<!-- 检查“日”字是否出现在最后1个位置 -->
         | 3 = {{#if: {{str_endswith|{{#var:生日日期}}|日}}<!-- 检查“日”字是否出现在最后1个位置 -->
                 | {{#var:生日年份}}[[:Category:{{#var:生日日期}}|{{#var:生日日期}}]][[Category:{{#var:生日日期}}]]<!-- 符合要求,显示日期分类(年份不带分类内链) -->
                 | {{#var:生日年份}}{{#var:生日日期}}<!-- 符合要求,显示日期分类(年份不带分类内链) -->
                 | {{#if: {{str_endswith|{{#var:生日日期}}|号}}<!-- 容错:检查最后1个字符是否为“号” -->
                 | {{#if: {{str_endswith|{{#var:生日日期}}|号}}<!-- 容错:检查最后1个字符是否为“号” -->
                     | {{#var:生日年份}}[[:Category:{{Str_crop|{{#var:生日日期}}|1}}日|{{#var:生日日期}}]][[Category:{{Str_crop|{{#var:生日日期}}|1}}日]]<!-- 是,则在分类中将“号”改为“日” -->
                     | {{#var:生日年份}}{{Str_crop|{{#var:生日日期}}|1}}日<!-- 是,则在分类中将“号”改为“日” -->
                     |{{{生日}}}{{ArticleCategory|错误生日}}<!-- 不符合“号”字要求,显示“错误生日” -->
                     |{{{生日}}}<!-- 不符合“号”字要求,显示“错误生日” -->
                     }}
                     }}
                 }}
                 }}
         |{{{生日}}}{{ArticleCategory|错误生日}}<!-- 不符合“月”字要求,显示“错误生日” -->
         |{{{生日}}}<!-- 不符合“月”字要求,显示“错误生日” -->
         }}<!-- End Switch -->
         }}<!-- End Switch -->
     |}}<!-- 没有填写生日 -->
     |}}<!-- 没有填写生日 -->
第32行: 第32行:
   -->{{#if:{{#rel2abs:..|{{FULLPAGENAME}}}}|<nowiki/>|[[category:错误使用人物信息模板的页面]]}}<!--
   -->{{#if:{{#rel2abs:..|{{FULLPAGENAME}}}}|<nowiki/>|[[category:错误使用人物信息模板的页面]]}}<!--
-->|{{ac|人物}}}}
-->|{{ac|人物}}}}
<div itemscope itemtype="http://data-vocabulary.org/Person" class="infobox2" style="{{#if:{{{bgcolor|}}}|background-color: {{{bgcolor|}}}}}">
<div itemscope itemtype="http://data-vocabulary.org/Person" class="infotemplatebox" style="{{#if:{{{bgcolor|}}}|background-color: {{{bgcolor|}}}}}">
{|border=0 cellpadding="0" cellspacing="0" style="width:100%;"
{|border=0 cellpadding="0" cellspacing="0" style="width:100%;"
| colspan="2" style="text-align:center" |{{#if:{{{tab|}}}{{{tabs|}}}|{{{tab|}}}{{{tabs|}}}|{{ #if:{{{image|}}}|<span itemprop="photo">[[Image:{{{image}}}|280px]]</span>|啊嘞?!<br/>怎么回事<br/>这个角色怎么没有头的样子……{{ArticleCategory|无设定图}}}}}}{{#if:{{{图片说明|}}}|<br /><span style="text-align:center;">{{{图片说明}}}</span>}}
| colspan="2" style="text-align:center" |{{#if:{{{tab|}}}{{{tabs|}}}|{{{tab|}}}{{{tabs|}}}|{{ #if:{{{image|}}}|<span itemprop="photo">[[Image:{{{image}}}|300px]]</span>|啊嘞?!<br/>怎么回事<br/>这个角色怎么没有头的样子……{{ArticleCategory|无设定图}}}}}}{{#if:{{{图片说明|}}}|<br/><span style="text-align:center;">{{{图片说明}}}</span>}}
|-
|-
| colspan=2 style="text-align:center;background-color:#BEEFE1" |'''基本资料'''
| colspan=2 style="text-align:center;background-color:#BEEFE1" |'''基本资料'''
第96行: 第96行:
{{ #if: {{#var:血型}} |  
{{ #if: {{#var:血型}} |  
! 血型
! 血型
{{!}} style="text-align:center" {{!}} [[:Category:{{#var:血型}}|{{#var:血型}}]][[Category:{{#var:血型}}]]
{{!}} style="text-align:center" {{!}} [[:Category:{{#var:血型}}|{{#var:血型}}]][[分类:{{#var:血型}}]]
}}
}}
|-
|-
第111行: 第111行:
{{ #if: {{{声优|}}} |  
{{ #if: {{{声优|}}} |  
! 声优
! 声优
{{!}} style="text-align:center" {{!}} {{{声优|}}}[[Category:{{{声优}}}]]
{{!}} style="text-align:center" {{!}} {{{声优|}}}[[分类:{{{声优}}}]]
}}
}}
|-
|-
第121行: 第121行:
{{ #if: {{{配音|}}} |  
{{ #if: {{{配音|}}} |  
! 配音
! 配音
{{!}} style="text-align:center" {{!}} {{{配音|}}}[[Category:{{{配音}}}]]
{{!}} style="text-align:center" {{!}} {{{配音|}}}[[分类:{{{配音}}}]]
}}
}}
|-
|-