Module:PlantsPreferences
From Eco - English Wiki
Documentation
This module provides the back end functionality of the Template:PlantsPreferences.
If the template is passed, this module creates a list using details from the following Modules:
local p = {}
function p.main()
local wiki = ''
-- import the required modules
local PlantData = require( "Module:PlantData" )
local plants = PlantData.plants
-- create the header of the table
local header = "<table class=\"wikitable sortable\"> \n "
header = header .. "<tr> \n "
header = header .. "<th>Plant</th> \n "
header = header .. "<th colspan=\"4\">Temperature<br>Ranges</th> \n "
header = header .. "<th colspan=\"4\">Moisture<br>Ranges</th> \n "
header = header .. "<th colspan=\"4\">Salt<br>Ranges</th> \n "
header = header .. "</tr> \n "
header = header .. "<tr> \n "
header = header .. "<th></th> \n "
header = header .. "<th colspan=\"2\">Ideal</th> \n "
header = header .. "<th colspan=\"2\">Extreme</th> \n "
header = header .. "<th colspan=\"2\">Ideal</th> \n "
header = header .. "<th colspan=\"2\">Extreme</th> \n "
header = header .. "<th colspan=\"2\">Ideal</th> \n "
header = header .. "<th colspan=\"2\">Extreme</th> \n "
header = header .. "</tr> \n "
wiki = header
wiki = wiki .. " </table>"
return wiki
end
return p