Difference between revisions of "Template:Date"
From Kerbal Space Program Wiki
(Created page with "{{lang |en={{{1|}}}<sup>{{#switch:{{{1|}}}|01|1|21|31=st|2|02|22=nd|3|03|23=rd|#default=th}}</sup> |fr={{{1|}}}{{#switch:{{{1|}}}|1|01=<sup>er</sup>|#default=}} |de={{{1|}}}. ...") |
(!is nbsp;) |
||
(3 intermediate revisions by one other user not shown) | |||
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|}}}日 | ||
+ | |zh-cn={{{1|}}}日 | ||
+ | |cs={{{1|}}} | ||
+ | |hu={{{1|}}} | ||
+ | |ru={{{1|}}} | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
Line 12: | 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> |
Latest revision as of 13:54, 8 November 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 |