For faster navigation, this Iframe is preloading the Wikiwand page for Template:BD.

Template:BD

()

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

((Bd))((BD))模板用于人物条目的首段生卒说明,模板产生一致的生卒日期文字显示(比如标准的连接号),并自动产生相关的生卒日期归类。两个模板用法相同,差别在于后者多输出两侧的小括号“(”与“)”。

两个模板只能用于人物条目正文中,并且只得使用一次。在人物信息框等表格中,请使用((birth date and age))((death date and age))模板(若出生月日不確定,則使用((birth year and age))((death year and age))模板)。

排序索引無須再使用參數catIdx,請改用((DEFAULTSORT))。

注意,这是给人物条目使用的模板,原则上应该给人物使用,其自动产生的生卒年份归类应该属于人类,像动物等非人类也类似的分类(Category:各年出生的動物Category:各年逝世的動物等),如果需要类似的输出写法与分类,暂时没有对应的模板,请手工书写并添加对应的年份分类,如果没有对应年份分类,才添加到对应人类的年份分类(但建议存在足够的条目,需要重新归类对应非人类的年份分类)。

用法

((bd|b1|b2|d1|d2))

其中参数b1、b2、d1、d2分别是出生年、出生月日或自定义日期、逝世年、逝世月日或自定义日期。

  1. 当出生年份确定时,参数b1填“b1年”,b2填月日。自动生成b1年出生的分类。
  2. 当逝世年份确定时,参数d1填“d1年”,d2填月日。自动生成d1年逝世的分类。
    (以上两种情况,“月日”可以不填,年月日都不能加链接。)
  3. 当出生年份不準確时,参数b1置空,b2填相应的描述。如((bd||约1957年|1989年|3月))
  4. 当逝世年份不準確时,参数d1置空,d2填相应的描述。如((bd|1973年|4月16日||?))
  5. 当出生年份不知道时,参数b1填“?”。如((bd|?||1989年|3月))
  6. 当逝世年份不知道时,参数d1填“?”。如((bd|1973年|4月16日|?|))
  7. 当仍然在世时,参数d1、d2均置空。如((bd|1973年|4月16日||))

举例

例一

例如,介绍“成吉思汗”的生卒时间,可引用((bd))模板:

'''成吉思汗'''(蒙古语:……,((bd|1162年|5月31日|1227年|8月25日))),……

页面显示:

成吉思汗(蒙古语:……,1162年5月31日—1227年8月25日),……

例二

介绍“胡適”的生卒时间,可引用((BD))模板,两侧不用再加小括号:

'''胡適'''((BD|1891年|12月17日|1962年|2月24日)),……

页面显示:

胡適(1891年12月17日—1962年2月24日),……

模板數據

用於人物條目的首段生卒說明,模板產生一致的生卒日期文字顯示(比如標準的連接號),並自動產生相關的生卒日期歸類。

模板参数[编辑模板数据]

参数描述类型状态
出生年份1

出生年份,並自動加入該年份出生的分類。當出生年份不確定時,請於「出年月日」參數填相應的描述。如((bd||约1957年))

示例值
1900年
字符串可选
出生月日2

出生月日,如12月31日

示例值
1月1日
字符串可选
逝世年份3

逝世年份,並自動加入該年份逝世的分類。當逝世年份不確定時,請於「逝世月日」參數填相應的描述。如((bd|1973年|4月16日||?));如仍然在世,請留空

示例值
2000年
字符串可选
逝世月日4

逝世月日;如仍然在世,請留空

示例值
12月31日
字符串可选

重定向

参见

{{bottomLinkPreText}} {{bottomLinkText}}
Template:BD
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?