Template:SourceToggle: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
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:{{{1}}}|hota|onlyhota}}{{#ifeq:{{{1}}}|dor|onlydor}}{{#ifeq:{{{2}}}|hota|onlyhota}}{{#ifeq:{{{2}}}|dor|onlydor}}{{#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 compatibility with older content, unofficial expansion can use the source (1) variable (Horn of the Abyss / Day of Reckoning / hota / dor).
*To hide official content use the only (2) variable (hidewithhota / hidewithdor).
*Unofficial content can also use the only (2) variable (hota / dor).


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

Latest revision as of 19:14, 14 August 2024


Usage:

class='{{sourceToggle|{{{source}}}|{{{only}}}}}'
  • For compatibility with older content, unofficial expansion can use the source (1) variable (Horn of the Abyss / Day of Reckoning / hota / dor).
  • To hide official content use the only (2) variable (hidewithhota / hidewithdor).
  • Unofficial content can also use the only (2) variable (hota / dor).