Module:User:Benwing2/call
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 Benwing2, for their own experimentation. Items in this module may be added and removed at Benwing2's discretion; do not rely on this module's stability.
local export = {}
function export.call(frame)
local frame_args = frame.args
local parent_args = frame:getParent().args
local args = {}
local template = frame_args[1]
for k, v in pairs(parent_args) do
args[k] = v
end
for k, v in pairs(frame_args) do
if k == 1 then
elseif type(k) == "number" then
args[k - 1] = v
else
args[k] = v
end
end
return frame:expandTemplate{title = template, args = args}
end
return export
-- For Vim, so we get 4-space tabs
-- vim: set ts=4 sw=4 noet: