Template:Gregorian serial date
From ETCwiki
Jump to navigationJump to search
{{#expr:
Template:Void
+ ((2024 - 1) * 365) + (((2024 - 1) - ((2024 - 1) mod 4)) / 4) Template:Void - (((2024 - 1) - ((2024 - 1) mod 100)) / 100) Template:Void + (((2024 - 1) - ((2024 - 1) mod 400)) / 400) Template:Void
Template:Void + {{ #ifexpr: Template:Void Template:Void (11 - 1) < 8 | ( (11 - 1) * 30.5 round 0) | ( (11 - 1) * 30.5 + 0.9 round 0 ) }} - {{ #ifexpr: (11 <= 2) | 0 | {{ #ifexpr: Template:Void (2024 / 4) = (2024 / 4 round 0) Template:Void and (2024 / 100 != 2024 / 100 round 0) Template:Void | 1 | 2 }} }} + {{ #ifexpr: (11 <= 2) | 0 | {{ #ifexpr: Template:Void (2024 / 400) = (2024 / 400 round 0) | 1 | 0 }} }} + 23 }}{{#ifexpr: 2024 < 1 | _ERROR - Can not handle dates before January 1, 1 A.D.
}}
{{#ifeq:μ|
||
{{#ifeq:μ|μ
}} |{{#ifexist: {{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }}
|#default=Template:Gregorian serial date/doc
}}
|[[{{fullurl:{{#switch: Gregorian serial date |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}|action=edit}} edit]] [purge]
|[[{{fullurl:{{#switch: Gregorian serial date |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}|action=edit&preload=Template:Documentation/preload}} create]]
}}}} {{#if:|{{{heading}}}|{{#ifeq:Template|Template|50px Template documentation|Documentation}}}}
{{#ifexist: {{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}
|This documentation is transcluded from [[{{#switch: Gregorian serial date |sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}]]. ([{{fullurl:{{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}|action=edit}} edit] | [{{fullurl:{{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}}|action=history}} history])
}}{{#switch: Gregorian serial date |sandbox|testcases= |#default= {{#switch: Template |Template |User= {{#ifexist: Template:Gregorian serial date/sandbox |This template has a sandbox ([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit]) {{#ifexist: Template:Gregorian serial date/testcases |and testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])}} for editors to experiment. |{{#ifexist: Template:Gregorian serial date/testcases |This template has testcases ([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit]) for editors to experiment.}} }}}}}}
{{#if:|{{{content}}}|{{#ifexist:{{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}} | {{ {{#switch: Gregorian serial date
|sandbox|testcases={{ #rel2abs: ../doc }} |#default=Template:Gregorian serial date/doc
}} }} }}}}