Editing User:Legate
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 26: | Line 26: | ||
<pre> | <pre> | ||
Switch statement: {{#switch: {{{source|}}}| roe = Restoration of Erathia | ab = Armageddon's Blade | sod = Shadow of Death | hc = Heroes Chronicles | hota = Horn of the Abyss | }} | 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|}}}| | 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;"}} | Hide a table row based on a value: |- {{#if: {{{difficulty|}}} |Β | style="display: none;"}} | ||
</pre> | </pre> |