1,300
edits
(Created page with "-- <nowiki> -- Helps RuneScape:Lua/Helper modules format its table with dynamic documentation -- See Template:Helper module for documentation and usage local p = {} function p.main(frame) local args = frame:getParent().args local function_list = {} -- Let there be no limit to number of parameters local i = 1 while args['fname'..i] do local funcname = args['fname'..i] or '' local functype = args['ftype'..i] or '' local funcuse = args['fuse'..i] or ''...") |
No edit summary |
||
| Line 1: | Line 1: | ||
-- <nowiki> | -- <nowiki> | ||
-- Helps [[ | -- Helps [[Near-Reality:Lua/Helper modules]] format its table with dynamic documentation | ||
-- See [[Template:Helper module]] for documentation and usage | -- See [[Template:Helper module]] for documentation and usage | ||
local p = {} | local p = {} | ||
| Line 33: | Line 33: | ||
local category = '' | local category = '' | ||
if not (title.isSubpage and title.subpageText == 'doc') then | if not (title.isSubpage and title.subpageText == 'doc') then | ||
category = '[[Category: | category = '[[Category:Helper_modules]]' | ||
end | end | ||
return 'This module is a helper module to be used by other modules; it may not be designed to be invoked directly. See [[RuneScape:Lua/Helper modules]] for a full list and more information.\n' .. tostring(t) .. category | return 'This module is a helper module to be used by other modules; it may not be designed to be invoked directly. See [[RuneScape:Lua/Helper modules]] for a full list and more information.\n' .. tostring(t) .. category | ||