Module:BiomeInfoCard: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
function p.main(frame) | function p.main(frame) | ||
local PageName = frame.args[1] | local PageName = frame.args[1] | ||
BiomeName = Utils.BiomeSearch(PageName) | |||
local BiomeData = require( "Module:BiomeData" ) | local BiomeData = require( "Module:BiomeData" ) | ||
local Biome = BiomeData.biomes[BiomeName] | local Biome = BiomeData.biomes[BiomeName] | ||
Revision as of 22:56, 20 August 2025
local Utils = require('Module:Utils')
local Lang = Utils.getLanguageName()
local p = {}
function p.main(frame)
local PageName = frame.args[1]
BiomeName = Utils.BiomeSearch(PageName)
local BiomeData = require( "Module:BiomeData" )
local Biome = BiomeData.biomes[BiomeName]
local WikiText =''
WikiText = WikiText ..'page name get test: ' .. PageName ..'</br>'
WikiText = WikiText ..'Item name get test: ' .. BiomeName ..'</br>'
return WikiText
end
return p