Difference between revisions of "Template:Date"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
(!is nbsp;)
 
Line 1: Line 1:
 
{{lang
 
{{lang
 
|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|}}}}}
 
|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=}}{{#if:{{{2|}}}|&nbps;{{{2|}}}|}}{{#if:{{{3|}}}|&nbps;{{{3|}}}|}}
+
|fr={{{1|}}}{{#switch:{{{1|}}}|1|01=<sup>er</sup>|#default=}}{{#if:{{{2|}}}|&nbsp;{{{2|}}}|}}{{#if:{{{3|}}}|&nbsp;{{{3|}}}|}}
 
|de={{{1|}}}.
 
|de={{{1|}}}.
 
|ja={{{1|}}}日
 
|ja={{{1|}}}日

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