Difference between revisions of "Template:Date"

From Timelines
Jump to: navigation, search
(rm duplication)
(why wouldn't we want it to accept all the date formats it can handle?)
Line 1: Line 1:
<includeonly>{{#if: ({{#time:Y-m-d|{{{1}}}}}={{{1}}} or {{#time:F j, Y|{{{1}}}}}={{{1}}} or {{#time:j F Y|{{{1}}}}}={{{1}}}) |
+
<includeonly>{{#iferror:{{ #time:U|{{{1}}} }}
{{#iferror:{{ #time:Y|{{{1}}} }}
 
 
   |{{{1|}}}
 
   |{{{1|}}}
 
   |{{ #ifeq:{{#time:U|{{{1}}} }}|0
 
   |{{ #ifeq:{{#time:U|{{{1}}} }}|0
Line 21: Line 20:
 
     }}  
 
     }}  
 
   }}  
 
   }}  
   }}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span>
+
   }}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span></includeonly><noinclude>{{documentation}}</noinclude>
|{{{1}}}
 
}}</includeonly><noinclude>{{documentation}}</noinclude>
 

Revision as of 14:44, 11 November 2008

Template documentation[create]