m (Merged with new version) |
mNo edit summary |
||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly>{{#switch: {{#if: {{{no context|}}} | {{{parsed|{{#invoke: dlc | parse | {{{1|}}} }} |
+ | <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|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|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+]] }} |
Revision as of 18:19, 7 May 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)