Modul:Test: Unterschied zwischen den Versionen
Aus SchnuppTrupp
(Änderung 122098 von Bowserkor (Diskussion) rückgängig gemacht.) |
|||
| Zeile 5: | Zeile 5: | ||
function p.test(frame) | function p.test(frame) | ||
return 'Und hier soll auch etwas stehen!' | return 'Und hier soll auch etwas stehen!' | ||
| + | end | ||
| + | local p = {} | ||
| + | |||
| + | function p.variables() | ||
| + | local variable = 1 | ||
| + | |||
| + | variable = variable + 1 | ||
| + | return variable | ||
end | end | ||
return p | return p | ||
Version vom 11. August 2016, 18:19 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Test/Doku erstellt werden
local p = {}
function p.hello(frame)
return 'Ich will, dass hier etwas steht! [[Korbis Baustelle5]]'
end
function p.test(frame)
return 'Und hier soll auch etwas stehen!'
end
local p = {}
function p.variables()
local variable = 1
variable = variable + 1
return variable
end
return p