Template:PortalRequirementsTable/row: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) mNo edit summary |
Kiokurashi (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
{{#invoke:Loops|parseLoop | {{#invoke:Loops|parseLoop | ||
|list1={{{portalreqs|}}} | |list1={{{portalreqs|}}} | ||
|list2={{{ | |list2={{{portalareas|}}} | ||
|replaceString=<td>{{#var:requirementicon}} {{Numdisplay|(1)}}</td><td>{{#ifeq:|NULL|{{#var:noareatext}}|[[Worlds#(2)|(2)]]}}</td> | |replaceString=<td>{{#var:requirementicon}} {{Numdisplay|(1)}}</td><td>{{#ifeq:|NULL|{{#var:noareatext}}|[[Worlds#(2)|(2)]]}}</td> | ||
|returnDelimiter=</tr><tr> | |returnDelimiter=</tr><tr> |
Revision as of 02:37, 30 May 2023
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. {{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) |portalreq1=example (Optional) |portalarea1=example (Optional) |portalreq2=example (Optional) |portalarea2=example (Optional) |portalreq3=example (Optional) |portalarea3=example (Optional) }}