Difference between revisions of "Template:ISOdate"

From Self-sufficiency
Jump to: navigation, search
(improved)
Line 1: Line 1:
{{#if: {{{1|}}}
+
{{#ifexpr: ({{#ifeq: {{{1|}}} |  | 1 | 0 }}) or ({{#iferror: {{#expr: {{{1}}} }} | 1 | 0 }}) or ({{#iferror: {{#time: Y | {{{1}}} }} | 1 | 0 }}) or (({{#iferror: {{#time: y | {{{1}}} }} | 32 | {{#time: y | {{{1}}} }} }} < 32) and (abs({{#iferror: {{#expr: {{{1|0}}} }} | 0 | {{#expr: {{{1|0}}} }} }}) < 98 ))
 +
| {{{1|}}}
 
| {{#ifeq: {{#expr: {{{1}}} }} | {{{1}}}
 
| {{#ifeq: {{#expr: {{{1}}} }} | {{{1}}}
| {{date|{{{1}}}}}
+
| {{#ifeq: "{{#expr: {{{1}}} }}" | "{{{1}}}"
| {{#iferror: {{#expr: {{{1}}} }}
+
| {{date| {{{1}}} }}
| {{{1|}}}
+
| {{{1}}}
| {{#ifexpr: {{{1}}} < -1800
+
  }}
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
+
| {{#ifexpr: ({{#ifeq: "{{{1}}}" | "{{#time: d-m-Y | {{{1}}} }}" | 1 | 0 }}) or ({{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1}}} }}" | 1 | 0 }})
| {{#iferror: {{#time: Y-m-d | {{{1|}}} }}
+
| {{date| {{#time: Y | {{{1}}} }} | {{#time: n | {{{1}}} }} | {{#time: j | {{{1}}} }} }}
| {{#iferror: {{#time: Y-m-d | 19{{{1|}}} }}
+
| {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100
| {{{1|}}}
+
| {{#ifexpr: {{#time: Y | {{{1}}} }} >= 2000
| {{#ifeq: {{#time: d | 19{{{1|}}} }} | {{#time: d }}
+
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
| {{date| {{#expr: {{#time: Y | 19{{{1}}} }} - 1900 }} | {{#time: n | 19{{{1}}} }} }}
+
| {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
| {{{1|}}}
+
  }}
+
  }}
+
| {{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1|}}} }}"
+
| {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}}
+
| {{#ifexpr: ({{#time: y | {{{1}}} }} < 32) and ({{#time: j | {{{1}}} }} < 32)
+
| {{{1|}}}
+
| {{#ifexpr: {{#expr: {{{1}}} }} < 100
+
| {{#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}}} }}}}
 
  }}
 
  }}
 
  }}
 
  }}
 
  }}
 
  }}
|
+
}}
}}<noinclude>
+
<noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:29, 25 January 2009