Template:PortalRequirementsTable/row: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) mNo edit summary |
Kiokurashi (talk | contribs) mNo edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly><tr> | ||
<td rowspan='{{#vardefineecho:rowspan|{{#expr:{{#count:{{{portalreqs|}}}|,}} + 1}}}}'>[[Worlds#{{{area}}}|{{{area}}}]]</td> | |||
<td rowspan='{{#var:rowspan}}'>{{#if:{{{skillname|}}}|{{#arraymap:{{{targets}}}|,|a|[[File:a.png|30px]]|\s}}|{{#arraymap:{{{targets}}}|,|a|[[File:a Idle.gif|30px]]|\n}}}}</td> | |||
<td rowspan='{{#var:rowspan}}'>{{#if:{{{skillname|}}}|—|{{{mobAmount|}}}}}</td> | |||
{{#invoke:Loops|portalRowLoop | |||
|reqs={{{portalreqs|}}} | |||
|areas={{{portalareas|}}} | |||
|icon={{{skillname|Boss}}} | |||
}}</tr></includeonly><noinclude><pre> | |||
{{#if:{{{ | |||
Usage: | Usage: | ||
Line 23: | Line 16: | ||
|targets=example or example,example (has to differentiate between enemies using idle gifs and skilling nodes using pngs | |targets=example or example,example (has to differentiate between enemies using idle gifs and skilling nodes using pngs | ||
|skillname=example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) | |skillname=example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) | ||
| | |portalreqs=example,list | ||
| | |portalareas=example,list | ||
}} | }} | ||
</pre>[[Category:Table templates]]</noinclude> | </pre>[[Category:Table templates]]</noinclude> |
Latest revision as of 01:42, 12 March 2024
Usage: If portal area variables are ommitted, while a req is set, an infotext regarding hidden portals/portals without target will be displayed instead. {{PortalRequirementsTable/row |area=example |targets=example or example,example (has to differentiate between enemies using idle gifs and skilling nodes using pngs |skillname=example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) |portalreqs=example,list |portalareas=example,list }}