Module:Progression rainbow: Difference between revisions

Content deleted Content added
args?
here?
Line 32:
function p.main(frame)
local args = getArgs(frame)
local main_frame = frame
return frame:extensionTag{ name = 'templatestyles',
args = { src = 'Progression rainbow/styles.css'} }
.. tostring(p._main(args, main_frame))
-- pretty sure that this call to extensionTag should be in _main
end
Line 41 ⟶ 42:
-- like providing the values for blind people and then hiding with CSS
-- HTML <meter> could implement this? not sure
function p._main(args, main_frame)
local divisor = args['9'] or 100
local classes = {
Line 72 ⟶ 73:
root:tag('td')
:css({
{'background', argsmain_frame:expandTemplate{
title = 'class/colour', args = { classes[i][2] }}},
{'width', width_classes(classes[i][1], divisor)}