Template:Gregorian
From Iwe
(Created page with '{{#expr: <!--Days from all years past:--> + (({{{year|{{CURRENTYEAR}}}}} - 1) * 365) + ((({{{year|{{CURRENTYEAR}}}}} - 1) - (({{{year|{{CURRENTYEAR}}}}}…') |
|||
Line 1: | Line 1: | ||
- | {{ | + | {{Documentation subpage}} |
- | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> | |
+ | This template gives the [[Gregorian calendar|Gregorian]] serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: '''<nowiki>{{Gregorian serial date|month = |day = |year = }}</nowiki> | ||
- | + | '''Today's date is {{Gregorian serial date}}.''' | |
- | + | ||
- | + | ||
- | + | ||
- | + | *<nowiki>{{gsd|year=1|month=1|day=1}}</nowiki> gives {{gsd|year=1|month=1|day=1}} | |
- | + | *<nowiki>{{gsd|year=2000|month=12|day=31}}</nowiki> gives {{gsd|year=2000|month=12|day=31}} (5 times the number of days of a cycle, 146,097) | |
- | + | *<nowiki>{{gsd|year=1985|month=1|day=1}}</nowiki> gives {{gsd|year=2000|month=1|day=1}} | |
- | + | *<nowiki>{{gsd|year=1985|month=4|day=12}}</nowiki> gives {{gsd|year=1985|month=4|day=12}} | |
- | + | *<nowiki>{{gsd|year=2001|month=2|day=28}}</nowiki> gives {{gsd|year=2001|month=2|day=28}} | |
- | + | *<nowiki>{{gsd|year=2001|month=3|day=1}}</nowiki> gives {{gsd|year=2001|month=3|day=1}} | |
- | + | ||
- | + | ||
- | + | <includeonly><!-- | |
- | + | ++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | |
- | + | [[Category:Date mathematics templates|Gregorian serial date]] | |
- | + | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | |
- | + | ||
- | + | [[dsb:Pśedłoga:Gregorjaniski běžny datum]] | |
- | + | [[hsb:Předłoha:Gregorianski běžny datum]] | |
- | + | [[ja:Template:Gregorian serial date]] | |
- | + | [[ko:틀:날짜]] | |
- | + | [[ml:ഫലകം:Gregorian serial date]] | |
- | + | [[no:Mal:Gregorian serial date]] | |
- | + | [[ru:Шаблон:GSD]] | |
- | + | [[sv:Mall:Gregorianskt dagnummer]] | |
- | + | [[th:แม่แบบ:Gregorian serial date]] | |
- | + | [[vi:Tiêu bản:Số ngày Gregory]] | |
- | + | </includeonly> |
Current revision as of 10:53, 4 August 2016
{{#ifeq: gregorian | doc
|
{{
#ifeq: show | show| {{#ifeq:|yes||
{{{topimage}}}{{#if: | {{{topcaption}}} }} |
{{{pretitle}}} |
}}Message box meta-templates |
---|
{{{image}}}{{#if: | {{{caption}}} }} |
{{{above}}} |
{{{heading1}}} |
|
{{{heading2}}} |
{{{content2}}} |
{{{heading3}}} |
{{{content3}}} |
{{{heading4}}} |
{{{heading5}}} |
{{{content5}}} |
{{{heading6}}} |
{{{content6}}} |
{{{heading7}}} |
{{{content7}}} |
{{{heading8}}} |
{{{content8}}} |
{{{heading9}}} |
{{{content9}}} |
{{{heading10}}} |
{{{content10}}} |
{{{heading11}}} |
{{{content11}}} |
{{{heading12}}} |
{{{content12}}} |
{{{heading13}}} |
{{{content13}}} |
{{{heading14}}} |
{{{content14}}} |
{{{heading15}}} |
{{{content15}}} |
{{{heading16}}} |
{{{content16}}} |
{{{heading17}}} |
{{{content17}}} |
{{{heading18}}} |
{{{content18}}} |
{{{heading19}}} |
{{{content19}}} |
{{{heading20}}} |
{{{content20}}} |
{{{heading21}}} |
{{{content21}}} |
{{{heading22}}} |
{{{content22}}} |
{{{heading23}}} |
{{{content23}}} |
{{{heading24}}} |
{{{content24}}} |
{{{heading25}}} |
{{{content25}}} |
{{{heading26}}} |
{{{content26}}} |
{{{heading27}}} |
{{{content27}}} |
{{{heading28}}} |
{{{content28}}} |
{{{heading29}}} |
{{{content29}}} |
{{{heading30}}} |
{{{content30}}} |
{{{heading31}}} |
{{{content31}}} |
{{{heading32}}} |
{{{content32}}} |
{{{heading33}}} |
{{{content33}}} |
{{{heading34}}} |
{{{content34}}} |
{{{heading35}}} |
{{{content35}}} |
{{{below}}} |
{{#switch: mbox templates
|table={ class="wikitable" !Comenius OSM and Tourism !Sl: Life Long Learning Mapping Project !Ro: Life Long Learning Mapping Project !Pt:Life Long Learning Mapping Project !Tr: Life Long Learning Mapping Project !DE: Life Long Learning Mapping Project } |line=Comenius - To boost local and international tourism with OpenStreetMap - BoostOSM
{ class="center" - style="width:16%;vertical-align:bottom;" File:Merge.png } |small=Template:Navigation bar | #default =Template:Navigation bar }}
|
}}{{ #if: | | {{#ifexist:Template:Gregorian|[[Category:{{ #switch: Template | Template = Template | User = User | #default = Wikipedia }} documentation pages]]|}} }}
| }} This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Gregorian serial date|month = |day = |year = }}
Today's date is {{#expr:
+ ((2025 - 1) * 365) + (((2025 - 1) - ((2025 - 1) mod 4)) / 4) - (((2025 - 1) - ((2025 - 1) mod 100)) / 100) + (((2025 - 1) - ((2025 - 1) mod 400)) / 400)
+ {{ #ifexpr: (06 - 1) < 8 | ( (06 - 1) * 30.5 round 0) | ( (06 - 1) * 30.5 + 0.9 round 0 ) }} - {{ #ifexpr: (06 <= 2) | 0 | {{ #ifexpr: (2025 / 4) = (2025 / 4 round 0) and (2025 / 100 != 2025 / 100 round 0) | 1 | 2 }} }} + {{ #ifexpr: (06 <= 2) | 0 | {{ #ifexpr: (2025 / 400) = (2025 / 400 round 0) | 1 | 0 }} }} + 3 }}{{#ifexpr: 2025 < 1 | _ERROR - Can not handle dates before January 1, 1 A.D. }}.
- {{gsd|year=1|month=1|day=1}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd
- {{gsd|year=2001|month=2|day=28}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd
- {{gsd|year=2001|month=3|day=1}} gives This template gives the Gregorian serial day. This is the numbers of days from the start of 1 A.D. (Monday, 1 Jan 1 = 1). (In the Gregorian Calendar there is no year 0) This template should handle all leap year exceptions including the 100 and 400 year rule. By default this template gives the serial for today. To find the serial for another date fill in the date into this code: {{Age in days|month = |day = |year = }}
Today's date is 06306.
- {{gsd|year=1|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=2000|month=12|day=31}} gives Template loop detected: Template:Gsd (5 times the number of days of a cycle, 146,097)
- {{gsd|year=1985|month=1|day=1}} gives Template loop detected: Template:Gsd
- {{gsd|year=1985|month=4|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1981|month=8|day=12}} gives Template loop detected: Template:Gsd
- {{gsd|year=1953|month=10|day=2}} gives Template loop detected: Template:Gsd