2,788
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
local function make_template(frame, nested) | local function make_template(frame, nested) | ||
local args = (frame:getParent() and frame:getParent().args) or frame.args | local args = (frame:getParent() and frame:getParent().args) or frame.args | ||
local out = {(nested and "") or "<code>", "{{[[Template:" .. args[1] .. "]]"} | local out = {(nested and "") or "<code>", "{{[[Template:" .. args[1] .. "|" .. args[1] .. "]]"} | ||
local i = 2 | local i = 2 | ||
while args[i] do | while args[i] do |