Module:template: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
 
Line 2: Line 2:


function export.make_template(args, nested)
function export.make_template(args, nested)
if not args[i] then error("at least one argument must be given to {{temp}}") end
if not args[1] then error("at least one argument must be given to {{temp}}") end
local out = {(nested and "") or "<code>", "&#123;&#123;[[Template:" .. args[1] .. "|" .. args[1] .. "]]"}
local out = {(nested and "") or "<code>", "&#123;&#123;[[Template:" .. args[1] .. "|" .. args[1] .. "]]"}
local i = 2
local i = 2