模板:Death date and age/doc:修订间差异
建立内容为“<includeonly>{{Template shortcut |dda}}{{high-use|23668}}<!-- {{template doc page transcluded}} --></includeonly><noinclude>{{template doc page viewed directly}}<…”的新页面 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
== 使用说明 == | |||
== | 本模板将能自动显示某人死亡时的年龄。 | ||
使用这个模板能够将关于死亡日期隐藏的[[元数据]](metadata)包含在条目内。某些浏览器和其他的软件将能够解析这些元数据,并能够将这些数据用在其他的网站,或是索引工具上,让使用者能方便搜寻。 | |||
; | ; 代码: | ||
: <code><nowiki>{{</nowiki>Death date and age|''死亡年''|''死亡月''|''死亡日''|''出生年''|''出生月''|''出生日''<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>Death date and age|''死亡年''|''死亡月''|''死亡日''|''出生年''|''出生月''|''出生日''<nowiki>}}</nowiki></code> | ||
| 第12行: | 第11行: | ||
<!-- :<tt><nowiki>{{</nowiki>Dda|yyyy|mm|dd|yyyy|mm|dd<nowiki>}}</nowiki></tt> | <!-- :<tt><nowiki>{{</nowiki>Dda|yyyy|mm|dd|yyyy|mm|dd<nowiki>}}</nowiki></tt> | ||
--> | --> | ||
; | ; 范例: | ||
:<code><nowiki>{{Death date and age|1993|2|24|1921|4|12}}</nowiki></code><br />返回:<br />{{Death date and age|1993|2|24|1921|4|12}} | :<code><nowiki>{{Death date and age|1993|2|24|1921|4|12}}</nowiki></code><br />返回:<br />{{Death date and age|1993|2|24|1921|4|12}} | ||
:<code><nowiki>{{Death date and age|1993|2|24|1921|4}}</nowiki></code><br />返回:<br />{{Death date and age|1993|2|24|1921|4}} | :<code><nowiki>{{Death date and age|1993|2|24|1921|4}}</nowiki></code><br />返回:<br />{{Death date and age|1993|2|24|1921|4}} | ||
| 第18行: | 第17行: | ||
; 注意: | ; 注意: | ||
: | :若有参数为空白,本模板将会出现错误的显示(请见其上方说明)。 | ||
== 重定向 == | == 重定向 == | ||
*{{tl|Dda}}、{{tl|Deathdateandage}}和{{tl|死亡年月日と没年齢}}重定向至{{tl|Death date and age}}。 | *{{tl|Dda}}、{{tl|Deathdateandage}}和{{tl|死亡年月日と没年齢}}重定向至{{tl|Death date and age}}。 | ||
== | == 参见 == | ||
*{{tl|Birth date and age}} | *{{tl|Birth date and age}},类似的模板,适合在世人物使用,将显示目前的年龄。 | ||
* {{tl|bd}},用于显示人物的生卒日期。 | * {{tl|bd}},用于显示人物的生卒日期。 | ||
<!-- *{{tl|Death date}} – | <!-- *{{tl|Death date}} – 不含年龄的死亡日期模板。 --> | ||
{{出生、逝世及日期模板|state=collapsed}} | {{出生、逝世及日期模板|state=collapsed}} | ||
| 第32行: | 第31行: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- 请在下方加入模板分类,感谢 --> | ||
[[Category:生卒模板|{{PAGENAME}}]] | [[Category:生卒模板|{{PAGENAME}}]] | ||
[[Category:日期计算模板|{{PAGENAME}}]] | [[Category:日期计算模板|{{PAGENAME}}]] | ||
[[Category:使用了分析程序的模板|{{PAGENAME}}]] | [[Category:使用了分析程序的模板|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||