Vorlage:Gsd

Aus Kitakien

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(+interwikis: en, ru)
K (Schützte „Vorlage:Gsd“: Selten zu ändernde Vorlage ([edit=autoconfirmed] (unbeschränkt) [move=sysop] (unbeschränkt)))
 
(Der Versionsvergleich bezieht 7 dazwischenliegende Versionen mit ein.)
Zeile 14: Zeile 14:
         <!--Days from all years past:-->
         <!--Days from all years past:-->
-
         + (({{{Jahr|{{CURRENTYEAR}}}}} - 1) * 365)
+
         + (({{{Jahr|{{LOCALYEAR}}}}} - 1) * 365)
-
         + ((({{{Jahr|{{CURRENTYEAR}}}}} - 1) - (({{{Jahr|{{CURRENTYEAR}}}}} - 1) mod 4)) / 4)    <!--add a Tag for every leap-->
+
         + ((({{{Jahr|{{LOCALYEAR}}}}} - 1) - (({{{Jahr|{{LOCALYEAR}}}}} - 1) mod 4)) / 4)    <!--add a Tag for every leap-->
-
         - ((({{{Jahr|{{CURRENTYEAR}}}}} - 1) - (({{{Jahr|{{CURRENTYEAR}}}}} - 1) mod 100)) / 100) <!--subtract 100 year exception-->
+
         - ((({{{Jahr|{{LOCALYEAR}}}}} - 1) - (({{{Jahr|{{LOCALYEAR}}}}} - 1) mod 100)) / 100) <!--subtract 100 year exception-->
-
         + ((({{{Jahr|{{CURRENTYEAR}}}}} - 1) - (({{{Jahr|{{CURRENTYEAR}}}}} - 1) mod 400)) / 400) <!--readd 400 year exception-->
+
         + ((({{{Jahr|{{LOCALYEAR}}}}} - 1) - (({{{Jahr|{{LOCALYEAR}}}}} - 1) mod 400)) / 400) <!--readd 400 year exception-->
       <!--Days so far this year:-->
       <!--Days so far this year:-->
   
   
         + {{ #ifexpr:    <!--add Tags for past months this year--> <!--Gives 1 or 2 extra Tags because of February-->
         + {{ #ifexpr:    <!--add Tags for past months this year--> <!--Gives 1 or 2 extra Tags because of February-->
-
                     ({{{Monat|{{CURRENTMONTH}}}}} - 1) < 8  
+
                     ({{{Monat|{{LOCALMONTH}}}}} - 1) < 8  
-
                     | ( ({{{Monat|{{CURRENTMONTH}}}}} - 1) * 30.5 round 0)  
+
                     | ( ({{{Monat|{{LOCALMONTH}}}}} - 1) * 30.5 round 0)  
-
                     | ( ({{{Monat|{{CURRENTMONTH}}}}} - 1) * 30.5 + 0.9 round 0 )  
+
                     | ( ({{{Monat|{{LOCALMONTH}}}}} - 1) * 30.5 + 0.9 round 0 )  
           }}  
           }}  
-
         - {{ #ifexpr: ({{{Monat|{{CURRENTMONTH}}}}} <= 2) | 0 |   
+
         - {{ #ifexpr: ({{{Monat|{{LOCALMONTH}}}}} <= 2) | 0 |   
             {{ #ifexpr:    <!-- if leap year  -->
             {{ #ifexpr:    <!-- if leap year  -->
-
                     ({{{Jahr|{{CURRENTYEAR}}}}} / 4) = ({{{Jahr|{{CURRENTYEAR}}}}} / 4 round 0)          <!--If divisible by 4-->
+
                     ({{{Jahr|{{LOCALYEAR}}}}} / 4) = ({{{Jahr|{{LOCALYEAR}}}}} / 4 round 0)          <!--If divisible by 4-->
-
                       and ({{{Jahr|{{CURRENTYEAR}}}}} / 100 != {{{Jahr|{{CURRENTYEAR}}}}} / 100 round 0)  <!--and not by 100-->
+
                       and ({{{Jahr|{{LOCALYEAR}}}}} / 100 != {{{Jahr|{{LOCALYEAR}}}}} / 100 round 0)  <!--and not by 100-->
                 | 1 | 2  
                 | 1 | 2  
             }}
             }}
           }}
           }}
-
         + {{ #ifexpr: ({{{Monat|{{CURRENTMONTH}}}}} <= 2) | 0 |
+
         + {{ #ifexpr: ({{{Monat|{{LOCALMONTH}}}}} <= 2) | 0 |
             {{ #ifexpr: <!--400 Jahr exception-->
             {{ #ifexpr: <!--400 Jahr exception-->
-
                     ({{{Jahr|{{CURRENTYEAR}}}}} / 400) = ({{{Jahr|{{CURRENTYEAR}}}}} / 400 round 0)  
+
                     ({{{Jahr|{{LOCALYEAR}}}}} / 400) = ({{{Jahr|{{LOCALYEAR}}}}} / 400 round 0)  
                 | 1 | 0  
                 | 1 | 0  
             }}
             }}
           }}  
           }}  
-
         + {{{Tag|{{CURRENTDAY}}}}}
+
         + {{{Tag|{{LOCALDAY}}}}}
-
  }}{{#ifexpr: {{{Jahr|{{CURRENTYEAR}}}}} < 1 |
+
  }}{{#ifexpr: {{{Jahr|{{LOCALYEAR}}}}} < 1 |
         _ERROR - Can not handle dates before January 1, 1 A.D.
         _ERROR - Can not handle dates before January 1, 1 A.D.
   }}
   }}
</includeonly><noinclude>
</includeonly><noinclude>
 +
[[cs:Šablona:Gregorian serial date]]
 +
[[dsb:Pśedłoga:Gregorjaniski běžny datum]]
[[en:Template:Gregorian serial date]]
[[en:Template:Gregorian serial date]]
 +
[[eo:Ŝablono:Gregoria seria dato]]
 +
[[hsb:Předłoha:Gregorianski běžny datum]]
 +
[[ja:Template:Gregorian serial date]]
 +
[[ko:틀:날짜]]
 +
[[ml:ഫലകം:Gregorian serial date]]
 +
[[no:Mal:Gregorian serial date]]
 +
[[pt:Predefinição:Gregorian serial date]]
[[ru:Шаблон:GSD]]
[[ru:Шаблон:GSD]]
 +
[[sv:Mall:Gregorianskt dagnummer]]
 +
[[th:แม่แบบ:Gregorian serial date]]
</noinclude>
</noinclude>

Aktuelle Version vom 15:43, 9. Dez. 2009

Diese Vorlage wurde aus aus der englischen Wikipedia (Gregorian serial date) übernommen. Für eine Autorenliste siehe hier.

Diese Vorlage berechnet die Tage seit 1 n. Chr. und dem angegebenen Tag, nach dem Gregorianischer Kalender.

Verwendung:

{{gsd
|Tag =
|Monat =
|Jahr =
}}cs:Šablona:Gregorian serial dateen:Template:Gregorian serial dateja:Template:Gregorian serial date

ko:틀:날짜 ml:ഫലകം:Gregorian serial date no:Mal:Gregorian serial date pt:Predefinição:Gregorian serial date ru:Шаблон:GSD sv:Mall:Gregorianskt dagnummer th:แม่แบบ:Gregorian serial date

Persönliche Werkzeuge