Template:ISOdate

From PacificNG
Revision as of 11:59, 11 August 2021 by Andrew Brandon (talk | contribs) (Created page with "{{#switch: 1 |{{#ifexpr: ({{#ifeq: {{{1|}}} | | 1|0}}) or (({{#iferror: {{#expr: {{{1}}} }} | 1 | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |0|1}} }}) and ({{#iferror: {{#time: |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#switch: 1 |{{#ifexpr: ({{#ifeq: | | 1|0}}) or (({{#iferror: {{#expr: {{{1}}} }} | 1 | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |0|1}} }}) and ({{#iferror: {{#time: | {{{1}}} }}{{#time: | a{{{1}}} }} | 1 | 0 }}) and ({{#iferror: {{#expr: {{{1}}} }} | 1 | 0 }})) | 1}}= |{{#if: {{#iferror: {{#expr: {{{1}}} }} | | {{#ifeq: {{{1}}} | {{#expr: {{{1}}} }} |1|}} }} | 1 }}=Template:Date |{{#ifexpr: ({{#iferror: {{#expr: {{{1}}} }} | 1 | 0 }}=1) and ({{#iferror: {{#time: | {{{1}}} }}{{#time: | a{{{1}}} }} | 1 | 0 }})|1}}={{{1}}} |{{#ifexpr: ({{#iferror: {{#expr: {{{1}}} }} |0|1}}) and ({{{1}}} <= 998) and ({{{1}}} >= -11)|1}}= {{#switch: 1 |{{#ifexpr: ({{{1}}} <= 998) and ({{{1}}} >= -11) and ({{#iferror: {{#time: Y | {{{1}}} }}|1|0}}=1)|1}}={{{1}}} |{{#ifexpr: ({{{1}}} <= 998) and ({{{1}}} >= -11) and ({{#ifexpr: ({{#time: Y | {{{1}}} }} >= 1958) and ({{{1}}} <= 98) |1|0}}=1)|1}}={{#ifeq: {{{1}}} | {{#expr: {{#time: y | {{{1}}} }} }}-{{#time: m | {{{1}}} }} | Template:Date | {{#ifeq: {{{1}}} | {{#expr: {{#time: y | {{{1}}} }} }}-{{#time: m | {{{1}}} }}-{{#time: d | {{{1}}} }} | Template:Date | {{{1}}} }} }} |{{#ifexpr: ({{{1}}} <= 998) and ({{{1}}} >= -11)|1}}={{#ifeq: {{{1}}} | {{#expr: {{#time: Y | {{{1}}} }} }}-{{#time: m | {{{1}}} }} | Template:Date | {{#ifeq: {{{1}}} | {{#expr: {{#time: Y | {{{1}}} }} }}-{{#time: m | {{{1}}} }}-{{#time: d | {{{1}}} }} | Template:Date | {{{1}}} }} }} |#default={{{1}}} }} |#default= {{#ifexpr: ({{#ifeq:

  1. {{{1}}} | #{{{1}}} | 1 | 0 }}) and ({{#iferror: {{#expr: {{{1}}} > 100 }} | 0 | {{#ifexpr: {{{1}}} > 100 | 1 | 0 }} }}) and ({{#iferror: {{#time: Y | }} | 0 | 1 }}) | Template:Date | {{#switch: {{{1}}}

|{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:sZ| {{{1}}} }} |{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i:s| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d H:i| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m-d| {{{1}}} }}=Template:Date |{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}-{{#time:m| {{{1}}} }}=Template:Date |{{#expr: {{#time:Y| {{{1}}} }} - 1900 }}=Template:Date |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i:sZ| {{{1}}} }} |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i:s| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d H:i| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m-d| {{{1}}} }}=Template:Date |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}-{{#time:m| {{{1}}} }}=Template:Date |{{#expr: {{#time:Y| {{{1}}} }} - 2000 }}=Template:Date |{{#time:Y-m-d H:i:sZ| {{{1}}} }} |{{#expr:{{#time:Y| {{{1}}} }}}}{{#time:-m-d H:i:sZ| {{{1}}} }} |{{#expr:{{#time:Y| {{{1}}} }}}}{{#time:-m-d H:i:s| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr:{{#time:Y| {{{1}}} }}}}{{#time:-m-d H:i| {{{1}}} }}=Template:Date{{#ifeq: | Y | | Template:Date-time separatorTemplate:Time }} |{{#expr:{{#time:Y| {{{1}}} }}}}{{#time:-m-d| {{{1}}} }}=Template:Date |{{#expr:{{#time:Y| {{{1}}} }}}}{{#time:-m| {{{1}}} }}=Template:Date |{{#expr:{{#time:Y| {{{1}}} }}}}=Template:Date |#default= {{{1}}} }} }} }}{{#ifeq:|Y|Template:ISOdate with f }}

Template:Documentation