Template:Hero row: Difference between revisions
Jump to navigation
Jump to search
m (add hero_link support) |
mNo edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
| style="text-align:center;" | {{{1|}}} | | style="text-align:center;" | {{{1|}}} | ||
| style="text-align:center;{{#switch:{{{2|}}}|red|blue|tan|green|orange|purple|teal|pink= background-color: #{{ | | style="text-align:center;{{#switch:{{{2|}}}|red|blue|tan|green|orange|purple|teal|pink= background-color: #{{{{{2}}} 3}};" {{!}} {{{{{2}}}}}|"{{!}}{{{2|}}}}} | ||
| style="padding-left:7px; padding-right:5px;" | {{h|{{{name|{{{3|Random}}}}}}|0=|image={{{image|{{{3| | | style="padding-left:7px; padding-right:5px;" | {{#switch:{{{mph|}}}| = {{h|{{{name|{{{3|Random}}}}}}|0=|image={{{image|{{{3|}}}}}}|hero_link={{{hero_link|{{{3|}}}}}}}}{{#if:{{{4|}}}|{{-}}the [[{{{4}}}]]}} | {{{mph}}}}} {{{other|}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
<pre>{{hero header}} | |||
{{hero row|0, 1, 2|blue|Random}} | |||
{{hero row|1, 2, 3|purple|Nagash|Necromancer}} | |||
{{hero row|3, 2, 1|red|Christian|image=Christian (campaign)|other=(NOTE: talky-talk)}} | |||
{{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}} | |||
{{hero row|3, 4, 5|teal|Gem|Sorceress (class){{!}}Sorceress|image=Gem (Sorceress)}} | |||
{{hero row|6, 7, 8|{{imprisoned}}|Bidley|Captain|name=Jack Sparrow|other=[https://en.wikipedia.org/wiki/Jack_Sparrow]}} | |||
{{hero row|10, 11, 0|tan|mph={{mph|5|Homecoming}}}} | |||
|}</pre> | |||
{{hero header}} | {{hero header}} | ||
{{hero row|0, 1, 2| }} | {{hero row|0, 1, 2|blue|Random}} | ||
{{hero row|3, 2, 1|red|Christian|image=Christian | {{hero row|1, 2, 3|purple|Nagash|Necromancer}} | ||
{{hero row|3, 2, 1|red|Christian|image=Christian (campaign)|other=(NOTE: talky-talk)}} | |||
{{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}} | {{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}} | ||
{{hero row|3, 4, 5|teal|Gem| | {{hero row|3, 4, 5|teal|Gem|Sorceress (class){{!}}Sorceress|image=Gem (Sorceress)}} | ||
{{hero row|6, 7, 8|{{imprisoned}}|Bidley|Captain|name=Jack Sparrow}} | {{hero row|6, 7, 8|{{imprisoned}}|Bidley|Captain|name=Jack Sparrow|other=[https://en.wikipedia.org/wiki/Jack_Sparrow]}} | ||
{{hero row|10, 11, 0|tan|mph={{mph|5|Homecoming}}}} | |||
|} | |} | ||
Usage | |||
== Usage == | |||
<nowiki>{{hero row|Location|Color|Name|Class}}</nowiki> | <nowiki>{{hero row|Location|Color|Name|Class}}</nowiki> | ||
#Location is map coordinates (X, Y, Z), no default. | #Location is map coordinates (X, Y, Z), no default. | ||
Line 17: | Line 30: | ||
#Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random. | #Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random. | ||
#Class is the hero's class, such as Knight. | #Class is the hero's class, such as Knight. | ||
# Explicit parameters: | |||
#* name= and image= can be used to modify the third parameter. | |||
#* mph= overrides the 3rd parameter. It is intended for a call to [[Template: mph]] (e.g. <nowiki>{{mph|5|Homecoming}}</nowiki>) | |||
#* other= can be used to add more text to the hero name box. | |||
[[Category:Table templates]]</noinclude> | [[Category:Table templates]]</noinclude> |
Latest revision as of 14:29, 15 October 2024
{{hero header}} {{hero row|0, 1, 2|blue|Random}} {{hero row|1, 2, 3|purple|Nagash|Necromancer}} {{hero row|3, 2, 1|red|Christian|image=Christian (campaign)|other=(NOTE: talky-talk)}} {{hero row|0, 1, 2|green|Yog|Barbarian{{!}}Not-Wizard}} {{hero row|3, 4, 5|teal|Gem|Sorceress (class){{!}}Sorceress|image=Gem (Sorceress)}} {{hero row|6, 7, 8|{{imprisoned}}|Bidley|Captain|name=Jack Sparrow|other=[https://en.wikipedia.org/wiki/Jack_Sparrow]}} {{hero row|10, 11, 0|tan|mph={{mph|5|Homecoming}}}} |}
Location | Player | Hero |
---|---|---|
0, 1, 2 | Random Hero | |
1, 2, 3 | Nagash the Necromancer | |
3, 2, 1 | Christian (NOTE: talky-talk) | |
0, 1, 2 | Yog the Not-Wizard | |
3, 4, 5 | Gem the Sorceress | |
6, 7, 8 | Jack Sparrow the Captain [1] | |
10, 11, 0 | Your 5th most powerful hero from Homecoming. |
Usage[edit | hide | hide all]
{{hero row|Location|Color|Name|Class}}
- Location is map coordinates (X, Y, Z), no default.
- Color is one of the kingdom colors: red, blue, tan, green, orange, purple, teal, and pink. It should be in lower-case (red, not Red). Alternatively, a template such as {{imprisoned}} or {{encamped}} can be used. Defaults to no color.
- Name should be the hero name. The hero's portrait and the link to the hero's page are also taken from this parameter. Defaults to Random.
- Class is the hero's class, such as Knight.
- Explicit parameters:
- name= and image= can be used to modify the third parameter.
- mph= overrides the 3rd parameter. It is intended for a call to Template: mph (e.g. {{mph|5|Homecoming}})
- other= can be used to add more text to the hero name box.