mNo edit summary |
m (Add DLC filtering classes) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch: {{#if: {{{no context|}}} | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{#invoke: dlc | test | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{context}} }} }} |
<onlyinclude><includeonly>{{#switch: {{#if: {{{no context|}}} | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{#invoke: dlc | test | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{context}} }} }} |
||
− | | 1 <!-- 0001 na --> = [[file:dlc na indicator.png|link=|class=dlc|Removed in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]] | [[category:modified in Afterbirth]] }} |
+ | | 1 <!-- 0001 na --> = [[file:dlc na indicator.png|link=|class=dlc dlc-1|Removed in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]] | [[category:modified in Afterbirth]] }} |
− | | 2 <!-- 0010 ana+ --> = [[file:dlc ana† indicator.png|link=|class=dlc|Added in Afterbirth / Removed in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Afterbirth+]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]] }} |
+ | | 2 <!-- 0010 ana+ --> = [[file:dlc ana† indicator.png|link=|class=dlc dlc-2|Added in Afterbirth / Removed in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Afterbirth+]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]] }} |
− | | 3 <!-- 0011 na+ --> = [[file:dlc na† indicator.png|link=|class=dlc|Removed in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth+]] | [[category:modified in Afterbirth+]] }} |
+ | | 3 <!-- 0011 na+ --> = [[file:dlc na† indicator.png|link=|class=dlc dlc-3|Removed in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth+]] | [[category:modified in Afterbirth+]] }} |
− | | 4 <!-- 0100 a+nr --> = [[file:dlc a†nr indicator.png|link=|class=dlc|Added in Afterbirth † / Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth+]][[category:removed in Repentance]] | [[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
+ | | 4 <!-- 0100 a+nr --> = [[file:dlc a†nr indicator.png|link=|class=dlc dlc-4|Added in Afterbirth † / Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth+]][[category:removed in Repentance]] | [[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
− | | 5 <!-- 0101 naa+nr --> = [[file:dlc naa†nr indicator.png|link=|class=dlc|Removed in Afterbirth / Re-added in Afterbirth † / Re-removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Afterbirth+]][[category:removed in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
+ | | 5 <!-- 0101 naa+nr --> = [[file:dlc naa†nr indicator.png|link=|class=dlc dlc-5|Removed in Afterbirth / Re-added in Afterbirth † / Re-removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Afterbirth+]][[category:removed in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
− | | 6 <!-- 0110 anr --> = [[file:dlc anr indicator.png|link=|class=dlc|Added in Afterbirth / Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Repentance]] }} |
+ | | 6 <!-- 0110 anr --> = [[file:dlc anr indicator.png|link=|class=dlc dlc-6|Added in Afterbirth / Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Repentance]] }} |
− | | 7 <!-- 0111 nr --> = [[file:dlc nr indicator.png|link=|class=dlc|Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Repentance]] | [[category:modified in Repentance]] }} |
+ | | 7 <!-- 0111 nr --> = [[file:dlc nr indicator.png|link=|class=dlc dlc-7|Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Repentance]] | [[category:modified in Repentance]] }} |
− | | 8 <!-- 1000 r --> = [[file:dlc r indicator.png|link=|class=dlc|Added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Repentance]] | [[category:modified in Repentance]] }} |
+ | | 8 <!-- 1000 r --> = [[file:dlc r indicator.png|link=|class=dlc dlc-8|Added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Repentance]] | [[category:modified in Repentance]] }} |
− | | 9 <!-- 1001 nar --> = [[file:dlc nar indicator.png|link=|class=dlc|Removed in Afterbirth / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Repentance]] }} |
+ | | 9 <!-- 1001 nar --> = [[file:dlc nar indicator.png|link=|class=dlc dlc-9|Removed in Afterbirth / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Repentance]] }} |
− | | 10 <!-- 1010 ana+r --> = [[file:dlc ana†r indicator.png|link=|class=dlc|Added in Afterbirth / Removed in Afterbirth † / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Afterbirth+]][[category:added in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
+ | | 10 <!-- 1010 ana+r --> = [[file:dlc ana†r indicator.png|link=|class=dlc dlc-10|Added in Afterbirth / Removed in Afterbirth † / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]][[category:removed in Afterbirth+]][[category:added in Repentance]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
− | | 11 <!-- 1011 na+r --> = [[file:dlc na†r indicator.png|link=|class=dlc|Removed in Afterbirth † / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth+]][[category:added in Repentance]] | [[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
+ | | 11 <!-- 1011 na+r --> = [[file:dlc na†r indicator.png|link=|class=dlc dlc-11|Removed in Afterbirth † / Re-added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth+]][[category:added in Repentance]] | [[category:modified in Afterbirth+]][[category:modified in Repentance]] }} |
− | | 12 <!-- 1100 a+ --> = [[file:dlc a† indicator.png|link=|class=dlc|Added in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth+]] | [[category:modified in Afterbirth+]] }} |
+ | | 12 <!-- 1100 a+ --> = [[file:dlc a† indicator.png|link=|class=dlc dlc-12|Added in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth+]] | [[category:modified in Afterbirth+]] }} |
− | | 13 <!-- 1101 naa+ --> = [[file:dlc naa† indicator.png|link=|class=dlc|Removed in Afterbirth / Re-added in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Afterbirth+]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]] }} |
+ | | 13 <!-- 1101 naa+ --> = [[file:dlc naa† indicator.png|link=|class=dlc dlc-13|Removed in Afterbirth / Re-added in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]][[category:added in Afterbirth+]] | [[category:modified in Afterbirth]][[category:modified in Afterbirth+]] }} |
− | | 14 <!-- 1110 a --> = [[file:dlc a indicator.png|link=|class=dlc|Added in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]] | [[category:modified in Afterbirth]] }} |
+ | | 14 <!-- 1110 a --> = [[file:dlc a indicator.png|link=|class=dlc dlc-14|Added in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]] | [[category:modified in Afterbirth]] }} |
| 15 <!-- 1111 (all) --> = |
| 15 <!-- 1111 (all) --> = |
||
| #default <!-- (???) --> = <!--<span class="error">Error: Incompatible source DLC with current context.</span>[[category:pages with template errors]]--> |
| #default <!-- (???) --> = <!--<span class="error">Error: Incompatible source DLC with current context.</span>[[category:pages with template errors]]--> |
Revision as of 09:05, 10 July 2020
Displays a dlc icon.
Usage
This template is used by entering: {{dlc|1|no context=|categories=}}
Parameters
- unnamed parameter 1
- The name of the dlc.
- Choose one of the following strings to specify the dlc:
a
yields .a+
yields .r
yields .na
yields .na+
yields .nr
yields .ana+
yields .anr
yields .a+nr
yields .naa+
yields .nar
yields .na+r
yields .ana+r
yields .naa+nr
yields .
- no context (optional)
- Use it so that the displayed value does not depend on the context.
- categories (optional)
- Defines categories to add.
- The template uses by default category:modified in Afterbirth, category:modified in Afterbirth+, and category:modified in Repentance.
- If set to
main
, the template uses category:added in Afterbirth, category:added in Afterbirth+, category:added in Repentance, category:removed in Afterbirth, category:removed in Afterbirth+, and category:removed in Repentance. - If set to
no
, the template does not add any categories.
The above documentation is transcluded from Template:Dlc/doc. (edit | history)