Editing Module:AnimalData/doc

From Eco - English Wiki

Your changes will be displayed to readers once an authorized user accepts them. (help)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 ==
{{Data file module}}
{{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:Infobox Animal]] for more details.
* [[Module:Infobox_Animal]]: see [[Template:Infobox_Animal]] for more details.
* [[Module:Table Animals]]: see [[Template:Animals Table]] for more details.
* [[Module:List_Animals]]: see [[Template:AnimalList]] for more details.
* [[Module:Table Fish]]: see [[Template:Fish Table]] for more details.
* [[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].


== Usage ==
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>
<includeonly>[[Category:Eco data files]]</includeonly>
[[Category:Eco Data File]]
Please note that all contributions to Eco - English Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)