Difference between revisions of "Module:Extension"
Jump to navigation
Jump to search
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 .. "* $ | out = out .. "* $" .. prefix .. key .. "\n" | ||
end | end | ||
return out | return out |