Module:BiomeInfoCard

De Eco - Wiki Français
Version datée du 16 novembre 2025 à 22:23 par BuloBon (discussion | contributions) (Page créée avec « 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 WikiText ='' WikiText = WikiText ..'page name get test: ' .. PageName ..'</br>' WikiText = WikiText ..'Item name get test: ' .. BiomeName ..'</br>' if (BiomeName ~= "None") then local BiomeData = require( "Module:BiomeData" ) local Biome = BiomeData.biomes[Bi... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à :navigation, rechercher

La documentation pour ce module peut être créée à Module:BiomeInfoCard/doc

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 WikiText =''
	
	WikiText =  WikiText ..'page name get test: ' .. PageName ..'</br>'
	WikiText =  WikiText ..'Item name get test: ' .. BiomeName ..'</br>'

	if (BiomeName ~= "None") then
		local BiomeData = require( "Module:BiomeData" )
    	local Biome = BiomeData.biomes[BiomeName]
    	
	end
	
    return WikiText
end

return p