Kategorien
Benutzer:Zabuza/Vorlage/Feiertag: Unterschied zwischen den Versionen
< Benutzer:Zabuza | Vorlage
Zabuza (Diskussion | Beiträge) (+parameter, so hoffentlich klappt das :)) |
Zabuza (Diskussion | Beiträge) K (hab die monate selbst vergessen =)) |
||
Zeile 2: | Zeile 2: | ||
|{{#ifexpr:{{LOCALDAY}} = 1|{{{2}}}Neujahr | |{{#ifexpr:{{LOCALDAY}} = 1|{{{2}}}Neujahr | ||
|{{#ifexpr:{{LOCALDAY}} = 6|{{{3}}}Heilige Drei Könige | |{{#ifexpr:{{LOCALDAY}} = 6|{{{3}}}Heilige Drei Könige | ||
|Januar}}}} | |{{{1}}}Januar}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 2 | |{{#ifexpr:{{LOCALMONTH}} = 2 | ||
|{{#ifexpr:{{LOCALDAY}} = 14|{{{1}}}Valentinstag | |{{#ifexpr:{{LOCALDAY}} = 14|{{{1}}}Valentinstag | ||
|Februar}} | |{{{1}}}Februar}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 3 | |{{#ifexpr:{{LOCALMONTH}} = 3 | ||
|{{#ifexpr:{{LOCALDAY}} = 7|{{{1}}}Rosenmontag | |{{#ifexpr:{{LOCALDAY}} = 7|{{{1}}}Rosenmontag | ||
Zeile 11: | Zeile 11: | ||
|{{#ifexpr:{{LOCALDAY}} = 9|{{{1}}}Aschermittwoch | |{{#ifexpr:{{LOCALDAY}} = 9|{{{1}}}Aschermittwoch | ||
|{{#ifexpr:{{LOCALDAY}} = 20|{{{1}}}Frühlingsbeginn | |{{#ifexpr:{{LOCALDAY}} = 20|{{{1}}}Frühlingsbeginn | ||
|März}}}}}}}} | |{{{1}}}März}}}}}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 4 | |{{#ifexpr:{{LOCALMONTH}} = 4 | ||
|{{#ifexpr:{{LOCALDAY}} = 22|{{{1}}}Karfreitag | |{{#ifexpr:{{LOCALDAY}} = 22|{{{1}}}Karfreitag | ||
|{{#ifexpr:{{LOCALDAY}} = 24|{{{3}}}Ostern | |{{#ifexpr:{{LOCALDAY}} = 24|{{{3}}}Ostern | ||
|{{#ifexpr:{{LOCALDAY}} = 25|{{{1}}}Ostermontag | |{{#ifexpr:{{LOCALDAY}} = 25|{{{1}}}Ostermontag | ||
|April}}}}}} | |{{{1}}}April}}}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 5 | |{{#ifexpr:{{LOCALMONTH}} = 5 | ||
|{{#ifexpr:{{LOCALDAY}} = 1|{{{1}}}Maifeiertag | |{{#ifexpr:{{LOCALDAY}} = 1|{{{1}}}Maifeiertag | ||
|{{#ifexpr:{{LOCALDAY}} = 8|{{{1}}}Muttertag | |{{#ifexpr:{{LOCALDAY}} = 8|{{{1}}}Muttertag | ||
|Mai}}}} | |{{{1}}}Mai}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 6 | |{{#ifexpr:{{LOCALMONTH}} = 6 | ||
|{{#ifexpr:{{LOCALDAY}} = 2|{{{3}}}Christi Himmelfahrt | |{{#ifexpr:{{LOCALDAY}} = 2|{{{3}}}Christi Himmelfahrt | ||
Zeile 27: | Zeile 27: | ||
|{{#ifexpr:{{LOCALDAY}} = 21|{{{1}}}Sommerbeginn | |{{#ifexpr:{{LOCALDAY}} = 21|{{{1}}}Sommerbeginn | ||
|{{#ifexpr:{{LOCALDAY}} = 23|{{{1}}}Fronleichnam | |{{#ifexpr:{{LOCALDAY}} = 23|{{{1}}}Fronleichnam | ||
|Juni}}}}}}}}}} | |{{{1}}}Juni}}}}}}}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 7 | |{{#ifexpr:{{LOCALMONTH}} = 7 | ||
|Juli | |{{{1}}}Juli | ||
|{{#ifexpr:{{LOCALMONTH}} = 8 | |{{#ifexpr:{{LOCALMONTH}} = 8 | ||
|{{#ifexpr:{{LOCALDAY}} = 8|{{{2}}}Friedensfest | |{{#ifexpr:{{LOCALDAY}} = 8|{{{2}}}Friedensfest | ||
|{{#ifexpr:{{LOCALDAY}} = 15|{{{3}}}Maria Himmelfahrt | |{{#ifexpr:{{LOCALDAY}} = 15|{{{3}}}Maria Himmelfahrt | ||
|August}}}} | |{{{1}}}August}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 9 | |{{#ifexpr:{{LOCALMONTH}} = 9 | ||
|{{#ifexpr:{{LOCALDAY}} = 23|{{{1}}}Herbstbeginn | |{{#ifexpr:{{LOCALDAY}} = 23|{{{1}}}Herbstbeginn | ||
|September}} | |{{{1}}}September}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 10 | |{{#ifexpr:{{LOCALMONTH}} = 10 | ||
|{{#ifexpr:{{LOCALDAY}} = 2|{{{2}}}Erntedankfest | |{{#ifexpr:{{LOCALDAY}} = 2|{{{2}}}Erntedankfest | ||
|{{#ifexpr:{{LOCALDAY}} = 3|{{{1}}}Tag der deutschen Einheit | |{{#ifexpr:{{LOCALDAY}} = 3|{{{1}}}Tag der deutschen Einheit | ||
|{{#ifexpr:{{LOCALDAY}} = 31|{{{1}}}Reformationstag | |{{#ifexpr:{{LOCALDAY}} = 31|{{{1}}}Reformationstag | ||
|Oktober}}}}}} | |{{{1}}}Oktober}}}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 11 | |{{#ifexpr:{{LOCALMONTH}} = 11 | ||
|{{#ifexpr:{{LOCALDAY}} = 1|{{{3}}}Allerheiligen | |{{#ifexpr:{{LOCALDAY}} = 1|{{{3}}}Allerheiligen | ||
Zeile 48: | Zeile 48: | ||
|{{#ifexpr:{{LOCALDAY}} = 20|{{{1}}}Totensonntag | |{{#ifexpr:{{LOCALDAY}} = 20|{{{1}}}Totensonntag | ||
|{{#ifexpr:{{LOCALDAY}} = 27|{{{1}}}1. Advent | |{{#ifexpr:{{LOCALDAY}} = 27|{{{1}}}1. Advent | ||
|November}}}}}}}}}} | |{{{1}}}November}}}}}}}}}} | ||
|{{#ifexpr:{{LOCALMONTH}} = 12 | |{{#ifexpr:{{LOCALMONTH}} = 12 | ||
|{{#ifexpr:{{LOCALDAY}} = 4|{{{2}}}Barbara | |{{#ifexpr:{{LOCALDAY}} = 4|{{{2}}}Barbara | ||
Zeile 59: | Zeile 59: | ||
|{{#ifexpr:{{LOCALDAY}} = 26|{{{1}}}2. Weihnachtsfeiertag | |{{#ifexpr:{{LOCALDAY}} = 26|{{{1}}}2. Weihnachtsfeiertag | ||
|{{#ifexpr:{{LOCALDAY}} = 31|{{{2}}}Silvester | |{{#ifexpr:{{LOCALDAY}} = 31|{{{2}}}Silvester | ||
|Dezember}}}}}}}}}}}}}}}}}} | |{{{1}}}Dezember}}}}}}}}}}}}}}}}}} | ||
}}}}}}}}}}}}}}}}}}}}}}}}<noinclude> | }}}}}}}}}}}}}}}}}}}}}}}}<noinclude> | ||
Version vom 15. Juli 2011, 23:20 Uhr
{{{1}}}Juni
[Bearbeiten] Dokumentation
Diese Vorlage zeigt den derzeitigen Feiertag bzw. Monat an.
Verwendung
Diese Vorlage wird mit {{Benutzer:Zabuza/Vorlage/Feiertag|"1"|"2"|"3"|"4"|"5"|"6"}} eingebunden, erlaubt aber auch eine korrekte Darstellung über Ersetzung durch subst:.
Parameter
- 1: Legt den Text vor bestimmten Feiertagen fest, z.B. schönen Beispielfeiertag
- 2: Legt den Text vor bestimmten Feiertagen fest, z.B. schönes Beispielfeiertag
- 3: Legt den Text vor bestimmten Feiertagen fest, z.B. schöne Beispielfeiertag
- 4: Legt alternativen Tag, als Zahl, des Datums fest, standardmäßig der derzeitge Tag.
- 5: Legt alternativen Monat, als Zahl, des Datums fest, standardmäßig der derzeitge Monat.
- 6: Legt alternatives Jahr, als Zahl, des Datums fest, standardmäßig das derzeitge Jahr.