Module:Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
v = v:match('^%s*(.-)%s*$') | v = v:match('^%s*(.-)%s*$') | ||
if v ~= '' then | if v ~= '' then | ||
categories = categories.."|[[:Category:".. | categories = categories.."|[[:Category:"..orgiArgs[k].." Deities|"..orgiArgs[k].."]]" | ||
end | end | ||
end | end | ||
Line 15: | Line 15: | ||
v = v:match() | v = v:match() | ||
if v ~= '' then | if v ~= '' then | ||
categories = categories.."|[[Category:".. | categories = categories.."|[[Category:"..orgiArgs[k].." Deities]]" | ||
end | end | ||
end | end |
Revision as of 19:24, 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('^%s*(.-)%s*$')
if v ~= '' then
categories = categories.."|[[:Category:"..orgiArgs[k].." Deities|"..orgiArgs[k].."]]"
end
end
categories = categories.."}}"
for k, v in pairs(orgiArgs) do
v = v:match()
if v ~= '' then
categories = categories.."|[[Category:"..orgiArgs[k].." Deities]]"
end
end
return categories
end
return p