Editing Module:UtilsAnimalTables
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: | ||
local p = {} | local p = {} | ||
local Utils = require("Module:Utils") | local Utils = require("Module:Utils") | ||
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. | ||
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>", | 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>", | 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>", | 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>", | 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>", | 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>") |