Sjabloon:Kalender: verschil tussen versies

Uit Radiopedia
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 7: Regel 7:
{| border="0" align="center" style="white-space:nowrap;" cellpadding="1"
{| border="0" align="center" style="white-space:nowrap;" cellpadding="1"
|- align="right"
|- align="right"
| [[1. {{{1|{{PAGENAME}}}}}|1]] || [[2. {{{1|{{PAGENAME}}}}}|2]] || [[3. {{{1|{{PAGENAME}}}}}|3]] || [[4. {{{1|{{PAGENAME}}}}}|4]] || [[5. {{{1|{{PAGENAME}}}}}|5]] || [[6. {{{1|{{PAGENAME}}}}}|6]] || [[7. {{{1|{{PAGENAME}}}}}|7]]
| [[1 {{{1|{{PAGENAME}}}}}|1]] || [[2 {{{1|{{PAGENAME}}}}}|2]] || [[3 {{{1|{{PAGENAME}}}}}|3]] || [[4 {{{1|{{PAGENAME}}}}}|4]] || [[5 {{{1|{{PAGENAME}}}}}|5]] || [[6 {{{1|{{PAGENAME}}}}}|6]] || [[7 {{{1|{{PAGENAME}}}}}|7]]
|- align="right"
|- align="right"
| [[8. {{{1|{{PAGENAME}}}}}|8]] || [[9. {{{1|{{PAGENAME}}}}}|9]] || [[10. {{{1|{{PAGENAME}}}}}|10]] || [[11. {{{1|{{PAGENAME}}}}}|11]] || [[12. {{{1|{{PAGENAME}}}}}|12]] || [[13. {{{1|{{PAGENAME}}}}}|13]] || [[14. {{{1|{{PAGENAME}}}}}|14]]
| [[8 {{{1|{{PAGENAME}}}}}|8]] || [[9 {{{1|{{PAGENAME}}}}}|9]] || [[10 {{{1|{{PAGENAME}}}}}|10]] || [[11 {{{1|{{PAGENAME}}}}}|11]] || [[12 {{{1|{{PAGENAME}}}}}|12]] || [[13 {{{1|{{PAGENAME}}}}}|13]] || [[14 {{{1|{{PAGENAME}}}}}|14]]
|- align="right"
|- align="right"
| [[15. {{{1|{{PAGENAME}}}}}|15]] || [[16. {{{1|{{PAGENAME}}}}}|16]] || [[17. {{{1|{{PAGENAME}}}}}|17]] || [[18. {{{1|{{PAGENAME}}}}}|18]] || [[19. {{{1|{{PAGENAME}}}}}|19]] || [[20. {{{1|{{PAGENAME}}}}}|20]] || [[21. {{{1|{{PAGENAME}}}}}|21]]
| [[15 {{{1|{{PAGENAME}}}}}|15]] || [[16 {{{1|{{PAGENAME}}}}}|16]] || [[17 {{{1|{{PAGENAME}}}}}|17]] || [[18 {{{1|{{PAGENAME}}}}}|18]] || [[19 {{{1|{{PAGENAME}}}}}|19]] || [[20 {{{1|{{PAGENAME}}}}}|20]] || [[21 {{{1|{{PAGENAME}}}}}|21]]
|- align="right"
|- align="right"
| [[22. {{{1|{{PAGENAME}}}}}|22]] || [[23. {{{1|{{PAGENAME}}}}}|23]] || [[24. {{{1|{{PAGENAME}}}}}|24]] || [[25. {{{1|{{PAGENAME}}}}}|25]] || [[26. {{{1|{{PAGENAME}}}}}|26]] || [[27. {{{1|{{PAGENAME}}}}}|27]] || [[28. {{{1|{{PAGENAME}}}}}|28]]
| [[22 {{{1|{{PAGENAME}}}}}|22]] || [[23 {{{1|{{PAGENAME}}}}}|23]] || [[24 {{{1|{{PAGENAME}}}}}|24]] || [[25 {{{1|{{PAGENAME}}}}}|25]] || [[26 {{{1|{{PAGENAME}}}}}|26]] || [[27 {{{1|{{PAGENAME}}}}}|27]] || [[28 {{{1|{{PAGENAME}}}}}|28]]
|- align="right"
|- align="right"
| [[29. {{{1|{{PAGENAME}}}}}|29]]{{#ifeq: {{{1|{{PAGENAME}}}}} | februari | {{!!}} colspan="2" align="center" {{!}} ([[30. Februar|30]]) | {{!!}} [[30. {{{1|{{PAGENAME}}}}}|30]] }}{{#switch: {{{1|{{PAGENAME}}}}}
| [[29 {{{1|{{PAGENAME}}}}}|29]]{{#ifeq: {{{1|{{PAGENAME}}}}} | februari | | {{!!}} [[30 {{{1|{{PAGENAME}}}}}|30]] }}{{#switch: {{{1|{{PAGENAME}}}}}
| januari
| januari
| maart
| maart
Regel 22: Regel 22:
| augustus
| augustus
| oktober
| oktober
| december = {{!!}} [[31. {{{1|{{PAGENAME}}}}}|31]]
| december = {{!!}} [[31 {{{1|{{PAGENAME}}}}}|31]]
}}
}}
|}
|}

Versie van 17 apr 2012 12:03

Diese Vorlage ist als Kalenderblatt für die 12 allgemeinen Monate und alle Jahrestage gedacht (Übersicht: Historische Jahrestage).

Am Beispiel des 13. April wird sie folgendermaßen eingebunden:

{{Kalender|april}}

[[Sjabloon:Monat Name-Zahl]] · april · [[Sjabloon:Monat Name-Zahl]]

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

In den allgemeinen Monatsartikeln kann der Monatsname (im Beispiel also |April) entfallen.

Durch if-Verzweigungen wird erkannt, welche Monate wieviele Tage haben.