|
|
Line 11: |
Line 11: |
| |[[{{ #time:F j|{{{1}}} }}]], [[{{ #time:Y|{{{1}}} }}]] | | |[[{{ #time:F j|{{{1}}} }}]], [[{{ #time:Y|{{{1}}} }}]] |
| |[[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]]}} }} }} }}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span> | | |[[{{ #time:j F|{{{1}}} }}]] [[{{ #time:Y|{{{1}}} }}]]}} }} }} }}<span style="display:none">(<span class="bday">{{{1}}}</span>)</span> |
− | |{{{1}}}}}</includeonly><noinclude> | + | |{{{1}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
− | | |
− | ==Usage==
| |
− | *Parameter 1 is the date given on [[ISO 8601]] formate ''YYYY-MM-DD'' ([[:meta:ParserFunctions#.23time:|#time]]). The template shows the date on the format ''D MMMM YYYY'' which is one of the [[de facto]] standards on english Wikipedia, see [[Wikipedia:MOS:DATE#Full_date_formatting]].
| |
− | *Parameter 2 set it to n if the date should not be wikified.
| |
− | | |
− | {| class="wikitable" style="margin: 1em auto 1em auto" | |
− | |+ '''Cells left-aligned, table centered'''
| |
− | ! DMY || MDY
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|2007-01-24}} || {{evd|ISOtodmymdy|2007-01-24|y|mdy}}
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|2006-05-04|n}} || {{evd|ISOtodmymdy|2006-05-04|n|mdy}}
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|2006-5-4|n}} || {{evd|ISOtodmymdy|2006-5-4|n|mdy}}
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|2006-5-04|n}} || {{evd|ISOtodmymdy|2006-5-04|n|mdy}}
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|2006-05-4|n}} || {{evd|ISOtodmymdy|2006-05-4|n|mdy}}
| |
− | |-
| |
− | | {{evd|ISOtodmymdy|May 4th, 2006|n}} || {{evd|ISOtodmymdy|May 4th, 2006|n|mdy}}
| |
− | |}
| |
− | | |
− | | |
− | ===Date strings #time function doesn't interpretes returns only the string ===
| |
− |
| |
− | {{evd|ISOtodmymdy|23007-031-24}}
| |
− | | |
− | {{evd|ISOtodmymdy|1 December 2008}}
| |
− | | |
− | {{evd|ISOtodmymdy|[[1 December]] [[2008]]}}
| |
− | | |
− | {{evd|ISOtodmymdy|1 December 2006}}
| |
− | | |
− | {{evd|ISOtodmymdy|[[1 December]] [[2006]]}}
| |
− | | |
− | | |
− | {{evd|ISOtodmymdy|24 June, 2006}} BUG
| |
− | | |
− | {{evd|ISOtodmymdy|24 june 2006|n}} BUG
| |
− | | |
− | ;outside the [[:meta:ParserFunctions#.23time:|#time]] functions limits
| |
− | | |
− | | |
− | {{evd|ISOtodmymdy|1901-12-13}}, <nowiki>{{#time:c|1901-12-13}}</nowiki> gives {{#time:c|1901-12-13}}
| |
− | | |
− | {{evd|ISOtodmymdy|1901-12-14}}, <nowiki>{{#time:c|1901-12-14}}</nowiki> gives {{#time:c|1901-12-14}} (#time er riv ruskende gal, justert for i mal for alle disse tilfellene)
| |
− | | |
− | {{evd|ISOtodmymdy|1970-01-01}}, <nowiki>{{#time:c|1970-01-01}}</nowiki> gives {{#time:c|1970-01-01}}
| |
− | | |
− | {{evd|ISOtodmymdy|1970-01-02}} (riktig, første dato innenfor), <nowiki>{{#time:c|1970-01-02}}</nowiki> gives {{#time:c|1970-01-02}}
| |
− | | |
− | {{evd|ISOtodmymdy|2038-01-19}} (riktig, siste dato innenfor), <nowiki>{{#time:c|2038-01-19}}</nowiki> gives {{#time:c|2038-01-19}}
| |
− | | |
− | {{evd|ISOtodmymdy|2038-01-20}}, <nowiki>{{#time:c|2038-01-20}}</nowiki> gives {{#time:c|2038-01-20}}
| |
− | | |
− | [[Category:Date-computing templates]]
| |
− | [[Category:ISO date templates]]
| |
− | | |
− | [[no:Mal:ISOtilNorskdato]]
| |
− | </noinclude> | |