Module:Test
Jump to navigation
Jump to search
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 = "<nowiki>{{hlist"
for k, v in pairs(orgiArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
categories = categories.."|[[:Category:"..orgiArgs[k].." Deities|"..orgiArgs[k].."]]"
end
end
categories = categories.."}}</nowiki>"
for k, v in pairs(orgiArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
categories = categories.."[[Category:"..orgiArgs[k].." Deities]]{{hlist|test1|test2}}"
end
end
return categories
end
return p