dev

Docbunto overloads testcase

Documentation

Package items

overloads.main(frame) (function)
Signature when invoked from wikitext
Parameter: frame Scribunto frame object (Frame)
Returns: The result (string)
overloads.main(args) (function)
Signature when called from Lua
Parameter: args Arguments table (table)
Returns: The result (string)

-- <nowiki>
--------------------------------------------------------------------------------
-- Docbunto overloads testcase
--
-- @module overloads
-- @alias p
-- @require [[Global Lua Modules/Arguments|Module:Arguments]]
-- @author [[User:ExE Boss|ExE Boss]]
--------------------------------------------------------------------------------
local libraryUtil = require("libraryUtil");
local checkType = libraryUtil.checkType;

local getArgs = require("Dev:Arguments").getArgs;

local p = {};

--[=[
--  Signature when invoked from wikitext
--
--  @function p.main
--  @param {Frame} frame Scribunto frame object
--  @return {string} The result
--]=]
--[=[
--  Signature when called from Lua
--
--  @function p.main
--  @param {table} args Arguments table
--  @return {string} The result
--]=]
function p.main(frame)
	local args = getArgs(frame);
	checkType("main", 1, args, "table");

	-- Implementation
	return "result";
end

return p;