Module:Template parameters
Appearance
Documentation for this module may be created at Module:Template parameters/doc
local p = {}
function p.hello(frame)
result = ''
result = result .. 'Parameters via frame.args:'
for k, v in pairs(frame.args) do
result = result .. '\n* ' .. k .. ': ' .. v
end
result = result .. '\n\nParameters via frame:getParent().args:'
for k, v in pairs(frame:getParent().args) do
result = result .. '\n* ' .. k .. ': ' .. v
end
result = result .. ' (' .. string.format("%.1f", 12.25) .. ')'
return result
end
return p