2,875
edits
(Remove unused funtion) |
(Use mw.html for mastery icon) |
||
Line 1,141: | Line 1,141: | ||
local altTextMastery = (showText and '') or ' Mastery' | local altTextMastery = (showText and '') or ' Mastery' | ||
local result = mw.html.create('span') | |||
result | |||
:addClass('img-text') | |||
:wikitext('Level ' .. level .. ' ') | |||
:node(p.Icon({linkname, img=iconname, type='item', notext=true, nospan=true, alt=altTextItem})) | |||
:node(p.Icon({'Mastery', notext=true, nospan=true, alt=altTextMastery})) | |||
if showText then | |||
result | |||
:wikitext('[[' .. linkname .. ']] ') | |||
:wikitext('[[Mastery]]') | |||
end | |||
return tostring(result) | |||
end | end | ||
edits