Difference between revisions of "Template:ISOdate"

From Self-sufficiency
Jump to: navigation, search
m
Line 16: Line 16:
 
| {{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1|}}} }}"
 
| {{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1|}}} }}"
 
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
 
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
| {{#ifexpr: {{#expr: {{{1}}} }} < 100
+
| {{#ifexpr: ({{#time: y | {{{1}}} }} < 32) and ({{#time: j | {{{1}}} }} < 32)
| {{#ifexpr: {{#time: Y | {{{1}}} }} >= 2000
+
| {{{1|}}}
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
+
| {{#ifexpr: {{#expr: {{{1}}} }} < 100
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
+
| {{#ifexpr: {{#time: Y | {{{1}}} }} >= 2000
 +
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#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}}} }}}}
 
  }}
 
  }}
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}}}
 
 
  }}
 
  }}
 
  }}
 
  }}

Revision as of 14:33, 25 January 2009