Difference between revisions of "Template:Date"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+support ja, zh-cn,cs,hu,ru)
Line 1: Line 1:
 
{{lang
 
{{lang
|en={{{1|}}}<sup>{{#switch:{{{1|}}}|01|1|21|31=st|2|02|22=nd|3|03|23=rd|#default=th}}</sup>
+
|en={{#if:{{{2|}}}|{{{2|}}}|}}{{{1|}}}<sup>{{#switch:{{{1|}}}|01|1|21|31=st|2|02|22=nd|3|03|23=rd|#default=th}}</sup>{{#if:{{{3|}}}|, {{{3|}}}}}
|fr={{{1|}}}{{#switch:{{{1|}}}|1|01=<sup>er</sup>|#default=}}
+
|fr={{{1|}}}{{#switch:{{{1|}}}|1|01=<sup>er</sup>|#default=}}{{#if:{{{2|}}}|{{{2|}}}|}}{{#if:{{{3|}}}|{{{3|}}}|}}
 
|de={{{1|}}}.
 
|de={{{1|}}}.
 
|ja={{{1|}}}日
 
|ja={{{1|}}}日
Line 17: Line 17:
 
  |-
 
  |-
 
  | 1 || The day (eg: 23 october → 23) || {{No}}
 
  | 1 || The day (eg: 23 october → 23) || {{No}}
 +
|-
 +
| 2 || The month (eg: 23 october → october) || {{Yes}}
 +
|-
 +
| 3 || The year (eg: 08/23/2014 → 2014) || {{Yes}}
 +
|}
 +
== Support ==
 +
{| class = "wikitable"
 +
!rowspan="2"| Language<br/>Prefix !!colspan="3"| Supports
 +
|-
 +
! Day !! Month !! Year
 +
|-
 +
| en || {{Yes}} || {{Yes}} || {{Yes}}
 +
|-
 +
| fr || {{Yes}} || {{Yes}} || {{Yes}}
 +
|-
 +
| de || {{Yes}} || {{No}} || {{No}}
 +
|-
 +
| ja || {{Yes}} || {{No}} || {{No}}
 +
|-
 +
| zh-cn || {{Yes}} || {{No}} || {{No}}
 +
|-
 +
| cs || {{Yes}} || {{No}} || {{No}}
 +
|-
 +
| hu || {{Yes}} || {{No}} || {{No}}
 +
|-
 +
| ru || {{Yes}} || {{No}} || {{No}}
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 13:06, 23 October 2014

th

Usage & Parameters

This template allows to write dates (only the day at the moment), depending on the language of the page.

# Description Optional
1 The day (eg: 23 october → 23) No
2 The month (eg: 23 october → october) Yes
3 The year (eg: 08/23/2014 → 2014) Yes

Support

Language
Prefix
Supports
Day Month Year
en Yes Yes Yes
fr Yes Yes Yes
de Yes No No
ja Yes No No
zh-cn Yes No No
cs Yes No No
hu Yes No No
ru Yes No No