Content deleted Content added
Yahia.barie (talk | contribs) - |
→Parameters: <templatedata> |
||
Line 32:
====Parameters====
<!--
▲<!-- :'''''parameter 2''''' (optional) If present, this wikitext is displayed rather than the date in parameter 1. These might be links to day of month or year pages. EG. December 7, 1941
commenting out deprecated practice -->
;timezone
▲:'''BCE''' (required for BCE dates) set to yes if the date is BC.
;tz:
{{TemplateDataHeader}}
▲:'''timezone''' (required if timezone information specified) Set to yes if the time is [[UTC]] or if the location, timezone, or timezone offset is specified. (short form '''tz''')
<templatedata>{
"description": "Date that an event or entity started or was created or born",
"params": {
"1": {"label": "date-time", "description": "date and time to display and to emit as a microformat date", "type": "string/line", "required": true},
"2": {"label": "alternate text", "description": "if present, this wikitext is displayed instead", "inherits": "1", "type": "string", "deprecated": "true"},
"ISO8601": {"label": "YYYY-MM-DD hh:mm:ss", "description": "if present, this ISO 8601 date/time value is emitted instead", "inherits": "1"},
"before epoch?": {"label": "HH", "description": "boolean value, true if date is before epoch (i.e. BCE “before common era” or BC “before Christ)", "inherits": "ISO8601"},
"timezone?": {"label": "MM", "description": "boolean value, true if timezone is specified somehow", "inherits": "ISO8601", "default": "", "aliases": ["tz"]}
}}</templatedata>
====Ambiguous times and dates====
|