Module:PortalRows
Documentation for this module may be created at Module:PortalRows/doc
local p = {}
p.main = function(f)
local args = f:getParent().args
local output = "|-\n|"
for i, v in ipairs(args) do
if i == 1 then
output = output .. "[["..v.."]]\n"
else
if v == nil or v == "" or v == "0" then
output = output .. "|\n"
elseif v == "1" then
output = output .. "|[[File:Instance portal blue.png|Active|link=]]\n"
elseif v == "2" then
output = output .. "|[[File:Instance portal green.png|Druid-only|link=]]\n"
elseif v == "-1" then
output = output .. "|[[File:Instance portal red.png|Removed (patch unknown)|link=]]\n"
else
output = output .. "|[[File:Instance portal red.png|Removed (patch "..v..")|link=]]\n"
end
end
end
return output
end
return p