Module:template demo
Jump to navigation
Jump to search
- This module lacks a documentation subpage. Please create it.
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
local format_link = require("Module:template link").format_link
local pairs = pairs
local remove = table.remove
local shallowcopy = require("Module:table").shallowcopy
function export.show(frame)
local args = shallowcopy(pairs(frame.args)() and frame.args or frame:getParent().args)
local template_name = remove(args, 1)
return format_link(template_name, args) .. " ⇒<br style=\"line-height: 200%;\" />"
.. frame:expandTemplate {title = template_name, args = args}
end
return export