Module:Test: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local p = {} function p.deities(frame) local orgiArgs = frame.args local args = {} local categories = "{{hlist" for k, v in pairs(orgiArgs) do v = v:match() if v ~= '' then categories = categories.."|[[:Category:"..args[k].." Deities|"..args[k].."]]" end end categories = categories.."}}" for k, v in pairs(orgiArgs) do v = v:match() if v ~= '' then categories = categories.."|[[Category:"..args[k].." Deities]]" end end return p end") |
No edit summary |
||
Line 18: | Line 18: | ||
end | end | ||
end | end | ||
return | return categories | ||
end | end | ||
return p |
Revision as of 19:22, 30 May 2022
Documentation for this module may be created at Module:Test/doc
local p = {}
function p.deities(frame)
local orgiArgs = frame.args
local args = {}
local categories = "{{hlist"
for k, v in pairs(orgiArgs) do
v = v:match()
if v ~= '' then
categories = categories.."|[[:Category:"..args[k].." Deities|"..args[k].."]]"
end
end
categories = categories.."}}"
for k, v in pairs(orgiArgs) do
v = v:match()
if v ~= '' then
categories = categories.."|[[Category:"..args[k].." Deities]]"
end
end
return categories
end
return p