Module:Test: Difference between revisions
Jump to navigation
Jump to search
(testing Scribunto) |
(this kind of default doesnt appear to work, should be doing it in the template that invokes the function) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.main(frame) | function p.main(frame) | ||
local args = frame.args | |||
return args[1]..args["sep"]..args[2] | |||
end | end | ||
function p.icontech(frame) | |||
--frame.args.color = frame.args.color or "228B22" | |||
return frame:expandTemplate{title = 'Icon', args = frame.args} | |||
end | |||
return p | return p |
Latest revision as of 12:25, 1 October 2024
Documentation for this module may be created at Module:Test/doc