Difference between revisions of "Module:Extension"

51 bytes added ,  02:45, 29 May 2020
Support custom prefixes
>Pppery
(Respect templatemode=nocats in automatic unmaintained box)
>Pppery
(Support custom prefixes)
Line 340: Line 340:
return ""
return ""
end
end
local prefix = data.config_prefix or "wg"
local out = ""
local out = ""
for key, _ in pairs(config) do
for key, _ in pairs(config) do
out = out .. "* $wg" .. key .. "\n"
out = out .. "* $" .. prefix .. key .. "\n"
end
end
return out
return out
Anonymous user