Module:template demo
පෙනුම
- මෙම module සතුව උපදෙස් උප පිටුවක් නොපවතියි. Please නිර්මාණය කරන්න.
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • transclusions • testcases • sandbox
local export = {}
local template_link = require("Module:template parser").templateLink
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 template_link(template_name, args) .. " ⇒<br style=\"line-height: 200%;\" />"
.. frame:expandTemplate {title = template_name, args = args}
end
return export