Modulo:Geografiaĵoj/simbolo

El Vikipedio, la libera enciklopedio
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/koloroj, 2024-03-29
-- ĉi tiu modulo difinas simbolojn por diversaj geografiaj objektoj kaj povas esti uzata de diversaj aliaj moduloj
-- laŭ la ŝablono "Geokesto2 mapo/simbolo", parte laŭ [[Ŝablono:Situo sur mapo/markiloj]] kaj [[Ŝablono:Situo sur mapo/marko]]
-- ĝi enhavu la samajn eblajn tipojn kiel [[Modulo:Geografiaĵoj/koloroj]] kaj [[Modulo:Geografiaĵoj/type:]]!

local p = {}

-- fona koloro laŭ tipo
function p.simbolo(tipo)
		local r = "ButtonRed.svg"
		if tipo == "administra unuo" then
			r = "ButtonRed.svg"
		elseif tipo == "akvofalo" then	
			r = "Blue pog.svg"
		elseif tipo == "arbaro" then
			r = "Green pog.svg"
		elseif tipo == "arkeologia situo" then
			r = "Archaeological site icon (red).svg"			
		elseif tipo == "burgo" or tipo == "kastelo" then
			r = "Castle.svg" -- aŭ eble pli bone "Grey castle icon.svg"?
		elseif tipo == "dezerto" then
			r = "ButtonRed.svg"	
		elseif tipo == "duoninsulo" or tipo == "golfo" or tipo == "kabo" then	
			r = "Green Fire.svg"
		elseif tipo == "historia teritorio" or tipo == "historia regiono" then
			r = "ButtonRed.svg"
		elseif tipo == "insulo" then
			r = "Green Fire.svg"			
		elseif tipo == "kampurbo" then	
			r = "ButtonRed.svg"
		elseif tipo == "kavo" or tipo == "kaverno" then
			r = "Gfi-set01-cave.svg"	
		elseif tipo == "komunumo" then	
			r = "ButtonRed.svg"
		elseif tipo == "konstruaĵo" or tipo == "alta konstruaĵo" or tipo == "palaco" then
			r = "RedHut.svg"  -- aŭ eble "Legenda zabytek chalupa.svg"?
		elseif tipo == "kratero" then
			r = "Map_pointer.svg"
		elseif tipo == "kvartalo" then
			r = "ButtonRed.svg"
		elseif tipo == "lago" or tipo == "lagaro" or tipo == "laguno" then
			r = "Blue pog.svg"			
		elseif tipo == "lando" then
			r = "ButtonRed.svg"
		elseif tipo == "lumturo" then
			r = "Lighthouse icon centered.svg"			
		elseif tipo == "maro" or tipo == "oceano" then	
			r = "Blue pog.svg"
		elseif tipo == "malaperinta municipo" then
			r = "ButtonRed.svg"
		elseif tipo == "minejo"	then
			r = "Schlaegel und eisen-sign of mining.svg"
		elseif tipo == "montaro" then
			r = "Fire.svg"	
		elseif tipo == "monto" then	
			r = "Fire.svg"
		elseif tipo == "monumento" then
			r = "Legenda zabytek.svg"
		elseif tipo == "municipo" or tipo == "municipa parto" then
			r = "ButtonRed.svg"
		elseif tipo == "muzeo" then
			r = "Legenda muzeum.svg"			
		elseif tipo == "nacia parko" or tipo == "protektita areo" or tipo == "protektita tereno" then
			r = "Green pog.svg"		
		elseif tipo == "parko" or tipo == "verda spaco" then
			r = "Green pog.svg"				
		elseif tipo == "pasejo" then
			r = "Mountain pass 12x12 n.svg" -- aŭ eble "Legenda przelecz.svg"?
		elseif tipo == "ponto" then
			r = "Pont.svg"	
		elseif tipo == "protektita areo" then	
			r = "Green pog.svg"
		elseif tipo == "rezervejo" then
			r = "Green pog.svg"
		elseif tipo == "rezervujo" then
			r = "Blue pog.svg"
		elseif tipo == "rivero" then
			r = "Blue pog.svg"			
		elseif tipo == "statuo" then
			r = "ButtonRed.svg"
		elseif tipo == "teritorio" then	
			r = "ButtonRed.svg"
		elseif tipo == "tertremo" then
			r = "Bullseye1.svg"
		elseif tipo == "urbo" then
			r = "ButtonRed.svg"
		elseif tipo == "vilaĝo" then
			r = "Dot-yellow.svg"
		elseif tipo == "vulkano" then
			r = "Fire.svg"	
		elseif tipo == "preĝejo" then
			r = "ButtonRed.svg"	
		end
		return r
end


return p