Template:SourceToggle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{2}}}|hidewithhota|onlysod}}{{#ifeq:{{{2}}}|hidewithdor|onlynodor}}{{#ifeq:{{{1}}}|Horn of the Abyss|onlyhota}}{{#ifeq:{{{1}}}|Day of Reckoning|onlydor}}</includeonly><noinclude> | <includeonly>{{#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>class='{{sourceToggle|{{{source}}}|{{{only}}}}}'</pre> | <pre>class='{{sourceToggle|{{{source}}}|{{{only}}}}}'</pre> | ||
*For unofficial expansion | *For compatibility with older content, unofficial expansion can use the source (1) variable (Horn of the Abyss / Day of Reckoning). | ||
*To hide official content use the only (2) variable (hidewithhota / hidewithdor). | *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> |
Revision as of 17:21, 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).
- To hide official content use the only (2) variable (hidewithhota / hidewithdor).
- Unofficial content can also use the only (2) variable (hota / dor).