Difference between revisions of "Template:Date"
From Timelines
m (moved Template:ISOtoMOS to Template:DATEtoMOS: Not only ISO dates) |
(Defaults to not wikilinked. Needs to give the parameter 2 as y to get it wikilinked. Per MOS dates should not be wikilinked in most cases) |
||
Line 4: | Line 4: | ||
|{{ #ifeq:{{#time:U|{{{1}}} }}|0 | |{{ #ifeq:{{#time:U|{{{1}}} }}|0 | ||
|{{{1|}}} | |{{{1|}}} | ||
− | |{{ #ifeq:{{{2| }}}| | + | |{{ #ifeq:{{{2| }}}|y |
+ | |{{#switch: {{{3| }}} | ||
+ | | mdy = [[{{ #time:F j|{{{1}}} }}]], [[{{ #time:Y|{{{1}}} }}]] | ||
+ | | dmy = [[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]] | ||
+ | | iso = [[{{ #time:Y|{{{1}}} }}]] [[{{ #time:F j|{{{1}}} }}|{{ #time:m-d|{{{1}}} }}]] | ||
+ | | ymd = [[{{ #time:Y|{{{1}}} }}]] [[{{ #time:F j|{{{1}}} }}|{{ #time:m-d|{{{1}}} }}]] | ||
+ | | [[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]] | ||
+ | }} | ||
|{{#switch: {{{3| }}} | |{{#switch: {{{3| }}} | ||
| mdy = {{ #time:F j, Y|{{{1}}} }} | | mdy = {{ #time:F j, Y|{{{1}}} }} | ||
Line 11: | Line 18: | ||
| ymd = {{ #time:Y-m-d|{{{1}}} }} | | ymd = {{ #time:Y-m-d|{{{1}}} }} | ||
| {{ #time:j F Y|{{{1}}} }} | | {{ #time:j F Y|{{{1}}} }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} |
Revision as of 01:13, 11 November 2008
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |