Template:SourceToggle: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{{2}}}|sod|onlysod}}{{#ifeq:{{{1}}}|Horn of the Abyss|onlyhota}}{{#ifeq:{{{1}}}|Day of Reckoning|onlydor}}</includeonly><noinclude>
<includeonly>{{#ifeq:{{{2}}}|hidewithhota|onlysod}}{{#ifeq:{{{2}}}|hidewithdor|onlynodor}}{{#ifeq:{{{1}}}|Horn of the Abyss|onlyhota}}{{#ifeq:{{{1}}}|Day of Reckoning|onlydor}}</includeonly><noinclude>


Usage:
Usage:
<pre>{{sourceToggle|{{{source}}}}}</pre>
<pre>class='{{sourceToggle|{{{source}}}|{{{only|}}}}}'</pre>
 
For unofficial expansion content the source (1) variable is used (Horn of the Abyss / Day of Reckoning).
To hide official content use the only (2) variable (hidewithhota / hidewithdor).


[[Category: Help templates]]</noinclude>
[[Category: Help templates]]</noinclude>

Revision as of 17:04, 14 August 2024


Usage:

class='{{sourceToggle|{{{source}}}|{{{only|}}}}}'

For unofficial expansion content the source (1) variable is used (Horn of the Abyss / Day of Reckoning). To hide official content use the only (2) variable (hidewithhota / hidewithdor).