Module:User:Benwing2/test-parent-of-parent
Appearance
- This module sandbox lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local export = {}
function export.test(frame)
local params = {
[1] = {type = "language"},
[2] = {list = true},
}
local parent_params = {
foo = {},
}
local parent_args = frame:getParent().args
error(frame:getParent():getTitle())
local parent_parent_args = frame:getParent():getParent().args
local args = require("Module:parameters").process(parent_args, params)
local pargs = require("Module:parameters").process(parent_parent_args, parent_params)
local lang = iargs[1]
local parts = {}
for _, item in ipairs(iargs[2]) do
table.insert(("called with '%s'"):format(pargs.foo or "(none)"))
table.insert(parts, "* " .. require("Module:links").full_link { term = item, lang = lang })
end
return table.concat(parts, "\n")
end
return export