Module: Tl: Difference between revisions
From A Wiki of Ice and Fire
Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} function p.main(frame) local args = getArgs(frame) local template = args[1] local output = '..." |
No edit summary |
||
| Line 15: | Line 15: | ||
return output | return output | ||
end | end | ||
return p | |||
Revision as of 13:35, 5 November 2022
Documentation for this module may be created at Module:Tl/doc
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(frame)
local args = getArgs(frame)
local template = args[1]
local output = '{{[[Template:' .. template .. '|' .. template .. ']]'
for key, value in pairs(args) do
if key ~= 1 and value ~= nil then
output = output .. '|' .. key .. '=' .. value
end
end
local output = output .. '}}'
return output
end
return p