跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
代码酷
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
未登录编辑者的页面
了解详情
贡献
讨论
编辑“︁
模板:Start date/doc
”︁
模板
讨论
大陆简体
阅读
编辑源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
编辑源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
*>Gonnym
2025年4月10日 (四) 12:50的版本
(
→
Tracking categories
)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑该页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{High-use}} {{COinS safe|n}} {{Lua|Module:Check for unknown parameters|Module:Date time}} {{tlb|Start date}} returns the date (or date and time) that an event or entity started or was created, in a standard format. It also includes a hidden (by CSS) duplicate, machine-readable date (or date and time) in the ISO date format, for use inside templates or table rows that emit [[microformat]]s. {{strong|It should be used only once in each such template}} and {{strong|never used outside such templates}}. The hidden date degrades gracefully when CSS is not available. == When not to use this template == Do not use this template for: * Dates that are uncertain, e.g., "before 4 April 1933", "around 18 November 1939", "19??". * Date ranges, e.g. "c. 1690–1712" * Dates outside the range given under "[[#Limitation|Limitation]]", below. * Other, secondary dates * Outside [[microformat]]-emitting templates or table rows; if in doubt, see the parent template's documentation * More than one date * Dates displayed using AM/PM format; this template only outputs 24-hour times * Dates that are not calendar dates, e.g. "12th century" or "present" or "TBA" In the above situations, omit the template entirely, using untemplated text. == Usage == * {{tlx|Start date|{{var|YYYY}}}} (year only) * {{tlx|Start date|{{var|YYYY}}|{{var|MM}}}} (month and year) * {{tlx|Start date|{{var|YYYY}}|{{var|MM}}|{{var|DD}}}} (year, month, and day) * {{tlx|Start date|{{var|YYYY}}|{{var|MM}}|{{var|DD}}|{{var|HH}}|{{var|MM}}|{{var|SS}}|{{var|Time zone}}}} (date, time, and time zone) == Parameters == * The unnamed parameters, in order, represent the year (four digits; required parameter), month (one or two digits), day (one or two digits), hour in 24-hour time (one or two digits), minutes (one or two digits), seconds (one or two digits), and the time zone (see below). * When specifying time of day, {{var|MM}} (minutes), {{var|SS}} (seconds), and the time zone are optional * {{var|Time zone}} may be a numerical value, or <code>Z</code> for [[Coordinated Universal Time|UTC]] (see examples) * {{para|df|yes}}, an optional parameter, when set to {{para|df|yes}} or {{para|df|y}} displays the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004"). The order of parameters does not change (it remains YMD). This is primarily used in articles using DMY format for dates. === Examples === * {{tlx|Start date|1993|_show_result=yes}} * {{tlx|Start date|1993|02|_show_result=yes}} * {{tlx|Start date|1993|02|24|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|7{{=}}+01:00|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|7{{=}}−07:00|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|23|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|23|Z|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|23|+01:00|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|23|−07:00|_show_result=yes}} * {{tlx|Start date|1993|02|24|df{{=}}y|_show_result=yes}} * {{tlx|Start date|1993|02|24|08|30|df{{=}}yes|_show_result=yes}} == Notes == Place any additional non-numeric text outside of the template: * c. {{tlx|Start date|1900}} → c. {{start date|1900}} * {{tlx|Start date|1993|02|24}}, no later than 15:00 UTC → {{Start date|1993|02|24}}, no later than 15:00 UTC == TemplateData == {{TemplateData header}} <templatedata> { "description": "Date that an event or entity started or was created", "params": { "1": { "label": "YYYY", "description": "Start year", "type": "number", "required": true }, "2": { "label": "MM", "description": "Start month", "type": "number", "suggested": true }, "3": { "label": "DD", "description": "Start day of month", "type": "number", "suggested": true }, "4": { "label": "HH", "description": "Start hours", "type": "number" }, "5": { "label": "MM", "description": "Start minutes", "type": "number", "default": "0" }, "6": { "label": "SS", "description": "Start seconds", "inherits": "5" }, "7": { "label": "TZ", "description": "Time zone offset, \"+02:00\", \"-06:00\" or \"Z\" for UTC", "type": "line" }, "df": { "label": "Day first", "description": "Set to 'yes' to show the day before the month name", "type": "line", "suggestedvalues": [ "yes", "y" ] } } } </templatedata> == Use in microformats == {{UF-date-part}} === Examples with hidden output === {{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{Start date|2016|12|31}}</nowiki>}} {{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{Start date|2016|12|31|08|30|23|+01:00}}</nowiki>}} == Tracking categories == * {{clc|Pages using start date with unknown parameters}} * {{clc|Pages using Module:Date time with invalid values}} == See also == * {{tlg|Start date text}}, an alternative to this template. * {{tlg|Film date}}, a similar template for use with {{tl|Infobox film}}. * {{tlg|Start date and age}} * {{tlg|Start and end dates}} * {{tlg|End date}} * {{tlg|End date text}} * {{tlg|Trim date}} * [[Wikipedia:WikiProject Microformats|WikiProject Microformats]] {{Birth, death and age templates|dates}} <includeonly>{{Sandbox other| | <!-- ADD CATEGORIES BELOW THIS LINE, PLEASE: --> [[Category:Date mathematics templates]] [[Category:Templates generating hAtom]] [[Category:Templates generating hCalendars]] [[Category:Templates generating hCards]] }}</includeonly>
摘要:
请注意,所有对代码酷的贡献均被视为依照知识共享署名-非商业性使用-相同方式共享发表(详情请见
代码酷:著作权
)。如果您不希望您的文字作品被随意编辑和分发传播,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
该页面使用的模板:
模板:Aligned table
(
编辑
)
模板:Birth, death and age templates
(
编辑
)
模板:COinS safe
(
编辑
)
模板:Category link with count
(
编辑
)
模板:Clc
(
编辑
)
模板:Documentation subpage
(
编辑
)
模板:High-use
(
编辑
)
模板:Hlist/styles.css
(
编辑
)
模板:Lua
(
编辑
)
模板:Main other
(
编辑
)
模板:Mbox
(
编辑
)
模板:Navbox with collapsible groups
(
编辑
)
模板:Nowiki template demo
(
编辑
)
模板:Ombox
(
编辑
)
模板:Para
(
编辑
)
模板:Resize
(
编辑
)
模板:Sandbox other
(
编辑
)
模板:Start date
(
编辑
)
模板:Start date/sandbox
(
编辑
)
模板:Strong
(
编辑
)
模板:TemplateData header
(
编辑
)
模板:Template link
(
编辑
)
模板:Template link expanded
(
编辑
)
模板:Template link general
(
编辑
)
模板:Template link with bold
(
编辑
)
模板:Template link with link off
(
编辑
)
模板:Template other
(
编辑
)
模板:Template parameter usage
(
编辑
)
模板:Terminate sentence
(
编辑
)
模板:Tl
(
编辑
)
模板:Tlb
(
编辑
)
模板:Tlg
(
编辑
)
模板:Tlx
(
编辑
)
模板:UF-date-part
(
编辑
)
模板:UF-date-warn
(
编辑
)
模板:Var
(
编辑
)
模板:Yesno
(
编辑
)
模板:Yesno-no
(
编辑
)
模板:\
(
编辑
)
模块:Aligned table
(
编辑
)
模块:Arguments
(
编辑
)
模块:Check for unknown parameters
(
编辑
)
模块:Date time
(
编辑
)
模块:High-use
(
编辑
)
模块:List
(
编辑
)
模块:Lua banner
(
编辑
)
模块:Message box
(
编辑
)
模块:Message box/configuration
(
编辑
)
模块:Message box/ombox.css
(
编辑
)
模块:Navbar
(
编辑
)
模块:Navbar/configuration
(
编辑
)
模块:Navbar/styles.css
(
编辑
)
模块:Navbox
(
编辑
)
模块:Navbox/configuration
(
编辑
)
模块:Navbox/styles.css
(
编辑
)
模块:Protect
(
编辑
)
模块:String
(
编辑
)
模块:TableTools
(
编辑
)
模块:Template invocation
(
编辑
)
模块:Template link general
(
编辑
)
模块:Template test case
(
编辑
)
模块:Template test case/config
(
编辑
)
模块:Template test case/data
(
编辑
)
模块:Transclusion count
(
编辑
)
模块:Transclusion count/data/S
(
编辑
)
模块:Yesno
(
编辑
)