Template:Appear: Difference between revisions
Jump to navigation
Jump to search
Initial attempt. Still have to figure out weird spacing. Seems to come from ":" doing some <dl>, <dd> behind the scenes. |
mNo edit summary |
||
| Line 6: | Line 6: | ||
|- valign=top | |- valign=top | ||
| {{#switch: {{{lltq|}}}{{{dad|}}}{{{sow|}}}{{{l|}}}{{{lltk|}}}{{{sftf|}}}{{{sod|}}}{{{ab|}}}{{{db|}}}{{{ds|}}}{{{fol|}}}{{{pwf|}}}{{{fw|}}}{{{nb|}}}{{{eol|}}}{{{has|}}}{{{boab|}}}{{{rotn|}}}{{{ua|}}}{{{sop|}}} | =style="display: none;" |}} | | | {{#switch: {{{lltq|}}}{{{dad|}}}{{{sow|}}}{{{l|}}}{{{lltk|}}}{{{sftf|}}}{{{sod|}}}{{{ab|}}}{{{db|}}}{{{ds|}}}{{{fol|}}}{{{pwf|}}}{{{fw|}}}{{{nb|}}}{{{eol|}}}{{{has|}}}{{{boab|}}}{{{rotn|}}}{{{ua|}}}{{{sop|}}} | =style="display: none;" |}} |<!-- | ||
{{#switch: {{{lltq|}}} | = | | -->{{#switch: {{{lltq|}}} | = | [[Long Live the Queen]] | ||
{{{lltq|}}}</ | {{{lltq|}}}</dl>}}<!-- | ||
{{#switch: {{{dad|}}} | = | | -->{{#switch: {{{dad|}}} | = | [[Dungeons and Devils]] | ||
{{{dad|}}}</ | {{{dad|}}}</dl>}}<!-- | ||
{{#switch: {{{sow|}}} | = | | -->{{#switch: {{{sow|}}} | = | [[Spoils of War]] | ||
{{{sow|}}}</ | {{{sow|}}}</dl>}}<!-- | ||
{{#switch: {{{l|}}} | = | | -->{{#switch: {{{l|}}} | = | [[Liberation]] | ||
{{{l|}}}</ | {{{l|}}}</dl>}}<!-- | ||
{{#switch: {{{lltk|}}} | = | | -->{{#switch: {{{lltk|}}} | = | [[Long Live the King]] | ||
{{{lltk|}}}</ | {{{lltk|}}}</dl>}}<!-- | ||
{{#switch: {{{sftf|}}} | = | | -->{{#switch: {{{sftf|}}} | = | [[Song for the Father]] | ||
{{{sftf|}}}</ | {{{sftf|}}}</dl>}}<!-- | ||
{{#switch: {{{sod|}}} | = | | -->{{#switch: {{{sod|}}} | = | [[Seeds of Discontent]] | ||
{{{sod|}}}</ | {{{sod|}}}</dl>}}<!-- | ||
{{#switch: {{{ab|}}} | = | | -->{{#switch: {{{ab|}}} | = | [[Armageddon's Blade (campaign)|Armageddon's Blade]] | ||
{{{ab|}}}</ | {{{ab|}}}</dl>}}<!-- | ||
{{#switch: {{{db|}}} | = | | -->{{#switch: {{{db|}}} | = | [[Dragon's Blood]] | ||
{{{db|}}}</ | {{{db|}}}</dl>}}<!-- | ||
{{#switch: {{{ds|}}} | = | | -->{{#switch: {{{ds|}}} | = | [[Dragon Slayer]] | ||
{{{ds|}}}</ | {{{ds|}}}</dl>}}<!-- | ||
{{#switch: {{{fol|}}} | = | | -->{{#switch: {{{fol|}}} | = | [[Festival of Life]] | ||
{{{fol|}}}</ | {{{fol|}}}</dl>}}<!-- | ||
{{#switch: {{{pwf|}}} | = | | -->{{#switch: {{{pwf|}}} | = | [[Playing with Fire]] | ||
{{{pwf|}}}</ | {{{pwf|}}}</dl>}}<!-- | ||
{{#switch: {{{fw|}}} | = | | -->{{#switch: {{{fw|}}} | = | [[Foolhardy Waywardness]] | ||
{{{fw|}}}</ | {{{fw|}}}</dl>}}<!-- | ||
{{#switch: {{{nb|}}} | = | | -->{{#switch: {{{nb|}}} | = | [[New Beginning]] | ||
{{{nb|}}}</ | {{{nb|}}}</dl>}}<!-- | ||
{{#switch: {{{eol|}}} | = | | -->{{#switch: {{{eol|}}} | = | [[Elixir of Life]] | ||
{{{eol|}}}</ | {{{eol|}}}</dl>}}<!-- | ||
{{#switch: {{{has|}}} | = | | -->{{#switch: {{{has|}}} | = | [[Hack and Slash]] | ||
{{{has|}}}</ | {{{has|}}}</dl>}}<!-- | ||
{{#switch: {{{boab|}}} | = | | -->{{#switch: {{{boab|}}} | = | [[Birth of a Barbarian]] | ||
{{{boab|}}}</ | {{{boab|}}}</dl>}}<!-- | ||
{{#switch: {{{rotn|}}} | = | | -->{{#switch: {{{rotn|}}} | = | [[Rise of the Necromancer]] | ||
{{{rotn|}}}</ | {{{rotn|}}}</dl>}}<!-- | ||
{{#switch: {{{ua|}}} | = | | -->{{#switch: {{{ua|}}} | = | [[Unholy Alliance]] | ||
{{{ua|}}}</ | {{{ua|}}}</dl>}}<!-- | ||
{{#switch: {{{sop|}}} | = | | -->{{#switch: {{{sop|}}} | = | [[Specter of Power]] | ||
{{{sop|}}}</ | {{{sop|}}}</dl>}} | ||
| {{#switch: {{{wotw|}}}{{{cotu|}}}{{{mote|}}}{{{rotb|}}}{{{twt|}}}{{{tfm|}}}{{{cotd|}}}{{{tsof|}}} | =style="display: none;" |}} | | | {{#switch: {{{wotw|}}}{{{cotu|}}}{{{mote|}}}{{{rotb|}}}{{{twt|}}}{{{tfm|}}}{{{cotd|}}}{{{tsof|}}} | =style="display: none;" |}} | <!-- | ||
{{#switch: {{{wotw|}}} | = | | -->{{#switch: {{{wotw|}}} | = | [[Warlords of the Wasteland]]<sup>1</sup> | ||
{{{wotw|}}}</ | {{{wotw|}}}</dl>}}<!-- | ||
{{#switch: {{{cotu|}}} | = | | -->{{#switch: {{{cotu|}}} | = | [[Conquest of the Underworld]]<sup>1</sup> | ||
{{{cotu|}}}</ | {{{cotu|}}}</dl>}}<!-- | ||
{{#switch: {{{mote|}}} | = | | -->{{#switch: {{{mote|}}} | = | [[Masters of the Elements]]<sup>1</sup> | ||
{{{mote|}}}</ | {{{mote|}}}</dl>}}<!-- | ||
{{#switch: {{{rotb|}}} | = | | -->{{#switch: {{{rotb|}}} | = | [[Revolt of the Beastmasters]]<sup>1</sup> | ||
{{{rotb|}}}</ | {{{rotb|}}}</dl>}}<!-- | ||
{{#switch: {{{twt|}}} | = | | -->{{#switch: {{{twt|}}} | = | [[The World Tree]]<sup>1</sup> | ||
{{{twt|}}}</ | {{{twt|}}}</dl>}}<!-- | ||
{{#switch: {{{tfm|}}} | = | | -->{{#switch: {{{tfm|}}} | = | [[The Fiery Moon]]<sup>1</sup> | ||
{{{tfm|}}}</ | {{{tfm|}}}</dl>}}<!-- | ||
{{#switch: {{{cotd|}}} | = | | -->{{#switch: {{{cotd|}}} | = | [[Clash of the Dragons]] | ||
{{{cotd|}}}</ | {{{cotd|}}}</dl>}}<!-- | ||
{{#switch: {{{tsof|}}} | = | | -->{{#switch: {{{tsof|}}} | = | [[The Sword of Frost]] | ||
{{{tsof|}}}</ | {{{tsof|}}}</dl>}} | ||
| {{#switch: {{{utjr|}}}{{{tots|}}}{{{hota|}}}{{{fif|}}}{{{ai|}}} | =style="display: none; padding-left=none; margin-left=none;" |}} | | | {{#switch: {{{utjr|}}}{{{tots|}}}{{{hota|}}}{{{fif|}}}{{{ai|}}} | =style="display: none; padding-left=none; margin-left=none;" |}} |<!-- | ||
{{#switch: {{{utjr|}}} | = | | -->{{#switch: {{{utjr|}}} | = | [[Under the Jolly Roger]] | ||
{{{utjr|}}}</ | {{{utjr|}}}</dl>}}<!-- | ||
{{#switch: {{{tots|}}} | = | | -->{{#switch: {{{tots|}}} | = | [[Terror of the Seas]] | ||
{{{tots|}}}</ | {{{tots|}}}</dl>}}<!-- | ||
{{#switch: {{{hota|}}} | = | | -->{{#switch: {{{hota|}}} | = | [[Horn of the Abyss (campaign)|Horn of the Abyss]] | ||
{{{hota|}}}</ | {{{hota|}}}</dl>}}<!-- | ||
{{#switch: {{{fif|}}} | = | | -->{{#switch: {{{fif|}}} | = | [[Forged in Fire]] | ||
{{{fif|}}}</ | {{{fif|}}}</dl>}}<!-- | ||
{{#switch: {{{ai|}}} | = | | -->{{#switch: {{{ai|}}} | = | [[All In]] | ||
{{{ai|}}}</ | {{{ai|}}}</dl>}} | ||
|- | |- | ||
Revision as of 01:35, 26 June 2025
Instructions
NOTE: Trying out an alternate idea that makes the template more complicated, but easier to use on each hero page. This template is for showing all of a hero's appearances in campaign levels. See the examples below.
- Set "xxx=", where xxx is the acronym for the campaign (e.g. "utjr=" for "Under the Jolly Roger")
: {{player}} Player hero
: {{enemy}} Enemy hero
: {{ally}} Allied hero
: {{imprisoned}} If the hero starts imprisoned.
Examples
| Hero | Code | Appearance |
|---|---|---|
{{appearAlt
|lltk=
: {{enemy}}: [[From Day to Night]]
|ab=
: {{player}}: [[Catherine's Charge]]
|sop=
: {{enemy}}: [[Poison Fit for a King]]
|cotu=
: {{player}}: [[Cerberus Gate]]
|rotb=
: {{enemy}}: [[The First Tatalian War]]
|ai=
: {{enemy}}: [[The Life Guard]]
}}
|
Template:AppearAlt | |
{{appearAlt
|fol=
: {{player}}: [[Taming of the Wild]]
: {{player}}: [[Clan War]]
: {{player}}: [[For the Throne]]
|fw=
: {{ally}}: [[Their End of the Bargain]]
: {{enemy}}: [[Hurry Up and Wait]]
|tots=
: {{enemy}}: [[Evenmorn]]
|ai=
: {{ally}}: [[The Life Guard]]
}}
|
Template:AppearAlt | |
{{appearAlt
|ai=
: {{imprisoned|water}}{{player}}: [[A Friendly Visit]]
: {{imprisoned|water}}{{player}}: [[The Life Guard]]
|tots=
: {{enemy}}: [[Treachery]]
}}
|
Template:AppearAlt |