K |
K |
Zeile 1: |
Zeile 1: |
- | <noinclude>
| + | ==Default== |
- | __NOTOC__
| + | <onlyinclude> |
- | <!--== Kurz-Dokumentation ==
| + | |
- | | + | |
- | ; Was macht diese Vorlage?
| + | |
- | :Zeigt das aktuelle Kapitel ODER das nächste Veröffentlichungsdatum an.
| + | |
- | | + | |
- | ; Für nächste Woche wurde eine Pause angekündigt, diese Woche erscheint das nächste Kapitel. Was muss ich ändern?
| + | |
- | : '''Das Datum für das nächste Veröffentlichungsdatum'''
| + | |
- | #'''Wichtig:''' Wir müssten aktuell Woche '''{{LOCALWEEK}}''' haben. Wenn diese Zahl nicht stimmt, den Cache der Seite bitte leeren, indem hier draufklickst https://opwiki.org/wiki/Vorlage:Jump_Kapitel?action=purge
| + | |
- | #Angenommen das Kapitel dieser Woche erscheint am Sonntag 17 Uhr. Dann müsste es reichen, diesen Code auf dieser Seite zu kopieren [[Vorlage:Jump Kapitel/Code]]
| + | |
- | | + | |
- | '''Wie benutzt man das Template?'''
| + | |
- | * Nichts tun: → Zeigt nur die Kapitelnummer.
| + | |
- | * `{{Template|1=irgendwas}}`: → Zeigt das Datum der nächsten Veröffentlichung.
| + | |
- | | + | |
- | '''Hinweis:'''
| + | |
- | * „717“ bedeutet: Sonntag, 17 Uhr.
| + | |
- | | + | |
- | </noinclude>--> | + | |
- | | + | |
| <code> | | <code> |
- | <nowiki>{{#switch:{{LOCALWEEK}}</nowiki> | + | <nowiki>{{#switch:{{{1|}}}|+={{#switch:{{LOCALWEEK}}</nowiki> |
| | | |
| |{{LOCALWEEK}}<nowiki>={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=2|h=17}} }}</nowiki> | | |{{LOCALWEEK}}<nowiki>={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=2|h=17}} }}</nowiki> |
Zeile 29: |
Zeile 10: |
| <nowiki>|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=1|h=17}} }}</nowiki> | | <nowiki>|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=1|h=17}} }}</nowiki> |
| | | |
- | <nowiki>}}|{{#switch:{{LOCALWEEK}}</nowiki> | + | <nowiki>}}|b=</nowiki>{{#expr:{{Jump Kapitel|b}}-1}}<nowiki>|#default={{#switch:{{LOCALWEEK}}</nowiki> |
| | | |
| |{{#expr:{{LOCALWEEK}}+1}}={{#expr:{{Jump Kapitel}}+1}} | | |{{#expr:{{LOCALWEEK}}+1}}={{#expr:{{Jump Kapitel}}+1}} |
| | | |
- | <nowiki>|#default={{#expr:1129+{{LOCALWEEK}} + ({{#timel:NH}}>=717) +({{LOCALWEEK}}<15) }}</nowiki> | + | <nowiki>|#default={{#expr:</nowiki>{{#expr:{{Jump Kapitel|b}}-1}}<nowiki>+{{LOCALWEEK}} + ({{#timel:NH}}>=717) +({{LOCALWEEK}}<</nowiki>{{#expr:{{LOCALWEEK}}+1}}<nowiki>) }}</nowiki> |
| | | |
- | <nowiki>}} }}</nowiki></code> | + | <nowiki>}} }}</nowiki></code></onlyinclude> |