Template:TES:Arena Place: Difference between revisions
From StrategyWiki, the video game walkthrough and strategy guide wiki
added comments and some spacing in the code while I copy over and troubleshoot three new templates: Image Mark, Perk Tree, and Perk Tree Setup
Notmyhandle (talk | contribs) (cleaned up vardefines) |
Notmyhandle (talk | contribs) (added comments and some spacing in the code while I copy over and troubleshoot three new templates: Image Mark, Perk Tree, and Perk Tree Setup) |
||
Line 10: | Line 10: | ||
{{#vardefine:mapdesc|The location of {{{name}}} in {{{province}}}}} | {{#vardefine:mapdesc|The location of {{{name}}} in {{{province}}}}} | ||
__NOTOC__ | __NOTOC__ | ||
{|{{prettytable|notwide=1}} | {|{{prettytable|notwide=1}} | ||
!colspan=2|[[File:TES-Arena mapicon {{{type}}}.png]] {{{name}}}{{#if:{{{lorelink|}}}|<br>{{nowrap|({{{lorelink}}})}}}} | !colspan=2|[[File:TES-Arena mapicon {{{type}}}.png]] {{{name}}}{{#if:{{{lorelink|}}}|<br>{{nowrap|({{{lorelink}}})}}}} | ||
Line 28: | Line 25: | ||
| {{{rival|}}} | | {{{rival|}}} | ||
|} | |} | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|left|{{{imgdesc}}}]]}}{{#if:{{{map|}}}|{{Perk Tree Setup|width=320|mark_width=12|mark_color=Yellow}}{{Perk Tree|{{{map}}}|label={{{mapdesc}}}|float=right|perks={{Image Mark|x={{#expr:{{{xpos|160}}}*1000/320}}|y={{#expr:{{{ypos|100}}}*1000/320}}|position=on}}}}}}'''{{{name}}}''' is {{{description}}}</includeonly><noinclude>{{Documentation}} | {{#if:{{{loadtext|}}}|:''"{{{loadtext|}}}"'' | ||
{{-|Left}} | |||
}} | |||
<!-- Display the city image on the left --> | |||
{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|left|{{{imgdesc}}}]]}} | |||
<!-- Draw its location on the province map --> | |||
{{#if:{{{map|}}}| | |||
{{Perk Tree Setup|width=320|mark_width=12|mark_color=Yellow}} | |||
{{Perk Tree|{{{map}}}|label={{{mapdesc}}}|float=right|perks= | |||
{{Image Mark|x={{#expr:{{{xpos|160}}}*1000/320}}|y={{#expr:{{{ypos|100}}}*1000/320}}|position=on}}}}}} | |||
'''{{{name}}}''' is {{{description}}}</includeonly><noinclude>{{Documentation}} | |||
[[Category:Guide-specific templates|T]]</noinclude> | [[Category:Guide-specific templates|T]]</noinclude> |