Module:Sandbox/Fungster: Difference between revisions

From TestWiki
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 difference)

Revision as of 15:38, 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]]}}

local p = {}

-- This is my sandbox.
function p._main (frame)
	if frame.getParent (args) then return "Hello!"
end

end

return p