User:Legate

From Heroes 3 wiki
Revision as of 17:57, 22 March 2024 by Legate (talk | contribs)
Jump to navigation Jump to search

I've worked a lot on the following:

See User:ShushMaster for lots of mediawiki tricks

Favorite tricks

Switch statement: {{#switch: {{{source|}}}| roe = Restoration of Erathia | ab = Armageddon's Blade | sod = Shadow of Death | hc = Heroes Chronicles | hota = Horn of the Abyss | }}
Inverted switch (handle an empty case one way, and all others another): {{#switch: {{{source|}}}| = "empty value" | "non-empty value" }}
Hide a table row based on a value: |- {{#if: {{{difficulty|}}} |  | style="display: none;"}}