Difference between revisions of "Template:ISOdate"
From Self-sufficiency
m |
(add {{{2}}} to make it possible to fix the output language) |
||
Line 3: | Line 3: | ||
| {{#ifeq: {{#expr: {{{1}}} }} | {{{1}}} | | {{#ifeq: {{#expr: {{{1}}} }} | {{{1}}} | ||
| {{#ifeq: "{{#expr: {{{1}}} }}" | "{{{1}}}" | | {{#ifeq: "{{#expr: {{{1}}} }}" | "{{{1}}}" | ||
− | | {{date| {{{1}}} }} | + | | {{date| {{{1}}} ||| {{{2|}}} }} |
| {{{1}}} | | {{{1}}} | ||
}} | }} | ||
| {{#ifexpr: ({{#ifexpr: {{{1}}} = {{#time: d-m-Y | {{{1}}} }} | 1 | 0 }}) or ({{#ifexpr: {{{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}}} }} | {{{2|}}} }} |
| {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100 | | {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100 | ||
| {{#ifexpr: {{#time: Y | {{{1}}} }} >= 2000 | | {{#ifexpr: {{#time: Y | {{{1}}} }} >= 2000 | ||
− | | {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}} | + | | {{date| {{#expr: {{#time: Y | {{{1}}} }} - 2000 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}| {{{2|}}} }} |
− | | {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}}} | + | | {{date| {{#expr: {{#time: Y | {{{1}}} }} - 1900 }} |{{#time: n | {{{1}}} }}|{{#time: j | {{{1}}} }}| {{{2|}}} }} |
}} | }} | ||
| {{#ifexpr: ({{#ifexpr: {{{1}}} = {{#time: m-Y | {{{1}}} }} | 1 | 0 }}) or ({{#ifexpr: {{{1}}} = {{#time: Y-m | {{{1}}} }} | 1 | 0 }}) | | {{#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}}} }}}} | + | | {{date|{{#time: Y | {{{1}}} }}|{{#time: n | {{{1}}} }}|| {{{2|}}} }} |
| {{{1}}} | | {{{1}}} | ||
}} | }} |
Revision as of 02:08, 31 March 2009
[edit]
Documentation