Module:UtilsAnimalTables/doc

From Eco - English Wiki
Revision as of 01:03, 26 February 2022 by Demian (talk | contribs) (Demian moved page Module:UtilsAnimalLists/doc to Module:UtilsAnimalTables/doc: Consistent naming: list to table.)

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)