Moduuli:Fr:Infobox/Vuori

Wikipediasta
Siirry navigaatioon Siirry hakuun



local building = require "Module:Fr:Infobox/Fonctions/Bâtiment"
local area = require "Module:Fr:Infobox/Fonctions"
local wd = require "Module:Fr:Wikidata"
local localdata = require "Module:Fr:Infobox/Localdata" 

return 
	{
	parts =
    	{
		area.title('entete map', {}, 'Alkuperäinen nimi', {property = 'P1705', showlang = false} ),
		area.mainimage(),
		{type = 'table', rows = {
			{type = 'row', label = "Tyyppi", value = "Tyyppi", wikidata = {property = 'P31', ucfirst='-', excludevalues = {'Q8502','Q473972', 'Q34987520', 'Q11679502', 'Q19860854'}, defaultlinkquery = {property = {'P2354', 'P137'}}}},
			building.adminlocation(),
			building.island(),
			building.geographiclocation(),
			building.onshoreof(),
			building.mountainrange(),
			building.elevation(),
			{type = 'row', label = '[[Topografinen prominenssi|Prominenssi]]', 
				value = function()  return  building.getLocalValueWithDefaultUnit(localdata, 'Prominenssi',
				{
					type='desimaaliluku', 
					allowedunits='m', 
					templatename='Malline:Vuori WD', 
					defaultunit='m', 
					errormessage='Esimerkkiarvo: 10 m', 
					minvalue=0,
					maxvalue=50000,
					skiptests=""
				} ) end, 
				wikidata = {property = 'P2660', targetunit = 'm', rounding = '0', removedupes = true, conjtype = ' tai '}
			},
			building.protectedarea(),
			{type = 'row', label = 'Ikä', value = 'ikä', property = 'P2348'},
			{type = 'row', label = 'Purkautunut viimeksi', value = 'Purkautunut viimeksi', wikidata = {property = 'P793', targetvalue = 'Q29575458', showonlyqualifier = {'P585', 'P580', 'P582'}, conjtype = ' - '}},	
			{type = 'row', label = 'Ensimmäinen nousu huipulle', value = 'Ensimmäinen nousu huipulle'},	
			{type = 'row', label = 'Helpoin reitti', value = 'Helpoin reitti'},				
			{type = 'row', label = "Lähin kaupunki", value = "lähin_kaupunki"},
			{type = 'row', label = "Laji", plurallabel = "Lajit", value = "lajit", wikidata = {property = 'P1990', numval = '5', showsource=true}},
			},
		},
		{type = 'table', title = 'Hallinto', rows = {
			{type = 'row', label = "Luokitus", value = "luokitus", wikidata = {property = 'P1435', excludevalues = 'Q9259', showdate = 'true', textformat = 'minimum', sorttype = 'chronological', showsource=true}},
--			{type = 'row', label = "Info", value = "info", wikidata = {property = 'P2872', numval = '5'}},
			},
		},
--		building.unesco(),
		building.geoloc({pointtype = 'aire protégée', maptype = 'relief', marker = 'park', default_zoom = 3}),
		{type = 'table',  rows = {
			building.coordinates({displaytitle='-'}),
			}
		}
	},
}