News (06 Aug 2024): Das Wiki läuft jetzt auf einem neuen Server. Aufgrund eines Upgrades von PHP mussten die Wiki-Software und die DPL-Erweiterung aktualisiert werden. Bitte meldet Fehler auf der Hauptseiten-Diskussion.
Benutzer:Tobias Xy/Vorlage2: Unterschied zwischen den Versionen
Aus GuildWiki
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung |
(ganz schön anspruchsvoll :D) |
||
Zeile 1: | Zeile 1: | ||
<div style="display:none;"> | <div style="display:none;"> | ||
{{#vardefine: | {{#vardefine:year|{{{1|2000}}} }} | ||
{{ | {{#vardefine:month|{{{2|12}}} }} | ||
{{#vardefine:day|{{{3|12}}} }} | |||
{{#vardefine: | {{#vardefine:hour|{{{4|0}}} }} | ||
{{ | {{#vardefine:minute|{{{5|0}}} }} | ||
{{#vardefine:second|{{{6|0}}} }} | |||
{{#vardefine: | |||
{{ | |||
{{#vardefine: | |||
{{#vardefine: | |||
{{#vardefine: | |||
{{#vardefine:is_leap|0}} | |||
{{#vardefine:unix|0}} | |||
{{#vardefine:i|1970}} | {{#vardefine:i|1970}} | ||
{{#while: | {{#while: | ||
|{{#ifexpr: | |{{#ifexpr: {{#var:i}} < {{#var:year}} | true}} | ||
|{{#ifexpr: {{#var:i}} | |{{#ifexpr: {{#var:i}} mod 4 = 0 and ({{#var:i}} mod 100 != 0 or {{#var:i}} mod 400 = 0) | ||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+366*24*60*60}} {{#vardefine:is_leap|1}} }} | |||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+365*24*60*60}} }} | |||
}} | |||
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | |||
}} | }} | ||
{{#vardefine:i|1}} | {{#vardefine:i|1}} | ||
{{#while: | {{#while: | ||
|{{#ifexpr: {{#var:i}} < | |{{#ifexpr: {{#var:i}} < {{#var:month}} | true}} | ||
|{{#vardefine: | |{{#ifexpr: {{#var:i}} = 1 or {{#var:i}} = 3 or {{#var:i}} = 5 or {{#var:i}} = 7 or {{#var:i}} = 8 or {{#var:i}} = 10 or {{#var:i}} = 12 | ||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+31*24*60*60}} }} | |||
}} | |||
{{#ifexpr: {{#var:i}} = 4 or {{#var:i}} = 6 or {{#var:i}} = 9 or {{#var:i}} = 11 | |||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+30*24*60*60}} }} | |||
}} | |||
{{#ifexpr: {{#var:i}} = 2 | |||
|{{#ifexpr: {{#var:is_leap}} = 1 | |||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+29*24*60*60}} }} | |||
|{{#vardefine:unix|{{#expr:{{#var:unix}}+28*24*60*60}} }} | |||
}} | |||
}} | |||
{{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | {{#vardefine:i|{{#expr:{{#var:i}}+1}} }} | ||
}} | }} | ||
{{#var: | {{#vardefine:unix|{{#expr:{{#var:unix}}+({{#var:day}}-1)*24*60*60}} }} | ||
{{#var: | {{#vardefine:unix|{{#expr:{{#var:unix}}+({{#var:hour}}-1)*60*60}} }} | ||
{{#var: | {{#vardefine:unix|{{#expr:{{#var:unix}}+{{#var:minute}}*60}} }} | ||
{{#var: | {{#vardefine:unix|{{#expr:{{#var:unix}}+{{#var:second}}}} }} | ||
{{#expr:{{#var: | |||
</div>{{#var:unix}} |
Version vom 7. Dezember 2009, 20:14 Uhr
976575600