(Messages test) |
m (Add class parameter) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly>{{#switch: {{dlc |
+ | <onlyinclude><includeonly>{{#switch: {{#if: {{{no context|}}} | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{#invoke: dlc | test | {{#or: {{{parsed|}}} | {{#invoke: dlc | parse | {{{1|}}} }} }} | {{context}} }} }} |
⚫ | |||
− | |||
− | + | | 2 <!-- 0010 ana+ --> = [[file:dlc ana† indicator.png|link=|class=dlc dlc-2 {{{class|}}}|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 dlc-3 {{{class|}}}|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 dlc-4 {{{class|}}}|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 dlc-5 {{{class|}}}|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 dlc-6 {{{class|}}}|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 dlc-7 {{{class|}}}|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 dlc-8 {{{class|}}}|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 dlc-9 {{{class|}}}|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 dlc-10 {{{class|}}}|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 dlc-11 {{{class|}}}|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 dlc-12 {{{class|}}}|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 dlc-13 {{{class|}}}|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 dlc-14 {{{class|}}}|Added in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Afterbirth]] | [[category:modified in Afterbirth]] }} |
+ | | 15 <!-- 1111 (all) --> = |
||
⚫ | --> |
||
+ | | #default <!-- (???) --> = <!--<span class="error">Error: Incompatible source DLC with current context.</span>[[category:pages with template errors]]--> |
||
− | |||
+ | }}</includeonly></onlyinclude> |
||
− | -->| _error = [[category:pages with template errors]]<!-- |
||
− | |||
− | -->}}{{#switch: {{{2|}}} | add | a = {{dlc context | add | {{{1|}}} }} | global | g = {{dlc context | global | {{{1|}}} }} | replace | r = {{dlc context | remove }}{{dlc context | add | {{{1|}}} }} }}</includeonly></onlyinclude> |
||
{{doc}} |
{{doc}} |
||
Revision as of 19:03, 1 September 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)