Module:UtilsAnimalTables/doc: Difference between revisions

From Eco - English Wiki
[unchecked revision][checked revision]
(Created page with "Various utility functions to use when building tables of animals from Module:AnimalData. Primarily intended for use in Module:List Animals and Module:List Fish. == Usage == Add the following line of code at the top of your file. <syntaxhighlight lang="lua">local AnimalUtils = require("Module:UtilsAnimalLists") -- You may then call functions from this module in your script. For example: local rangeText = AnimalUtils.toCountRange(2, 5, true)</syntaxhighli...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Various utility functions to use when building tables of [[animals]] from [[Module:AnimalData]]. Primarily intended for use in [[Module:List Animals]] and [[Module:List Fish]].
Various utility functions to use when building tables of [[animals]] from [[Module:AnimalData]]. Primarily intended for use in [[Module:Table Animals]] and [[Module:Table Fish]].
== Usage ==
== Usage ==
Add the following line of code at the top of your file.
Add the following line of code at the top of your file.


<syntaxhighlight lang="lua">local AnimalUtils = require("Module:UtilsAnimalLists")
<syntaxhighlight lang="lua">local AnimalUtils = require("Module:UtilsAnimalTables")


-- 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 rangeText = AnimalUtils.toCountRange(2, 5, true)</syntaxhighlight>
local rangeText = AnimalUtils.toCountRange(2, 5, true)</syntaxhighlight>
[[Category: WikiModules]]
[[Category: WikiModules]]

Latest revision as of 03:08, 19 March 2022

Various utility functions to use when building tables of animals from Module:AnimalData. Primarily intended for use in Module:Table Animals and Module:Table Fish.

Usage[edit source]

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

local AnimalUtils = require("Module:UtilsAnimalTables")

-- You may then call functions from this module in your script. For example:
local rangeText = AnimalUtils.toCountRange(2, 5, true)