Binding of Isaac: Rebirth Wiki
Binding of Isaac: Rebirth Wiki
m (Add class parameter)
m (Use module)
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 | context test | {{{1|}}} | parsed = {{{parsed|}}} }} }}
 
| 1 <!-- 0001 na --> = [[file:dlc na indicator.png|link=|class=dlc dlc-1 {{{class|}}}|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 {{{class|}}}|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 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+]] }}
 
| 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+]] }}

Revision as of 17:25, 2 May 2021

Template-info.png Documentation

Displays a dlc icon.

Usage

This template is used by entering: {{dlc|1|no context=|categories=}} or {{dlc|parsed=|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.