Difference between revisions of "Template:Date"
From Timelines
(Defaults to dmy) |
m (space) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{#time:Y-m-d|{{{1}}}}}|{{{1}}}| | <includeonly>{{#ifeq:{{#time:Y-m-d|{{{1}}}}}|{{{1}}}| | ||
− | {{#iferror:{{ #time:Y|{{{1}}} }} | + | {{#iferror:{{ #time:Y|{{{1}}} }} |
− | |||
− | |||
|{{{1|}}} | |{{{1|}}} | ||
− | |{{ #ifeq:{{{2| }}}|n | + | |{{ #ifeq:{{#time:U|{{{1}}} }}|0 |
− | + | |{{{1|}}} | |
− | + | |{{ #ifeq:{{{2| }}}|n | |
− | + | |{{#switch: {{{3| }}} | |
− | + | | mdy = {{ #time:F j, Y|{{{1}}} }} | |
− | + | | dmy = {{ #time:j F Y|{{{1}}} }} | |
− | + | | iso = {{ #time:Y-m-d|{{{1}}} }} | |
− | + | | {{ #time:j F Y|{{{1}}} }} | |
− | + | }} | |
− | + | |{{#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}}} }}]] |
+ | | [[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]] | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
− | |||
}}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span> | }}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span> | ||
− | |{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | + | |{{{1}}} |
+ | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 14:16, 10 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. |