Moduuli:Fr:Infobox/Rakennus

Wikipediasta
Siirry navigaatioon Siirry hakuun
Hoitokoti Finlandia
Tyyppi
Sijainti
Käyttäjä
Kruunupuisto Oy (d)View and modify data on Wikidata
Historia
Avajaiset
Arkkitehtuuri
Arkkitehdit
Tyylisuunta
Tietokannat
Luokitus
rakennus, joka on suojeltu asetuksella 480/85 valtion omistamien rakennusten suojelusta (d)View and modify data on Wikidata
VTJ-PRT
103460042PView and modify data on Wikidata
Kartta

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

local function getLocalValueWithDefaultUnit(localdata, paramname, testparams )
	ret=localdata[paramname] 
	if ret == "-" then
		return "-"
	end
	
	if ret == nil then
		return nil
	end
	
	if 	localdata[paramname .. "_ohita_tarkistus"] == "1"  then
		return ret;
	end


	args= {
		["sisältö"] = ret .."",
		tyyppi = testparams["type"] ,
		["sallitut_yksiköt"] = testparams["allowedunits"],
		malline = testparams["templatename"],
		parametri = testparams["paramname"] ,
		["vakioyksikkö"] = testparams["defaultunit"], 
		virheviesti = testparams["errormessage"],
		minimiarvo = testparams["minvalue"] ,
		maksimiarvo = testparams["maxvalue"],
		ohita_tarkistus = testparams["skiptests"]
	}

	frame=mw.getCurrentFrame();
	ret=frame:expandTemplate{ title = 'Tarkista luku', args = args }
	return ret
end

return 
	{
	parts =
    	{
			general.title('entete map', {}, 'nimi-muu'),
			building.mainimage('Rakennuksen kuva'),
			general.logo(),
			{type = 'table', rows = {
				{type = 'row', label = 'Tyyppi', value = 'type', blockers = {'destination initiale', 'destination finale'}, wikidata = {property = 'P31', excludevalues = {'Q41176', 'Q811979' }}},
				building.adminlocation(),
				building.owner(),
				building.operator(),
				building.website('site'),
				{type = 'row', label = 'Hiippakunta', value = 'hiippakunta', property = 'P708'},
				{type = 'row', label = 'Omistettu', value = 'omistettu', property = 'P825'},
				{type = 'row', label = 'Muistolle', value = 'commémore', property = 'P547'},
				building.visitors(),
				{type = 'row', label = 'Johtaja', plurallabel = 'Johtajat', value = 'johtaja', wikidata = {property = 'P1037', showqualifiers = {'P794'}, showdate = true, precision = 'year', stilltrue = true, expl = true}},
				{type = 'row', label = 'Puheenjohtaja', plurallabel = 'Puheenjohtajat', value = 'puheenjohtaja', wikidata = {property = 'P488', showdate = true, precision = 'year', stilltrue = true}},
				{type = 'row', label = 'Kuraattori', value = 'kuraattori', wikidata = { property = 'P1640', showdate='P580', linkback=true } },
				{type = 'row', label = 'Vierailijoita vuosittain', value = 'visiteurs', wikidata = {property = 'P1174', sorttype = 'inverted', numval = 1, showdate = true}},
				{type = 'row', label = 'Kokoelman_koko', value = 'kokoelman_koko', wikidata = { property = 'P1436', showdate='P580', linkback=true, numval = 1 } },
				{type = 'row', label = 'Henkilöstöä', value = 'henkilöstöä', wikidata = { property = 'P1128', showdate='P580', linkback=true, numval = 1 } },
				{type = 'row', label = 'Kävijämäärä', value = 'kävijämäärä', wikidata = { property = 'P1174', showdate='P580', linkback=true, numval = 1 } },
				}
			},
			{type = 'table', title = "Historia", rows = {
				building.construction(),
				{type = 'row', label = 'Rakennuttaja', value = 'commanditaire', property = 'P88'},
				{type = 'row', label = 'Rakentaja', value = 'rakentaja', property = 'P176'},
				building.opening(),
				{type = 'row', label = 'Otettu käyttöön', value = 'otettu käyttöön', wikidata = { property = 'P729'}, blockers='rakennettu'},
				{type = 'row', label = 'Sähköistetty', value = 'sähköistetty', wikidata = {property = 'P793', targetvalue = 'Q1076056', showonlyqualifier = 'P585'} },
				{type = 'row', label = 'Kauko-ohjattu', value = 'kauko-ohjattu'},
				{type = 'row', label = 'Automatisoitu', value = 'automatisoitu', wikidata = {property = 'P793', targetvalue = 'Q24410992', showonlyqualifier = 'P585'}},
				{type = 'row', label = 'Sammutettu', value = 'sammutettu', property = 'P730'},
				building.reconstruction(),
				building.renovation(),
				building.demolition(),
				building.destroyedby(),
				building.replaces(),
				building.replacedby(),
				},
			},
			{type = 'table', title = 'Arkkitehtuuri', rows = {
				building.creator(),
				building.archistyle(),
				building.material(),
				building.dimensions(),
				{
					type = "row",
					label = "Pinta-ala",
					value = 'kokonaispinta-ala',
					wikidata = {
						property = "P2046",
						showqualifiers = "P518",
						conjtype = '<br />',
						targetunit = 'square meter',
						rounding = '0'
					}
				},
				building.shape(),
				building.colour(),
				building.floors(),
				building.complex(),
			}},
			{type = 'table', title = 'Sijainti', rows = {
				building.mountainrange(),
				building.onshoreof(),
				building.watershed(),
				building.protectedarea(),
				}
			},
			{type = 'table', title = 'Tietokannat', rows = {
				building.protection(),
				building.unesco(),
				{type = 'row', label = 'VTJ-PRT', value = 'VTJ-PRT', property = 'P3824'},
				}
			},
			{type = 'table', title = 'Kulkuyhteydet ja sisäänpääsy', rows = {
				building.transport(),
				{
					type = "row",
					label = "Liikkeiden määrä",
					value = "liikkeet",
					wikidata = {
						showonlyqualifier = "P1114",
						property = "P2670",
						targetvalue = "Q213441",
						showdate = true,
						}
				},
				{
					type = "row",
					label = "Ravintoloiden määrä",
					value = "ravintolat",
					wikidata = {
						showonlyqualifier = "P1114",
						property = "P2670",
						targetvalue = "Q11707",
						showdate = true,
						}
				},
				{
					type = "row",
					label = "Pysäköintipaikat",
					value = "pysäköintipaikat",
					wikidata = {
						showonlyqualifier = 'P1083',
						property = 'P912',
						targetvalue = 'Q6501349',
						showdate = true,
						}
				},
			},
		},
		general.geoloc({marker=displayformat[1], default_zoom=13}),
	}
}