Template:SourceToggle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <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: | |||
<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).