2,877
edits
m (Correct potion name not showing up) |
(Add expansion icon to potion instead of tier) |
||
Line 278: | Line 278: | ||
local html = mw.html.create('table') | local html = mw.html.create('table') | ||
:addClass('wikitable | :addClass('wikitable') | ||
html:tag('tr') | html:tag('tr') | ||
Line 294: | Line 294: | ||
if potion ~= nil then | if potion ~= nil then | ||
html:tag('tr') | html:tag('tr') | ||
:tag('td'):wikitext(Icons.getExpansionIcon(potion.id)) | :tag('td'):wikitext(Icons.getExpansionIcon(potion.id)) | ||
:wikitext(Icons.Icon({potion.name, tier, type='item', noicon=true})) | :wikitext(Icons.Icon({potion.name, type='item', notext=true, size='25'})) | ||
:tag('td'):wikitext(Icons.Icon({potion.name, tier, type='item', noicon=true})) | |||
:tag('td'):wikitext(potion.charges) | :tag('td'):wikitext(potion.charges) | ||
:tag('td'):wikitext(p._getPotionDescription(potion)) | :tag('td'):wikitext(p._getPotionDescription(potion)) |
edits