Difference between revisions of "Template:ISOdate"
From Self-sufficiency
(fix for 'YYYY-MM' dates) |
(additional check to make strings like "c. 2009" fail (#time strips single letters in front;so the check will do no harm to normal dates.but strings already starting with a single letter will now fail)) |
||
Line 2: | Line 2: | ||
{{#if: {{#iferror: {{#expr: {{{1}}} }} | | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |1|}} }} | {{#if: {{#iferror: {{#expr: {{{1}}} }} | | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |1|}} }} | ||
| {{date|{{{1}}}||| {{{2|}}} |form= {{{form|}}} }} | | {{date|{{{1}}}||| {{{2|}}} |form= {{{form|}}} }} | ||
− | | {{#iferror: {{#time: | {{{1}}} }} | + | | {{#iferror: {{#time: | {{{1}}} }}{{#time: | a{{{1}}} }} |
| {{#iferror: {{#expr: {{{1}}} }} | | {{#iferror: {{#expr: {{{1}}} }} | ||
| {{{1}}} | | {{{1}}} |
Revision as of 19:16, 27 September 2009
[edit]
Documentation