Module:Sandbox/Erutuon/random
< Module:Sandbox | Erutuon
Jump to navigation
Jump to search
Revision as of 21:10, 7 October 2016 by blackwiki>Erutuon (humph)
Test
- Script error: The function "show" does not exist.
local p = {}
function p.test(frame)
local word = frame.args[1] == "print" and "Printing is allowed"
return word
end
function p.currentFrame(frame)
currentFrame = mw.getCurrentFrame(frame)
local frameTable = {}
for k, v in pairs(currentFrame) do
frameTable[k] = v
end
return frameTable and table.concat(frameTable, ", ") or "nil"
end
return p