Difference between revisions of "Template:ISOdate"

From Self-sufficiency
Jump to: navigation, search
Line 4: Line 4:
 
| {{#iferror: {{#expr: {{{1}}} }}
 
| {{#iferror: {{#expr: {{{1}}} }}
 
| {{{1|}}}
 
| {{{1|}}}
| {{#iferror: {{#time: Y-m-d | {{{1|}}} }}
+
| {{#ifexpr: {{{1}}} < -1800
| {{#iferror: {{#time: Y-m-d | 19{{{1|}}} }}
+
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
| {{{1|}}}
+
| {{#iferror: {{#time: Y-m-d | {{{1|}}} }}
| {{#ifeq: {{#time: d | 19{{{1|}}} }} | {{#time: d }}  
+
| {{#iferror: {{#time: Y-m-d | 19{{{1|}}} }}
| {{date| {{#expr: {{#time: Y | 19{{{1}}} }} - 1900 }} | {{#time: n | 19{{{1}}} }} }}
+
 
| {{{1|}}}
 
| {{{1|}}}
 +
| {{#ifeq: {{#time: d | 19{{{1|}}} }} | {{#time: d }}
 +
| {{date| {{#expr: {{#time: Y | 19{{{1}}} }} - 1900 }} | {{#time: n | 19{{{1}}} }} }}
 +
| {{{1|}}}
 +
  }}
 
  }}
 
  }}
  }}
+
| {{#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: {{#expr: {{{1}}} }} < 100
+
| {{#if: {{#time: Y | {{{1}}} }} >= 1970
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
+
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}}}
+
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
 +
  }}
 +
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}}}
 +
  }}
 
  }}
 
  }}
 
  }}
 
  }}

Revision as of 14:01, 25 January 2009