Jump to content

Module:High-use: Difference between revisions

Fix fetch=no and no-percent=yes
m (1 revision imported)
(Fix fetch=no and no-percent=yes)
Line 1: Line 1:
local p = {}
local p = {}
local getArgs = require('Module:Arguments').getArgs


-- _fetch looks at the "demo" argument.
-- _fetch looks at the "demo" argument.
Line 56: Line 57:


function p.num(frame, count)
function p.num(frame, count)
return p._num(frame.args, count, frame:getParent().args['no-percent'] or frame.args['no-percent'])
return p._num(getArgs(frame), count)
end
end


Line 73: Line 74:


function p.risk(frame)
function p.risk(frame)
return p._risk(frame.args)
return p._risk(getArgs(frame))
end
end


Line 145: Line 146:


function p.text(frame, count)
function p.text(frame, count)
return p._text(frame.args, count)
return p._text(getArgs(frame), count)
end
end


Line 191: Line 192:


function p.main(frame)
function p.main(frame)
return p._main(frame.args, frame:getParent().args['nocat'] or frame.args['nocat'])
return p._main(getArgs(frame))
end
end
return p
return p
Anonymous user