Difference between revisions of "Template:Mode"

From Binding of Isaac: Rebirth Wiki
Jump to: navigation, search
(Created page with "<onlyinclude><includeonly>{{#switch: {{lc:{{{1}}}}}<!-- -->| normal = <span style="cursor:help">16px|link=|Normal mode only</span><!-- -->| hard =...")
 
(Multiple parameters support)
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch: {{lc:{{{1}}}}}<!--
+
<onlyinclude><includeonly><span style="cursor:help"><!--
  +
-->| normal = <span style="cursor:help">[[File:NormalIndicator.png|16px|link=|Normal mode only]]</span><!--
 
  +
-->{{#vardefine: {{{1|}}} | 1 }}<!--
-->| hard = <span style="cursor:help">[[File:HardIndicator.png|16px|link=Hard mode|Hard mode only]]</span><!--
 
  +
-->{{#vardefine: {{{2|}}} | 1 }}<!--
-->| both = <span style="cursor:help">[[File:BothIndicator.png|16px|link=Hard mode|Normal and hard modes only]]</span><!--
 
  +
-->{{#vardefine: {{{3|}}} | 1 }}<!--
-->| greed = <span style="cursor:help">[[File:Greed Mode Indicator.png|Greed Mode|link=Greed Mode|Greed mode only]]</span><!--
 
  +
-->{{#vardefine: {{{4|}}} | 1 }}<!--
-->| greedier = <span style="cursor:help">[[File:Greedier Mode Indicator.png|link=Greed Mode#Greedier Mode|Greedier mode only]]</span><!--
 
  +
-->| both greed = <span style="cursor:help">[[File:Both Greed Modes Indicator.png|link=Greed Mode|Greed and Greedier modes only]]</span><!--
 
  +
-->{{#if: {{#varexists:normal}} | {{#if: {{#varexists:hard}} | [[file:BothIndicator.png|16px|link=Hard mode|Normal and hard modes only]] | [[file:NormalIndicator.png|16px|link=|Normal mode only]] }} | {{#if: {{#varexists:hard}} | [[file:HardIndicator.png|16px|link=Hard mode|Hard mode only]] }} }}<!--
-->| all = <!--
 
  +
-->{{#if: {{#varexists:greed}} | {{#if: {{#varexists:greedier}} | [[file:Both Greed Modes Indicator.png|link=Greed Mode|Greed and Greedier modes only]] | [[file:Greed Mode Indicator.png|link=Greed Mode|Greed mode only]] }} | {{#if: {{#varexists:greedier}} | [[file:Greedier Mode Indicator.png|link=Greed Mode#Greedier Mode|Greedier mode only]] }} }}<!--
-->}}</includeonly></onlyinclude>
 
  +
 
--></span></includeonly></onlyinclude>
 
{{doc}}
 
{{doc}}
  +
  +
[[fr:modèle:mode]]

Revision as of 15:34, 12 March 2019

Template-info.png Documentation

Displays a gamemode icon.

Usage

This template is used by entering: {{mode|...=}}

Parameters

unnamed parameters
The name of the gamemodes.
Choose one of the following strings to specify the gamemode:
normal yields Normal mode only.
hard yields Normal and hard modes only.
greed yields Normal and hard modes onlyGreed mode only.
greedier yields Normal and hard modes onlyGreed and Greedier modes only.
daily yields Normal and hard modes onlyGreed and Greedier modes only.
You can specify multiple gamemodes:
{{mode|normal=|hard=}} yields Normal and hard modes onlyGreed and Greedier modes only.
{{mode|greed=|greedier=}} yields Normal and hard modes onlyGreed and Greedier modes only.
{{mode|normal=|greedier=}} yields Normal and hard modes onlyGreed and Greedier modes only.
{{mode|hard=|greed=|daily=}} yields Normal and hard modes onlyGreed and Greedier modes only.