Module:User:Erutuon/template demo
Jump to navigation
Jump to search
- This module lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
This is a private module sandbox of Erutuon, for his own experimentation. Items in this module may be added and removed at Erutuon's discretion; do not rely on this module's stability.
local export = {}
function export.show(frame)
local args = pairs(frame.args)() and frame.args or frame:getParent().args
local args_copy = require("Module:table").shallowClone(args)
local template_name = table.remove(args_copy, 1)
return require("Module:template link").format_link(args) .. "<br>"
.. frame:expandTemplate { title = template_name, args = args_copy }
end
return export