Mòdul:Switcher
Aparença
La documentacion d'utilizacion d'aquel modul se pòt crear a Mòdul:Switcher/ús
-- Module:Switcher version de ocwiki
local p = {}
function p.switchMap(frame)
local mapNumber = tonumber(frame.args[1]) or 1
local mapContent = ""
if mapNumber == 1 then
mapContent = mapContent .. "Contengut 1"
elseif mapNumber == 2 then
mapContent = mapContent .. "Contengut 2"
elseif mapNumber == 3 then
mapContent = mapContent .. "Contengut 3"
else
mapContent = "Inserir una mapa valida"
end
return mapContent
end
return p