Module:CTtrans

-- This module replaces a huge, very inefficient switch statement. -- This is used by Module:TerrainCats and Module:ClimateCats -- To add new terrain or climate categories edit the Module:CTtrans/data file. local ct = {}

local climateTerrainData = mw.loadData( 'Module:CTtrans/data' )

function ct.climateTerrainString( inputText )

return climateTerrainData[inputText] or "" end

return ct