Template talk:RTSubst

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Documentation[edit]

Wikitext[edit]

This Template:RTSubst (talk, backlinks, edit) contains: (here the wikitext is too long, a short form is given)
Note: no new line.
Note: [a] equals {{{a}}}.
Note: <IS> equals <includeonly>subst:</includeonly>.

template:RTSubst=
{{<IS>RTSubst/h|[1]
  |1[2]=00|2[2]=00|...|1440[2]=23}}:
{{<IS>RTSubst/m
  |1[2]=00|2[2]=01|...|1440[2]=59}}

template:RTSubst/h=
{{<IS>RTSubst/h1
  |[100:00|][200:01|]...[144023:59|][1|]}}

template:RTSubst/h1=
{{<IS>RTSubst/h2
  |1[1]=12|2[1]=11|...|600[1]=11}}

template:RTSubst/h2=
[100-12|][200-11|]...[60023+12|]

template:RTSubst/m=
[100:00|]...[144023:59|]

Purpose[edit]

This template gives fixed wikitext of converted local time.

Usage[edit]

{{subst:RTSubst
  |timezone: -12,...,-9,...,0,+1,...,+12
  |{{subst:CURRENTTIME}}
}}
  1. Subst tag must be added.
  2. Save it, rather than preview it.

Examples[edit]

Following examples are created at UTC 03:25.

  • {{subst:RTSubst|0|{{subst:CURRENTTIME}}}} gives 03:25.
  • {{subst:RTSubst|+8|{{subst:CURRENTTIME}}}} gives 11:25.
  • {{subst:RTSubst|0|23:59}} gives 23:59.
  • {{subst:RTSubst|+8|23:59}} gives 07:59.
  • {{subst:RTSubst|0|{{CURRENTTIME}}}} gives
.
  • {{subst:RTSubst|+8|{{CURRENTTIME}}}} gives
.

See also[edit]

History[edit]

Created 
Upssdr 02:59, 14 February 2006 (UTC)

Discussion[edit]