Template:SourceToggle

From Heroes 3 wiki
Revision as of 13:03, 1 October 2024 by Legate (talk | contribs) (allow for duplicate parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 / sod).
  • Unofficial content can also use the only (2) variable (hota / dor).

Examples

  • {{SourceToggle|hota|}}: onlyhota
  • {{SourceToggle|hota|hota}}: onlyhota
  • {{SourceToggle|dor|}}: onlydor
  • {{SourceToggle||hidewithhota}}: onlysod
  • {{SourceToggle||sod}}: onlysod
  • {{SourceToggle||hota}}: onlyhota
  • {{SourceToggle||dor}}: onlysod