K |
K |
| (Der Versionsvergleich bezieht 8 dazwischenliegende Versionen mit ein.) |
| Zeile 1: |
Zeile 1: |
| - | <noinclude> | + | ==Default== |
| - | __NOTOC__
| + | <onlyinclude> |
| - | <!--== Kurz-Dokumentation == | + | <div style="font-family:monospace"><nowiki>{{#switch:{{{1|}}}|+={{#switch:{{LOCALWEEK}}</nowiki> |
| | | | |
| - | ; Was macht diese Vorlage?
| + | |{{LOCALWEEK}}<nowiki>={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=16|dayofWeek=7}}|{{MangaPlus|break=2|h=16}} }}</nowiki> |
| - | :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?
| + | |{{#expr:{{LOCALWEEK}}+1}}<nowiki>={{MangaPlus|break=1|h=16}}</nowiki> |
| - | : '''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?'''
| + | <nowiki>|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=16|dayofWeek=7}}|{{MangaPlus|break=1|h=16}} }}</nowiki> |
| - | * Nichts tun: → Zeigt nur die Kapitelnummer.
| + | |
| - | * `{{Template|1=irgendwas}}`: → Zeigt das Datum der nächsten Veröffentlichung.
| + | |
| | | | |
| - | '''Hinweis:'''
| + | <nowiki>}}|b=</nowiki>{{#expr:{{Jump Kapitel|b}}-1}}<nowiki>|#default={{#switch:{{LOCALWEEK}}</nowiki> |
| - | * „717“ bedeutet: Sonntag, 17 Uhr.
| + | |
| - | | + | |
| - | </noinclude>-->
| + | |
| - | | + | |
| - | <code>
| + | |
| - | <nowiki>{{#switch:{{LOCALWEEK}}</nowiki> | + | |
| - | | + | |
| - | |{{LOCALWEEK}}<nowiki>={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=2|h=17}} }}</nowiki> | + | |
| - | | + | |
| - | |{{#expr:{{LOCALWEEK}}+1}}<nowiki>={{MangaPlus|break=2|h=17}} }}</nowiki>
| + | |
| - | | + | |
| - | <nowiki>|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=1|h=17}} }}</nowiki> | + | |
| - | | + | |
| - | <nowiki>}}|{{#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></onlyinclude> |
{{#switch:{{{1|}}}|+={{#switch:{{LOCALWEEK}}
|49={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=16|dayofWeek=7}}|{{MangaPlus|break=2|h=16}} }}
|50={{MangaPlus|break=1|h=16}}
|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=16|dayofWeek=7}}|{{MangaPlus|break=1|h=16}} }}
}}|b=1117|#default={{#switch:{{LOCALWEEK}}
|50=1168
|#default={{#expr:1117+{{LOCALWEEK}} + ({{#timel:NH}}>=717) +({{LOCALWEEK}}<50) }}
}} }}