Template:PortalRequirementsTable/row

From IdleOn MMO Wiki
Revision as of 20:35, 29 May 2023 by Kuma (talk | contribs) (Created page with "<includeonly> {{#vardefine:rowspan|{{#if:{{{portalreq3|}}}|3|{{#if:{{{portalreq2|}}}|2|1}}}}}} {{#vardefine:requirementicon|{{#if:{{{skillname|}}}|{{{skillname}}} Skill Icon.png|Boss Skull.png}}}} {{#vardefine:noareatext|This portal is hidden and/or doesn't lead to an actual map (except maybe back to town)}} |- |rowspan={{#var:rowspan}}|{{{area}}} ||rowspan={{#var:rowspan}}|{{#arraymap:{{{targets}}}|,|a|File:{{#if:{{{skillname|}}}|a.png|a Idle.gif...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Note: Currently uses static portal variables (rather than one comma-separated one), as the table uses formatting which requires knowledge of how many entries there are to display. Template could be refactored by either adding that information as a parameter, or by installing array-extensions, which would allow for functions like #arraydefine and #arrayindex to determine the size dynamically.

Usage: If portal area variables are ommitted, while a req is set, an infotext regarding hidden portals/portals without target will be displayed instead.



|- |rowspan=3|example ||rowspan=3|File:Example or example Idle.gif File:Example (has to differentiate between enemies using idle gifs and skilling nodes using pngs Idle.gif ||File:Example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) Skill Icon.pngLua error in Module:NumberFormater at line 19: attempt to index local 'numstr' (a nil value). ||{{#if:example (Optional)|example (Optional) {{|-|}}File:Example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) Skill Icon.pngLua error in Module:NumberFormater at line 19: attempt to index local 'numstr' (a nil value). {{|-|}}example (Optional) {{|-|}}File:Example (Optional, if empty assumes the row to represent portals requiring killcounts rather than skill level) Skill Icon.pngLua error in Module:NumberFormater at line 19: attempt to index local 'numstr' (a nil value). {{|-|}}example (Optional)