Module:Sandbox/Fungster: Difference between revisions
Content added Content deleted
(Created page with "local p = {} -- This is my sandbox. function p._main (frame) if frame.getParent (args) then return "Hello!" end end return p") |
No edit summary |
||
Line 2: | Line 2: | ||
-- This is my sandbox. |
-- This is my sandbox. |
||
function p._main (frame) |
function p._main (frame, args) |
||
local getArgs = require("Module:Arguments"). getArgs |
|||
if frame.getParent (args) then return "Hello!" |
if frame.getParent (args) then return "Hello!" |
||
end |
end |
Revision as of 15:40, 19 June 2019
This is my test case for Lua.
Usage
This module test case requires Module:Arguments, Module:No globals and Module:Yesno.
Example
- Script error: The function "speedy_delete" does not exist.
{{#invoke:Sandbox/Fungster|speedy_delete|the target article violates [[TestWiki:Policy]]}}