Module:PlantInfoCard: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
local Utils = require('Module:Utils') | local Utils = require('Module:Utils') | ||
local IconUtils = require('Module:IconUtils') | local IconUtils = require('Module:IconUtils') | ||
local InfoCardUtils = require('Module:InfoCardUtils') | local InfoCardUtils = require('Module:InfoCardUtils') | ||
Revision as of 12:59, 27 March 2026
Documentation for this module may be created at Module:PlantInfoCard/doc
local p = {}
local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local InfoCardUtils = require('Module:InfoCardUtils')
local Lang = Utils.getLanguageName()
function p.main(frame)
local PageName = frame.args[1]
if (Lang == 'English') then PlantName = PageName else PlantName = Utils.PlantSearch(PageName) end
local PlantData = mw.loadData( "Module:PlantData" )
local Plant = PlantData.plants[PlantName]
local WikiText =''
WikiText = WikiText ..'__NOTOC__'
WikiText = WikiText ..'Page name get test: ' .. PageName ..'</br>'
WikiText = WikiText ..'Plant name get test: ' .. PlantName ..'</br>'
return WikiText
end
return p