跳转到内容

模板:Birth date and age/doc:修订间差异

来自戏曲百科
建立内容为“<includeonly> {{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Birth date and age | {{Template shortcut|Bda}} | {{Template shortcut|Dob}} }} {{#ifeq:{{#titleparts:{{PAGEN…”的新页面
 
无编辑摘要
 
第1行: 第1行:
<includeonly>
{{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Birth date and age
| {{Template shortcut|Bda}}
| {{Template shortcut|Dob}}
}}
{{#ifeq:{{#titleparts:{{PAGENAME}}|1}}|Birth date and age
| {{High-use|45,000+}} <!--(Template:Birth date and age)-->
| {{High-use|10,000+}} <!--(Template:Birth date)-->
}}</includeonly><noinclude>{{template doc page viewed directly|{{tl|Birth date and age}}和{{tl|Birth date}}}}</noinclude>
使用模板{{tl|Birth date and age}}將會顯示出生日期,並在其後自動計算並加註今年的年齡。{{tl|Birth date}}是一个用法相似的模板,但不会加注年龄。
使用模板{{tl|Birth date and age}}將會顯示出生日期,並在其後自動計算並加註今年的年齡。{{tl|Birth date}}是一个用法相似的模板,但不会加注年龄。



2021年6月21日 (一) 18:29的最新版本

使用模板{{Birth date and age}}將會顯示出生日期,並在其後自動計算並加註今年的年齡。{{Birth date}}是一个用法相似的模板,但不会加注年龄。

如果知道出生日,但只欲顯示出生年份,請使用{{Birth year and age confirmed}}。如果不知道出生日,只知道出生年份,請使用{{Birth year and age}}。

使用說明

本頁說明全部範例所使用的今天日期是

2026年5月19日

請使用以下原始碼:

{{Birth date|year=|month=|day=}}
{{Birth date and age|year=|month=|day=}}

其中:

  • year:出生西元年份(請填寫四位數的阿拉伯數字,不須加上「年」)
  • month:出生月份(請填寫阿拉伯數字,不須加上「月」)
  • day:出生日(請填寫阿拉伯數字,不須加上「日」)

範例

例1,使用:

{{Birth date and age|year=1993|month=2|day=24}}

页面上显示为:

(1993-02-24) 1993年2月24日33岁)

例2,也可以省略變數名稱,例如:

{{Birth date and age|1993|2|24}}

页面上显示为:

(1993-02-24) 1993年2月24日33岁)

例3,若使用:

{{Birth date|1993|02|24}}

则页面上显示为:

(1993-02-24)1993年2月24日

重定向

{{生日和年齡}}重定向至{{Birth date and age}}。

参见