Modul:Test: Unterschied zwischen den Versionen
Aus SchnuppTrupp
Zeile 4: | Zeile 4: | ||
end | end | ||
return p | return p | ||
+ | |||
+ | { | ||
+ | foo = "foo", | ||
+ | bar = "bar", | ||
+ | "one", | ||
+ | "two", | ||
+ | [12] = "the number twelve", | ||
+ | ["12"] = "the string twelve", | ||
+ | "three", | ||
+ | [true] = "true", | ||
+ | [tonumber] = "yes, even functions may be table keys", | ||
+ | } |
Version vom 2. August 2016, 17:55 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 return p { foo = "foo", bar = "bar", "one", "two", [12] = "the number twelve", ["12"] = "the string twelve", "three", [true] = "true", [tonumber] = "yes, even functions may be table keys", }