Difference between revisions of "Template:Date"

From Timelines
Jump to: navigation, search
(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|}}}
 
|{{ #ifeq:{{#time:U|{{{1}}} }}|0
 
 
   |{{{1|}}}
 
   |{{{1|}}}
   |{{ #ifeq:{{{2| }}}|n
+
   |{{ #ifeq:{{#time:U|{{{1}}} }}|0
  |{{#switch: {{{3| }}}
+
  |{{{1|}}}
      | mdy = {{ #time:F j, Y|{{{1}}} }}  
+
  |{{ #ifeq:{{{2| }}}|n
      | dmy = {{ #time:j F Y|{{{1}}} }}
+
    |{{#switch: {{{3| }}}
      | iso = {{ #time:Y-m-d|{{{1}}} }}
+
      | mdy = {{ #time:F j, Y|{{{1}}} }}  
      | {{ #time:j F Y|{{{1}}} }}
+
      | dmy = {{ #time:j F Y|{{{1}}} }}
    }}
+
      | iso = {{ #time:Y-m-d|{{{1}}} }}
  |{{#switch: {{{3| }}}
+
      | {{ #time:j F Y|{{{1}}} }}
      | mdy = [[{{ #time:F j|{{{1}}} }}]], [[{{ #time:Y|{{{1}}} }}]]
+
    }}
      | dmy = [[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]]
+
    |{{#switch: {{{3| }}}
      | iso = [[{{ #time:Y|{{{1}}} }}]] [[{{ #time:F j|{{{1}}} }}|{{ #time:m-d|{{{1}}} }}]]
+
      | mdy = [[{{ #time:F j|{{{1}}} }}]], [[{{ #time:Y|{{{1}}} }}]]
      | [[{{ #time:j F|{{{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]