Vorlage:KB (Yaiba): Unterschied zwischen den Versionen

683 Bytes hinzugefügt ,  1. August 2022
+Beschreibung
(Vorlage für Zuordnung der Yaiba-Kapitel zu ihrem entsprechenden Band (vgl. Vorlage:KB))
 
(+Beschreibung)
 
Zeile 1:
<noinclude>Die Vorlage '''KB (Yaiba)''' ermittelt anhand des eingetragenen Kapitels, in welchem ''Yaiba''-Band dieses Kapitel enthalten ist.
<includeonly>{{ #ifexpr: {{{1|0}}} <=000 | 00}}{{ #ifexpr: {{{1|0}}} >= 1 and {{{1|0}}}<= 9 | 1}}{{ #ifexpr: {{{1|0}}} >= 10 and {{{1|0}}}<= 19 | 2}}{{ #ifexpr: {{{1|0}}} >= 20 and {{{1|0}}}<= 29 | 3}}{{ #ifexpr: {{{1|0}}} >= 30 and {{{1|0}}}<= 39 | 4}}{{ #ifexpr: {{{1|0}}} >= 40 and {{{1|0}}}<= 49 | 5}}{{ #ifexpr: {{{1|0}}} >= 50 and {{{1|0}}}<= 59 | 6}}{{ #ifexpr: {{{1|0}}} >= 60 and {{{1|0}}}<= 69 | 7}}{{ #ifexpr: {{{1|0}}} >= 70 and {{{1|0}}}<= 79 | 8}}{{ #ifexpr: {{{1|0}}} >= 80 and {{{1|0}}}<= 89 | 9}}{{ #ifexpr: {{{1|0}}} >= 90 and {{{1|0}}}<=99| 10}}{{ #ifexpr: {{{1|0}}} >=100 and {{{1|0}}}<=110 | 11}}{{ #ifexpr: {{{1|0}}} >=111 and {{{1|0}}}<=121 | 12}}{{ #ifexpr: {{{1|0}}} >=122 and {{{1|0}}}<=132 | 13}}{{ #ifexpr: {{{1|0}}} >=133 and {{{1|0}}}<=143 | 14}}{{ #ifexpr: {{{1|0}}} >=144 and {{{1|0}}}<=154 | 15}}{{ #ifexpr: {{{1|0}}} >=155 and {{{1|0}}}<=165 | 16}}{{ #ifexpr: {{{1|0}}} >=166 and {{{1|0}}}<=176 | 17}}{{ #ifexpr: {{{1|0}}} >=177 and {{{1|0}}}<=187 | 18}}{{ #ifexpr: {{{1|0}}} >=188 and {{{1|0}}}<=198 | 19}}{{ #ifexpr: {{{1|0}}} >=199 and {{{1|0}}}<=209 | 20}}{{ #ifexpr: {{{1|0}}} >=210 and {{{1|0}}}<=221 | 21}}{{ #ifexpr: {{{1|0}}} >=222 and {{{1|0}}}<=232 | 22}}{{ #ifexpr: {{{1|0}}} >=233 and {{{1|0}}}<=243 | 23}}{{ #ifexpr: {{{1|0}}} >=244 and {{{1|0}}}<=255 | 24}}</includeonly>
 
== Verwendung ==
Diese Vorlage wird ausschließlich in anderen Vorlagen verwendet. Dazu gehört u. a. die [[Vorlage:Infobox Kapitel (Yaiba)]].
 
== Beispiel ==
Zur Ermittlung, in welchem Band das 200. Kapitel enthalten ist, kann <code><nowiki>{{KB (Yaiba)|200}}</nowiki></code> genutzt werden. Die Vorlage gibt anschließend folgendes aus: <code>{{KB (Yaiba)|200}}</code>
[[Kategorie:Vorlage Wiki]][[Kategorie:Vorlage:Funktion]]
 
<!-- ### Bitte nur die Daten unterhalb dieser Zeile verändern! ### -->
</noinclude><onlyinclude><includeonly>{{ #ifexpr: {{{1|0}}} <=000 | 00}}{{ #ifexpr: {{{1|0}}} >= 1 and {{{1|0}}}<= 9 | 1}}{{ #ifexpr: {{{1|0}}} >= 10 and {{{1|0}}}<= 19 | 2}}{{ #ifexpr: {{{1|0}}} >= 20 and {{{1|0}}}<= 29 | 3}}{{ #ifexpr: {{{1|0}}} >= 30 and {{{1|0}}}<= 39 | 4}}{{ #ifexpr: {{{1|0}}} >= 40 and {{{1|0}}}<= 49 | 5}}{{ #ifexpr: {{{1|0}}} >= 50 and {{{1|0}}}<= 59 | 6}}{{ #ifexpr: {{{1|0}}} >= 60 and {{{1|0}}}<= 69 | 7}}{{ #ifexpr: {{{1|0}}} >= 70 and {{{1|0}}}<= 79 | 8}}{{ #ifexpr: {{{1|0}}} >= 80 and {{{1|0}}}<= 89 | 9}}{{ #ifexpr: {{{1|0}}} >= 90 and {{{1|0}}}<=99| 10}}{{ #ifexpr: {{{1|0}}} >=100 and {{{1|0}}}<=110 | 11}}{{ #ifexpr: {{{1|0}}} >=111 and {{{1|0}}}<=121 | 12}}{{ #ifexpr: {{{1|0}}} >=122 and {{{1|0}}}<=132 | 13}}{{ #ifexpr: {{{1|0}}} >=133 and {{{1|0}}}<=143 | 14}}{{ #ifexpr: {{{1|0}}} >=144 and {{{1|0}}}<=154 | 15}}{{ #ifexpr: {{{1|0}}} >=155 and {{{1|0}}}<=165 | 16}}{{ #ifexpr: {{{1|0}}} >=166 and {{{1|0}}}<=176 | 17}}{{ #ifexpr: {{{1|0}}} >=177 and {{{1|0}}}<=187 | 18}}{{ #ifexpr: {{{1|0}}} >=188 and {{{1|0}}}<=198 | 19}}{{ #ifexpr: {{{1|0}}} >=199 and {{{1|0}}}<=209 | 20}}{{ #ifexpr: {{{1|0}}} >=210 and {{{1|0}}}<=221 | 21}}{{ #ifexpr: {{{1|0}}} >=222 and {{{1|0}}}<=232 | 22}}{{ #ifexpr: {{{1|0}}} >=233 and {{{1|0}}}<=243 | 23}}{{ #ifexpr: {{{1|0}}} >=244 and {{{1|0}}}<=255 | 24}}</includeonly></onlyinclude>