Content deleted Content added
already init the one in the table so use that value |
poke |
||
Line 16:
-- These suck for i18n because the % is forced to the right without spacing,
-- both in a required context (CSS) and unrequired (to-be-displayed text).
-- I.e., there should be a separate version of this. :(
return tostring(round(100 * param / total)) .. '%'
end
Line 51 ⟶ 52:
function p._main(args, frame)
-- frame needs to be
-- TODO: Digest what Johnuniq said on [[WT:Lua]] about the frame.
Line 119 ⟶ 120:
:tag('td')
:css('background', frame:expandTemplate{
title = 'class/colour', args = { class.class
})
:css('width', percentage)
:tag('span')
|