Dokumentado Dokumentado


Ŝablona programado Diskutoj Lua Testoj Subpaĝoj
Modulo Esperanto English

Modulo: Dokumentado


Se vi havas demandon pri ĉi tiu Lua-modulo, tiam vi povas demandi en la diskutejo pri Lua-moduloj. La Intervikiaj ligiloj estu metataj al Vikidatumoj. (Vidu Helpopaĝon pri tio.)
-- modulo Geografiaĵoj/areo, kreo 2024-04-15, aktualigo 2024-02-15
-- ĉi tiu modulo difinas areajn mezurunuojn por la ĉefa modulo kaj povas esti uzata de diversaj aliaj moduloj
-- ĝi enhavu la samajn eblajn tipojn kiel [[Modulo:Geografiaĵoj/kolojroj]]  kaj [[Modulo:Geografiaĵoj/type:]]!

local p = {}

-- fona koloro laŭ tipo
function p.areo(tipo)
		local r = "km2"
		if tipo == "administra unuo" or tipo == "administra teritoria unuo" then
			r = "km2"
		elseif tipo == "akvofalo" then	
			r = "m2"
		elseif tipo == "antikva popolo" then
			r = "km2"
		elseif tipo == "arbaro" then
			r = "km2"
		elseif tipo == "atolo" then
			r = "km2"
		elseif tipo == "belvedero" then
			r = "m2"
		elseif tipo == "biblioteko" then
			r = "m2"
		elseif tipo == "bieno" then	
			r = "m2"			
		elseif tipo == "burgo" then
			r = "m2"
		elseif tipo == "dezerto" then
			r = "km2"	
		elseif tipo == "duoninsulo" or tipo == "kabo" then	
			r = "km2"
		elseif tipo == "ekoregiono" then
			r = "km2"
		elseif tipo == "ekstertera regiono" then
			r = "km2"
		elseif tipo == "gastejo" or tipo == "restoracio" then
			r = "m2"
		elseif tipo == "glaĉero" then
			r = "km2"
		elseif tipo == "golfo" then	
			r = "km2"	
		elseif tipo == "groto" then	
			r = "m2"			
		elseif tipo == "haveno"	then
			r = "km2"
		elseif tipo == "historia teritorio" or tipo == "historia regiono" then
			r = "km2"
		elseif tipo == "hospitalo" or tipo == "malsanulejo" then
			r = "m2"			
		elseif tipo == "insulo" then
			r = "km2"	
		elseif tipo == "insularo" then
			r = "km2"
		elseif tipo == "istmo" or tipo == "terkolo" then
			r = "km2" 
		elseif tipo == "kampurbo" then	
			r = "km2"
		elseif tipo == "kastelo" then
			r = "m2"
		elseif tipo == "katedralo" or tipo == "monaĥejo" then
			r = "m2"			
		elseif tipo == "kavo" or tipo == "kaverno" then
			r = "m2" --"#FFF5EE"	
		elseif tipo == "komarko" then
			r = "km2"
		elseif tipo == "komunumo" then	
			r = "km2"
		elseif tipo == "konstruaĵo" or tipo == "alta konstruaĵo" then
			r = "m2" -- #E8E8E8
		elseif tipo == "kratero" then
			r = "km2"
		elseif tipo == "kvartalo" then
			r = "km2"
		elseif tipo == "lago" or tipo == "lagaro" or tipo == "laguno" then
			r = "km2"	
		elseif tipo == "lando" then
			r = "km2"
		elseif tipo == "limpasejo" then
			r = "m2"
		elseif tipo == "lumturo" then
			r = "m2"			
		elseif tipo == "malaperinta municipo" then
			r = "km2"
		elseif tipo == "maro" or tipo == "oceano" then	
			r = "km2"		
		elseif tipo == "markolo" then
			r = "km2"
		elseif tipo == "megalitejo" or tipo == "arkeologia situo" then
			r = "m2"
		elseif tipo == "minejo" then
			r = "km2"
		elseif tipo == "montaro" then
			r = "km2"	
		elseif tipo == "monto" then	
			r = "km2"
		elseif tipo == "monumento" then
			r = "m2"
		elseif tipo == "moskeo" then
			r = "m2"			
		elseif tipo == "municipo" then
			r = "km2"
		elseif tipo == "municipa parto" then
			r = "km2"
		elseif tipo == "muzeo" then
			r = "m2"
		elseif tipo == "observatorio" then
			r = "m2"			
		elseif tipo == "nacia parko" or tipo == "protektita tereno" then
			r = "km2"
		elseif tipo == "palaco" then
			r = "m2"			
		elseif tipo == "parko" or tipo == "verda spaco" then
			r = "km2"				
		elseif tipo == "pasejo" then
			r = "m2"
		elseif tipo == "placo" or tipo == "strato" then
			r = "m2"
		elseif tipo == "ponto" then
			r = "m2"
		elseif tipo == "preĝejo" then
			r = "m2"
		elseif tipo == "protektita areo" then	
			r = "km2"
		elseif tipo == "regiono" then
			r = "km2"
		elseif tipo == "reliefo" or tipo =="altaĵo"	or tipo == "ebenaĵo" then -- eble povus poste esti apartigataj
			r = "km2"
		elseif tipo == "rezervejo" then
			r = "km2"
		elseif tipo == "rezervujo" then
			r = "km2"
		elseif tipo == "rivero" then
			r = "km2"
		elseif tipo == "sinagogo" then
			r = "m2"	
		elseif tipo == "stadiono" then
			r = "m2"
		elseif tipo == "statuo" then
			r = "m2"
		elseif tipo == "stepo" then
			r = "km2"
		elseif tipo == "submara fosego" then
			r = "km2"
		elseif tipo == "teritorio" then	
			r = "km2"
		elseif tipo == "tertremo" then
			r = "km2"
		elseif tipo == "tombejo" then
			r = "km2"			
		elseif tipo == "urbo" then
			r = "km2"
		elseif tipo == "valo" then
			r = "km2"			
		elseif tipo == "vendejo" then
			r = "m2"
		elseif tipo == "vilaĝo" then
			r = "km2"
		elseif tipo == "vojo" then
			r = "km2"			
		elseif tipo == "vulkano" then
			r = "km2"
		elseif tipo == "zoologia ĝardeno" or tipo == "zoologia parko" or tipo == "zoo" then
			r = "km2"
		end
		return r
end


return p