Module:Item Products: Difference between revisions
From Guinea Isles Wiki
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
function p.main(frame) | function p.main(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
return _main(args) | return p._main(args) | ||
end | end | ||
return p | return p | ||
Revision as of 16:43, 20 September 2025
Documentation for this module may be created at Module:Item Products/doc
local p = {}
function p._main(args)
local item_id = nil
if args["id"] ~= nil then
item_id = args["id"]
else
item_id = mw.title.getCurrentTitle.text
end
return item_id
end
function p.main(frame)
local args = frame:getParent().args
return p._main(args)
end
return p