Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Please sign up or log in to edit the wiki.

View source for Template:Start date and age/doc

Template page

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users.
    Sign up or Log in to edit a page.
    The Star Citizen Wiki is made by people like you! Anyone can edit and improve any pages.
  • You do not have permission to edit pages in the Template namespace.
    You can submit an edit request by commenting on the talk page or contact us through Discord.

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.

Return to Template:Start date and age/doc.