Editing Module:UtilsAnimalTables

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:
local p = {}
local p = {}
local Utils = require("Module:Utils")
local Utils = require("Module:Utils")
local Unit = require("Module:Unit")
local HTMLUtils = require("Module:UtilsHTML")
local HTMLUtils = require("Module:UtilsHTML")


Line 128: Line 127:
-- headDistance: distance between heads when sleeping in a pack.
-- headDistance: distance between heads when sleeping in a pack.
-- resourceBonus: unclear.
-- resourceBonus: unclear.
local meterAbbr = Unit._unit(nil, "m", true)
table.insert(tbl, "<tr>")
table.insert(tbl, "<tr>")
Line 135: Line 133:
table.insert(tbl, "<th colspan=\"2\">Nutrition</th>")
table.insert(tbl, "<th colspan=\"2\">Nutrition</th>")
table.insert(tbl, "<th colspan=\"10\">Hunting</th>")
table.insert(tbl, "<th colspan=\"10\">Hunting</th>")
table.insert(tbl, mw.ustring.format("<th rowspan=\"3\">Carbon<br>Released<br>(%s)</th>", Unit._unit(nil, "ppm", true)))
table.insert(tbl, mw.ustring.format("<th rowspan=\"3\">Carbon<br>Released<br>(%s)</th>", HTMLUtils.textUnit_PartsPerMillion()))
table.insert(tbl, "</tr>")
table.insert(tbl, "</tr>")


Line 142: Line 140:
table.insert(tbl, "<th rowspan=\"2\">Swims?</th>")
table.insert(tbl, "<th rowspan=\"2\">Swims?</th>")
table.insert(tbl, "<th rowspan=\"2\">Flies?</th>")
table.insert(tbl, "<th rowspan=\"2\">Flies?</th>")
table.insert(tbl, mw.ustring.format("<th rowspan=\"2\">Climb<br>Height (%s)</th>", meterAbbr))
table.insert(tbl, mw.ustring.format("<th rowspan=\"2\">Climb<br>Height (%s)</th>", HTMLUtils.textUnit_Meters()))
table.insert(tbl, mw.ustring.format("<th colspan=\"2\">Speed (%s)</th>", Unit._unit(nil, "m/s", true)))
table.insert(tbl, mw.ustring.format("<th colspan=\"2\">Speed (%s)</th>", HTMLUtils.textUnit_MetersPerSecond()))


-- Header: Nutrition
-- Header: Nutrition
Line 154: Line 152:
table.insert(tbl, "<th rowspan=\"2\">Fear<br>Factor</th>")
table.insert(tbl, "<th rowspan=\"2\">Fear<br>Factor</th>")
table.insert(tbl, "<th rowspan=\"2\">Health</th>")
table.insert(tbl, "<th rowspan=\"2\">Health</th>")
table.insert(tbl, mw.ustring.format("<th rowspan=\"2\">Detect<br>Range (%s)</th>", meterAbbr))
table.insert(tbl, mw.ustring.format("<th rowspan=\"2\">Detect<br>Range (%s)</th>", HTMLUtils.textUnit_Meters()))
table.insert(tbl, "<th colspan=\"4\">Attack</th>")
table.insert(tbl, "<th colspan=\"4\">Attack</th>")
table.insert(tbl, "<th rowspan=\"2\">Harvest Item</th>")
table.insert(tbl, "<th rowspan=\"2\">Harvest Item</th>")
Line 166: Line 164:
-- Header: Attack
-- Header: Attack
table.insert(tbl, "<th>Chance (%)</th>")
table.insert(tbl, "<th>Chance (%)</th>")
table.insert(tbl, mw.ustring.format("<th>Range (%s)</th>", meterAbbr))
table.insert(tbl, mw.ustring.format("<th>Range (%s)</th>", HTMLUtils.textUnit_Meters()))
table.insert(tbl, "<th>Damage</th>")
table.insert(tbl, "<th>Damage</th>")
table.insert(tbl, "<th>Delay</th>")
table.insert(tbl, "<th>Delay</th>")
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)

Template used on this page: