892
edits
m (images) |
m (forgor) |
||
Line 31: | Line 31: | ||
table.sort(tiers, function(a, b) return a.tier < b.tier end) | table.sort(tiers, function(a, b) return a.tier < b.tier end) | ||
local function make_row( | local function make_row(tier, data, compact) | ||
local tr = mw.html.create('tr') | local tr = mw.html.create('tr') | ||
local tiericon = tr:tag('td') | local tiericon = tr:tag('td') | ||
tiericon:wikitext( icons.Icon({ | tiericon:wikitext( icons.Icon({tier.txt, img=tier.icon, type='skill'}) ) | ||
if compact then | if compact then | ||
tiericon:attr('style', 'padding-bottom: 4px;') | |||
end | end | ||
for _, v in ipairs(data) do | for _, v in ipairs(data) do |
edits