Module:Demo
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Demo/doc
local p = {}
local getArgs = require('Module:Arguments').getArgs
local format = mw.ustring.format
function p.tDemo(frame)
args = getArgs(frame)
return p.mDemo(args)
end
function p.mDemo(args)
a = args[1] or args.title
if a then
return mw.getCurrentFrame():preprocess(
mw.getCurrentFrame():extensionTag{
name = 'syntaxhighlight',
args = {
inline = true,
style = args.style
},
content = '{{' .. a .. '}}'
}
.. '<br>{{' .. a .. '}}')
else
return;
end
end
return p