Binding of Isaac: Rebirth Wiki
(Messages test)
m (Add class parameter)
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch: {{dlc test | {{{1|}}} | force = {{{force|}}} | context = {{{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 dlc-1 {{{class|}}}|Removed in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]] | [[category:modified in Afterbirth]] }}
 
-->| a = [[file:dlc a indicator.png|link=|class=dlc|{{#invoke: messages | dlc-added }} Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:added 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+]] }}
-->| a+ = [[file:dlc a† indicator.png|link=|class=dlc|Added in Afterbirth †]] {{#switch: {{{categories|}}} | no = | main = [[category:added 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+]] }}
-->| r = [[file:dlc r indicator.png|link=|class=dlc|Added in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:added in Repentance]] | [[category:modified in Repentance]] }}<!--
+
| 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]] }}
-->| na = [[file:dlc na indicator.png|link=|class=dlc|Removed in Afterbirth]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth]] | [[category:modified in Afterbirth]] }}<!--
+
| 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]] }}
-->| na+ = [[file:dlc na† indicator.png|link=|class=dlc|Removed in Afterbirth ]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Afterbirth+]] | [[category:modified in Afterbirth+]] }}<!--
+
| 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]] }}
-->| 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 {{{class|}}}|Removed in Repentance]] {{#switch: {{{categories|}}} | no = | main = [[category:removed in Repentance]] | [[category:modified in Repentance]] }}
-->| 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+]] }}<!--
+
| 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]] }}
-->| 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]] }}<!--
+
| 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]] }}
-->| 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]] }}<!--
+
| 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]] }}
-->| 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+]] }}<!--
+
| 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]] }}
-->| 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]] }}<!--
+
| 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+]] }}
-->| 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]] }}<!--
+
| 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+]] }}
-->| 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]] }}<!--
+
| 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) --> =
-->| 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]] }}<!--
 
  +
| #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

Template-info Documentation

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 Added in Afterbirth.
a+ yields Added in Afterbirth †.
r yields Added in Repentance.
na yields Removed in Afterbirth.
na+ yields Removed in Afterbirth †.
nr yields Removed in Repentance.
ana+ yields Added in Afterbirth / Removed in Afterbirth †.
anr yields Added in Afterbirth / Removed in Repentance.
a+nr yields Added in Afterbirth † / Removed in Repentance.
naa+ yields Removed in Afterbirth / Re-added in Afterbirth †.
nar yields Removed in Afterbirth / Re-added in Repentance.
na+r yields Removed in Afterbirth † / Re-added in Repentance.
ana+r yields Added in Afterbirth / Removed in Afterbirth † / Re-added in Repentance.
naa+nr yields Removed in Afterbirth / Re-added in Afterbirth † / Re-removed in Repentance.
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.