Vorlage:Jump Kapitel/Code

Aus OPwiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
[gesichtete Version][gesichtete Version]
K (Work in Progress)
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>

Version vom 11:26, 7. Apr. 2025

Default

{{#switch:{{{1|}}}|+={{#switch:{{LOCALWEEK}}

|23={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=2|h=17}} }}

|24={{MangaPlus|break=2|h=17}} }}

|#default={{#ifexpr:{{#timel:NH}}<717|{{MangaPlus|h=17|dayofWeek=7}}|{{MangaPlus|break=1|h=17}} }}

}}|b=1126|#default={{#switch:{{LOCALWEEK}}

|24=1151

|#default={{#expr:1126+{{LOCALWEEK}} + ({{#timel:NH}}>=717) +({{LOCALWEEK}}<24) }}

}} }}

Persönliche Werkzeuge
Nakama
Toplists
  • AnimeManga Charts