You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
{{Documentation|fromWikipedia=true}}
{{tsh|SDA}}
The '''{{t|Start date and age}}''' template displays the date that an event or entity started or was created. It is also modified to '''calculate lore time''' in [[Star Citizen]]. It also includes a duplicate, machine-readable date in the {{WP|ref=no|ISO_8601|text=ISO 8601}} format (which is hidden by {{WP|ref=no|CSS}}), for use inside other templates which emit {{WP|ref=no|microformat|text=microformats}}. The hidden date degrades gracefully when CSS is not available.
== Usage ==
;Common usage
: <code><nowiki>{{Start date and age|yyyy|mm|dd}}</nowiki></code> to display formatted as:
: {{xt|{{Start date and age|2010|03|25}}}}
: <code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes}}</nowiki></code> to display formatted as:
: {{xt|{{Start date and age|2010|03|25|df=yes}}}}
;Displayling in Star Citizen time
: <code><nowiki>{{Start date and age|yyyy|mm|dd|sctime=yes}}</nowiki></code> to display formatted as:
: {{xt|{{Start date and age|2772|03|25|sctime=yes}}}}
;Full syntax
: <code><nowiki>{{Start date and age|yyyy|mm|dd|df=yes|p=yes|br=yes}}</nowiki></code> to display formatted as:
: {{xt|{{Start date and age|2010|03|25|df=yes|p=yes|br=yes}}}}
== Parameters ==
{| class="wikitable"
! Parameter
! Status
! Description
|-
| 1
| required
| A four-digit number indicating the year.
|-
| 2
| optional
| A number between 1 and 12 indicating the month (leading zeros in the number are ignored). The month may also be specified as a name or abbreviation (e.g. "August" or "Aug").
|-
| 3
| optional
| A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored).
|-
| sctime=
| optional
| If the parameter '''sctime''' equals '''yes''', '''y''', or '''1''', the current Star Citizen in-universe time will be used.
|-
| df=
| optional
| If the parameter '''df''' equals '''yes''', '''y''', or '''1''', the date will be displayed in DMY format: {{xt|4 March 2010}}. When this parameter is not included or set to some other value, the date will be displayed in MDY format: {{xt|March 4, 2010}}.
|-
| p=<br/>paren=
| optional
| If the parameter '''p''' or '''paren''' equals '''yes''', '''y''', or '''1''', the age will be displayed within parentheses. When this parameter is not included or set to some other value, the date and age are separated by a semicolon and a breaking space.
Templates used on this page:
- Template:Documentation (view source) (protected)
- Template:MONTHNAME (view source)
- Template:MONTHNUMBER (view source)
- Template:No redirect (view source)
- Template:Plainlist/styles.css (view source)
- Template:Start date and age (view source)
- Template:T (view source) (protected)
- Template:T/piece (view source)
- Template:Template shortcut (view source)
- Template:Time ago (view source)
- Template:Tsh (view source)
- Template:WP (view source)
- Template:Xt (view source)
- Template:Years or months ago (view source)
- Template:Yesno (view source)
- Module:Arguments (view source) (protected)
- Module:Array (view source)
- Module:Date (view source)
- Module:DependencyList (view source)
- Module:DependencyList/i18n.json (view source)
- Module:Documentation (view source)
- Module:Documentation/i18n.json (view source)
- Module:Format link (view source)
- Module:Hatnote (view source)
- Module:Hatnote list (view source)
- Module:I18n (view source)
- Module:I18n/category/en.json (view source)
- Module:List (view source)
- Module:Mbox (view source)
- Module:Mbox/styles.css (view source)
- Module:Paramtest (view source)
- Module:Redirect (view source)
- Module:Shortcut (view source)
- Module:Shortcut/config (view source)
- Module:Shortcut/styles.css (view source)
- Module:TableTools (view source)
- Module:Time ago (view source)
- Module:Translate (view source)
- Module:User error (view source)
- Module:Yesno (view source)
Return to Template:Start date and age/doc.