Module:UtilsAnimalTables/doc

From Eco - English Wiki
Revision as of 17:13, 22 February 2022 by Demian (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:UtilsAnimalTables

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.

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)