Module:CTtrans

-- This module replaces a huge, very inefficient switch statement. -- This is used by Module:AssignTerrainCategory and Module:AssignClimateCategory -- To add new terrain or climate categories edit the Module:CTtrans/data file. -- This module is borrowed/based on the template of the same name from the Forgotten Realms Wiki. -- https://forgottenrealms.fandom.com/wiki/Module:CTtrans local ct = {}

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

function ct.climateTerrainString( inputText )

return climateTerrainData[inputText] or "" end

return ct