Difference between revisions of "Template:ISOdate"

From Self-sufficiency
Jump to: navigation, search
(improved)
Line 6: Line 6:
 
| {{{1}}}
 
| {{{1}}}
 
  }}
 
  }}
| {{#ifexpr: ({{#ifeq: "{{{1}}}" | "{{#time: d-m-Y | {{{1}}} }}" | 1 | 0 }}) or ({{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1}}} }}" | 1 | 0 }})
+
| {{#ifexpr: ({{#ifexpr: {{{1}}} = {{#time: d-m-Y | {{{1}}} }} | 1 | 0 }}) or ({{#ifexpr: {{{1}}} = {{#time: Y-m-d | {{{1}}} }} | 1 | 0 }})
 
| {{date| {{#time: Y | {{{1}}} }} | {{#time: n | {{{1}}} }} | {{#time: j | {{{1}}} }} }}
 
| {{date| {{#time: Y | {{{1}}} }} | {{#time: n | {{{1}}} }} | {{#time: j | {{{1}}} }} }}
 
| {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100
 
| {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100
Line 13: Line 13:
 
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
 
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
 
  }}
 
  }}
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}}}
+
| {{#ifexpr: ({{#ifexpr: {{{1}}} = {{#time: m-Y | {{{1}}} }} | 1 | 0 }}) or ({{#ifexpr: {{{1}}} = {{#time: Y-m | {{{1}}} }} | 1 | 0 }})
 +
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}}}
 +
| {{{1}}}
 +
  }}
 
  }}
 
  }}
 
  }}
 
  }}

Revision as of 17:08, 25 January 2009