Anonimo

Modulo:Sandbox/Lucamauri/modulotest: differenze tra le versioni

Da Wikitrek.
Prova replace
(Prima funzione da https://www.mediawiki.org/wiki/Lua/Tutorial)
 
(Prova replace)
Riga 1: Riga 1:
--[[
local p = {}
local p = {}
function p.hello(frame)
function p.hello(frame)
Riga 4: Riga 5:
end
end
return p
return p
]]--
local text = {}
function text.toglitag(testo)
    return string.gsub(testo.args[1], testo.args[2], "")
end
return text