Anonymous

Template:HarvestingVeinsTable/doc: Difference between revisions

From Melvor Idle
m
no edit summary
m (Add IDs to vein name elem)
mNo edit summary
Line 2: Line 2:


<syntaxhighlight lang="javascript" line>
<syntaxhighlight lang="javascript" line>
let results = `<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude>\n{| class="wikitable sortable stickyHeader col-7-center col-8-center"\n|- class="headerRow-0\n!colspan=2| Vein\n! {{Skill|Harvesting|notext=true|nolink=true}} Level\n! Products\n! Intensity\n! Chance\n! AXP\n! AXP/s`;
let results = `<noinclude>{{/doc}}[[Category:Manual Tables]]</noinclude>\n{| class="wikitable sortable stickyHeader col-7-center col-8-center"\n|- class="headerRow-0"\n!colspan=2| Vein\n! {{Skill|Harvesting|notext=true|nolink=true}} Level\n! Products\n! Intensity\n! Chance\n! AXP\n! AXP/s`;
game.harvesting.sortedMasteryActions.forEach((vein, i) => {
game.harvesting.sortedMasteryActions.forEach((vein, i) => {
results += `\n|-\n|rowspan=4| {{Icon|${vein.name}|type=harvesting|type=vein|notext=true}}\n|rowspan=4 id="${vein.name}"| ${vein.name}`;
results += `\n|-\n|rowspan=4| {{Icon|${vein.name}|type=harvesting|type=vein|notext=true}}\n|rowspan=4 id="${vein.name}"| ${vein.name}`;