![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
Implements {{Automarkup}}.
See also
[edit]- Template:Demo which uses Module:Demo
- Template:Nowiki template demo which uses Module:Template test case
local p = {}
function p.main(frame)
local args = frame:getParent().args
local templateArgs = { }
for key, value in pairs(args) do
if type(key) == "number" then
templateArgs[2 * key - 1] = value
templateArgs[2 * key] = frame:preprocess(value)
else
templateArgs[key] = value
end
end
return frame:expandTemplate{ title = "Markup", args = templateArgs }
end
return p