Modul:AlteSäcke: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „local p = {} function robusttrim(s) if s==nil then return '' end local p=string.gsub(s,'%[%[SMW::on%]%]','') p=string.gsub(p,'%[%[SMW::off%]%]','') return…“) |
|||
Zeile 9: | Zeile 9: | ||
function p.Auswertung() | function p.Auswertung() | ||
+ | local frame=mw.getCurrentFrame() | ||
local person=robusttrim(frame.args[1]) | local person=robusttrim(frame.args[1]) | ||
return person | return person |
Version vom 13. März 2019, 09:04 Uhr
Die Dokumentation für dieses Modul kann unter Modul:AlteSäcke/Doku erstellt werden
local p = {} function robusttrim(s) if s==nil then return '' end local p=string.gsub(s,'%[%[SMW::on%]%]','') p=string.gsub(p,'%[%[SMW::off%]%]','') return mw.text.trim(p) end function p.Auswertung() local frame=mw.getCurrentFrame() local person=robusttrim(frame.args[1]) return person end return p