Editing Module:AnimalData/doc
From Eco - English Wiki
Your changes will be displayed to readers once an authorized user accepts them. (help)
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== Documentation == | == Documentation == | ||
{{ | {{No manual edits}} | ||
This module is a data file that is used to automate information throughout the Eco Wiki using various [//wiki.play.eco/en/Special:AllPages?from=&to=&namespace=828 Lua Modules]. | |||
The data file is currently used in at least the following modules: | The data file is currently used in at least the following modules: | ||
* [[Module:Infobox_Animal]]: see [[Template: | * [[Module:Infobox_Animal]]: see [[Template:Infobox_Animal]] for more details. | ||
* [[Module: | * [[Module:List_Animals]]: see [[Template:AnimalList]] for more details. | ||
* [[Module: | * [[Module:List_Fish]]: see [[Template:FishList]] for more details. | ||
If you would like to see more information generated on a data page request it on the [https://discord.gg/ynCVtN5 Eco Contribution Wiki Discord]. | |||
To use this data (Lua table) in your module:<syntaxhighlight lang="lua"> | |||
<syntaxhighlight lang="lua"> | |||
-- Load data only once per page. (Do no use require()) | -- Load data only once per page. (Do no use require()) | ||
local AnimalData = mw.loadData("Module:AnimalData") | local AnimalData = mw.loadData("Module:AnimalData") | ||
Line 24: | Line 27: | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Eco Data File]] |