Module:Item Products: Difference between revisions
From Guinea Isles Wiki
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
item_id = args["id"] | item_id = args["id"] | ||
else | else | ||
item_id = mw.title.getCurrentTitle.text | item_id = mw.title.getCurrentTitle().text | ||
end | end | ||
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