Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
m
Add spell category links to Spell Navbox
mNo edit summary
m (Add spell category links to Spell Navbox)
Line 183: Line 183:
   local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"'
   local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"'
   result = result..'\r\n!colspan=2|[[File:Magic_(skill).svg|25px|link=Spells]] [[Spells]]'
   result = result..'\r\n!colspan=2|[[File:Magic_(skill).svg|25px|link=Spells]] [[Spells]]'
   result = result..'\r\n|-\r\n!scope="row"|Standard Spells'
   result = result..'\r\n|-\r\n!scope="row"|[[Magic#Standard_Magic|Standard Spells]]'
   result = result..'\r\n|style="text-align:center;|'..table.concat(spells, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(spells, ' • ')
   result = result..'\r\n|-\r\n!scope="row"|Curses'
   result = result..'\r\n|-\r\n!scope="row"|[[Magic#Curses|Curses]]'
   result = result..'\r\n|style="text-align:center;|'..table.concat(curses, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(curses, ' • ')
   result = result..'\r\n|-\r\n!scope="row"|Auroras'
   result = result..'\r\n|-\r\n!scope="row"|[[Magic#Auroras|Auroras]]'
   result = result..'\r\n|style="text-align:center;|'..table.concat(auroras, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(auroras, ' • ')
   result = result..'\r\n|-\r\n!scope="row"|Ancient Magicks'
   result = result..'\r\n|-\r\n!scope="row"|[[Magic#Ancient_Magicks|Ancient Magicks]]'
   result = result..'\r\n|style="text-align:center;|'..table.concat(ancients, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(ancients, ' • ')
   result = result..'\r\n|-\r\n!scope="row"|Alt Magic'
   result = result..'\r\n|-\r\n!scope="row"|[[Alternative_Magic|Alt Magic]]'
   result = result..'\r\n|style="text-align:center;|'..table.concat(altmagic, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(altmagic, ' • ')
   result = result..'\r\n|}'
   result = result..'\r\n|}'
285

edits