Module:Magic: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 182: Line 182:
local rune = Items.getItemByID(req.id)
local rune = Items.getItemByID(req.id)
if rune ~= nil then
if rune ~= nil then
html:wikitext('<sub>' .. req.quantity .. '</sub>')
local sub = mw.html.create('sub')
:wikitext(req.quantity)
:css('vertical-align', 'super')
:css('font-size', 'smaller')
:done()
html:node(sub)
html:wikitext(Icons.Icon({rune.name, type='item', notext=true}))
html:wikitext(Icons.Icon({rune.name, type='item', notext=true}))
end
end
Line 725: Line 730:
row:tag('td'):wikitext(p._getSpellRunes(spell))
row:tag('td'):wikitext(p._getSpellRunes(spell))
:css('text-align', 'center')
:css('text-align', 'center')
:css('white-space', 'nowrap')
if includeItems then
if includeItems then
row:tag('td'):wikitext(p._getSpellItems(spell))
row:tag('td'):wikitext(p._getSpellItems(spell))
2,875

edits