Module:PlantsPreferences: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
Created page with "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 end return p" |
No edit summary |
||
Line 10: | Line 10: | ||
-- create the header of the table | -- create the header of the table | ||
local header = "<table class=\"wikitable sortable\"> \n " | |||
header = header .. "<tr> \n " | |||
header = header .. "<th>Access<br>level</th> \n " | |||
header = header .. "<th>Command</th> \n " | |||
header = header .. "<th>Short<br>call</th> \n " | |||
header = header .. "<th>Description<br>Arguments</th> \n " | |||
header = header .. "</tr> \n " | |||
wiki = header | |||
wiki = wiki .. " </table>" | |||
return wiki | |||
end | end | ||
return p | return p |
Revision as of 19:33, 18 February 2022
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>Access<br>level</th> \n "
header = header .. "<th>Command</th> \n "
header = header .. "<th>Short<br>call</th> \n "
header = header .. "<th>Description<br>Arguments</th> \n "
header = header .. "</tr> \n "
wiki = header
wiki = wiki .. " </table>"
return wiki
end
return p