"साँचा:ISOdate" के अवतरणों में अंतर

3,677 बैट्स् नीकाले गए ,  12 वर्ष पहले
Undo revision 21102427 by Slomox (Talk) a lot of templates broke
(completely new code, that also allows to add a specific time)
(Undo revision 21102427 by Slomox (Talk) a lot of templates broke)
|{{#exprifexpr: ({{#timeifeq:Y| {{{1|}}} }}| - 2000 }}-{{#time:m-d| {{{1 | 0 }}}) or }}=({{#ifexpriferror: {{#expr: {{#time:Y| {{{1}}} }} -| 20001 | 0 }}) < 32 | {{date|or ({{#expriferror: {{#time: Y | {{{1}}} }} -| 1 | 20000 }}) |or (({{#ifeqiferror: {{uc#time: y | {{{f|1}}} }} | Y32 | |{{#time: ny | {{{1}}} }} }} |< 32) and (abs({{#ifeqiferror: {{uc#expr: {{#if: {f{{1|}}} | {{{1}}} | Y0 }} }} | 0 | {{#timeexpr: j |{{#if: {{{1|}}} }} }} | {{{2|1}}} | 0 }} }} }}) < 98 ))
{{#ifeq: {{{1|}}} | | |
| {{{1|}}}
{{#if: {{#iferror: {{#expr: {{{1}}} }} | | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |1|}} }}
| {{date|#ifeq: {{#expr: {{{1}}}|| }} | {{{2|}1}} }}
| {{#iferrorifeq: "{{#timeexpr: | {{{1}}} }}" | "{{{1}}}"
| {{#iferror:date| {{#expr:{1}}} ||| {{{12|}}} }}
| {{{1}}}
}}
| {{#ifexpr: ({{{1}}} <= 998) and ({{{1}}} >= -11)
| {{#ifexpr: ({{#ifexpr: {{{1}}} = {{#time: d-m-Y | {{padleft:{{{1}}} }} |7 1 | 0 }}) or ({{#ifexpr: {{{1}}} >= 1958){{#time: andY-m-d | ({{{1}}} <=}} 98| 1 | 0 }})
| {{date| {{#ifeqtime: Y | {{{1}}} }} | {{#exprifeq: {{#timeuc: y | {{padleft:{{{1f|}}}|7|0 }} }}| Y | }}-|{{#time: mn | {{padleft:{{{1}}}|7|0 }} }} | {{date|{{#exprifeq: {{#timeuc: y | {{padleft:{{{1f|}}}|7|0}} }} }}| Y | | {{#time: mj | {{padleft:{{{1}}}|7|0 }} }}| | {{{2|}}} }} | {{{1}}} }}
| {{#ifexpr: abs({{#expr: {{{1}}} }}) < 100
| {{#ifeq: {{{1}}} | {{#expr: {{#time: Y | {{padleft:{{{1}}}|7|0}} }} }}-{{#time: m | {{padleft:{{{1}}}|7|0}} }} | {{date|{{#expr: {{#time: Y | {{padleft:{{{1}}}|7|0}} }} }}|{{#time: m | {{padleft:{{{1}}}|7|0}} }}|| {{{2|}}} }} | {{{1}}} }}
| {{#ifexpr: ({{{1}}}#time: <=Y 998)| and ({{{1}}} }} >= -11)2000
}}
| {{#ifeq: {{{1}}} date| {{#expr: {{#time: Y | {{padleft:{{{1}}}|7|0 }} - 2000 }} }}-| {{#timeifeq: m | {{padleftuc: {{{1f|}}}|7|0}} }} | {{dateY |{{#expr: |{{#time: Yn | {{padleft:{{{1}}}|7|0 }} }} }}|{{#timeifeq: m | {{padleftuc: {{{1f|}}}|7|0 }} }}| Y | | {{#time: j | {{2|{1}}} }}}} | {{{12|}}} }}
| {{{1}}}
| {{#time:Y-m-ddate| {{{1}}} }}={{date|#expr: {{#time: Y | {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}
}}
}}
| {{#ififexpr: ({{#iferrorifexpr: {{{1}}} = {{#exprtime: m-Y | {{{1}}} }} | 1 | 0 }}) or ({{#ifeqifexpr: {{{1}}} |= {{#exprtime: Y-m | {{{1}}} }} | 1 |}} 0 }})
| {{#switch: {{{1}}}
| {{#expr:date| {{#time: Y | {{{1}}} }} -| 1900{{#ifeq: {{uc: {{{f|}}-} }} | Y ||{{#time:m-d H:i:sZn | {{{1}}} }} }} || {{{2|}}} }}
| {{{1}}}
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:s| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}|{{#time: s | {{{1}}} }}|Z|lang= {{{2|}}} }} }}
}}
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}||Z|lang= {{{2|}}} }} }}
}}
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}
}}
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m| {{{1}}} }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} || {{{2|}}} }}
}}
|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}={{date| {{#expr: {{#time:Y| {{{1}}} }} - 1900 }} ||| {{{2|}}} }}
}}<noinclude>
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i:sZ| {{{1}}} }}
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i:s| {{{1}}} }}={{#ifexpr: {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} < 32 | {{date| {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}|{{#time: s | {{{1}}} }}|Z|lang= {{{2|}}} }} }} }}
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i| {{{1}}} }}={{#ifexpr: {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} < 32 | {{date| {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}||Z|lang= {{{2|}}} }} }} }}
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d| {{{1}}} }}={{#ifexpr: {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} < 32 | {{date| {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }} }}
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m| {{{1}}} }}={{#ifexpr: {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} < 32 | {{date| {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} || {{{2|}}} }} }}
|{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}={{#ifexpr: {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} < 32 | {{{1}}} | {{date| {{#expr: {{#time:Y| {{{1}}} }} - 2000 }} ||| {{{2|}}} }} }}
|{{#time:Y-m-d H:i:sZ| {{{1}}} }}
|{{#time:Y-m-d H:i:s| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}|{{#time: s | {{{1}}} }}|Z|lang= {{{2|}}} }} }}
|{{#time:Y-m-d H:i| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}{{#ifeq: {{uc: {{{f|}}} }} | Y | | {{date-time separator|{{{2|}}}}}{{Time|{{#time: H | {{{1}}} }}|{{#time: i | {{{1}}} }}||Z|lang= {{{2|}}} }} }}
|{{#time:Y-m-d| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} | {{#ifeq: {{uc: {{{f|}}} }} | Y | | {{#time: j | {{{1}}} }} }} | {{{2|}}} }}
|{{#time:Y-m| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} | {{#ifeq: {{uc: {{{f|}}} }} | Y | |{{#time: n | {{{1}}} }}}} || {{{2|}}} }}
|{{#time:Y| {{{1}}} }}={{date| {{#time: Y | {{{1}}} }} ||| {{{2|}}} }}
|#default= {{{1}}}
}}
}}
}}
}}
<noinclude>
{{documentation}}
 
0

सम्पादन