Difference between revisions of "Template:ISOdate"
From Self-sufficiency
(improved) |
|||
Line 1: | Line 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}}} | ||
− | + | | {{#ifeq: "{{#expr: {{{1}}} }}" | "{{{1}}}" | |
− | | {{# | + | | {{date| {{{1}}} }} |
− | + | | {{{1}}} | |
− | + | }} | |
− | + | | {{#ifexpr: ({{#ifeq: "{{{1}}}" | "{{#time: d-m-Y | {{{1}}} }}" | 1 | 0 }}) or ({{#ifeq: "{{{1}}}" | "{{#time: Y-m-d | {{{1}}} }}" | 1 | 0 }}) | |
− | + | | {{date| {{#time: Y | {{{1}}} }} | {{#time: n | {{{1}}} }} | {{#time: j | {{{1}}} }} }} | |
− | + | | {{#ifexpr: abs({{#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}}} }}}} | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | + | }} | |
− | }}<noinclude> | + | <noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 16:29, 25 January 2009
[edit]
Documentation