Module:Utils/doc: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
Demian (talk | contribs)
m Add Usage section.
Tag: 2017 source edit
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
-- You may then call functions from this module in your script. For example:
-- You may then call functions from this module in your script. For example:
local tableLength = Utils.tableLen(myTable)</syntaxhighlight>
local tableLength = Utils.tableLen(myTable)</syntaxhighlight>
[[Category: WikiModules]]
 
<includeonly>[[Category:Modules]]</includeonly>
<noinclude>[[Category:Module Docs]]</noinclude>

Latest revision as of 09:26, 28 June 2024

This module provides utility functions used from other modules.

Usage[edit source]

Add the following line of code at the top of your file.

local Utils = require("Module:Utils")

-- You may then call functions from this module in your script. For example:
local tableLength = Utils.tableLen(myTable)