Moduuli:Fr:Infobox/radioteleskooppi

Wikipediasta
Siirry navigaatioon Siirry hakuun
Very Large Telescope
Sijainti
Korkeus merenpinnasta
2 635 m[1]View and modify data on Wikidata
Sijaintipaikka
Cerro Paranal (en)View and modify data on Wikidata
Historia
Valmistunut
View and modify data on Wikidata
Otettu käyttöön
Arkkitehtuuri
Type
tähtitorni (en) (käännä suomeksi)View and modify data on Wikidata
Halkaisija
8,2 m ou 1,8 mView and modify data on Wikidata
Données techniques
Diamètre
8,2 m, 1,8 mView and modify data on Wikidata
Résolution
0,002 kulmasekuntiView and modify data on Wikidata
Longueur focale
120 mView and modify data on Wikidata
Muuta
Verkkosivusto
Kartta
Koordinaatit

  1. https://www.eso.org/public/teles-instr/paranal-observatory/vlt/. Tieto on haettu Wikidatasta.
local building = require "Module:Fr:Infobox/Fonctions/Bâtiment"
local basic = require "Module:Fr:Infobox/Fonctions"
local localdata = require "Module:Fr:Infobox/Localdata"
local wd = require "Module:Fr:Wikidata"
local item = localdata.item
--local v = wd.getMainId(claim)
return 
	{
	parts =
    	{
		basic.title('entete map', {}, 'vaihtoehtoinen nimi'),
		--lighthouse.mainimage('Article à illustrer Phare', 'Defaut 2.svg'),
		basic.mainimage(),
		{type = 'table', rows = {
			{type = 'row', label = 'Järjestö', value = 'järjestö', property = 'P1268'}, -- organisaatio
--			{
--				type = 'row',
--				label = 'Observatoorio',
--				value = 'observatoorio',
--				wikidata = {
--					property = 'P361', -- affiche la valeur de P361 si c'est un instance d'observatoire
--					condition = function(claim)
--						local v = wd.getMainId(claim)
--						return wd.isInstance('Q62832', v, 2)					
--						end,
--				}
--			},
			building.adminlocation(),                  -- P131, P17
			building.operator(),                         -- P137			
			building.elevation(),                      -- P2044
--			building.historicalregion(),
			building.mountainrange(),                  -- P4552
			building.geographiclocation(),             -- P706
			building.protectedarea(),                  -- P3018
			},
		},
		{type = 'table', title = "Historia", rows = {
			building.construction(),                   -- P571 ( Q385378 )
			building.opening(),                        -- P1619 (Q1417098, Q15051339, Q1417098)
			{type= 'row', label = 'Otettu käyttöön', value = 'otettu käyttöön', property = 'P729'},
			building.renovation(),                     -- P571 (Q217102, Q2144402, Q18621193)
			building.closure(),                        -- P3999, P576, (Q14954904)
			building.demolition(),                     -- P571 (Q331483, Q17781833)
			{type = 'row', label = 'Korvasi', value = 'korvasi', property = 'P1365'},
			{type = 'row', label = 'Korvaaja', value = 'korvaaja', property = 'P1366' },
			}
		},
		{type = 'table', title = "Arkkitehtuuri", rows = {
			{
				type = 'row',
				label = 'Type',
				value = 'tyyppi',
				wikidata = {
					property = 'P31', 
					labelformat = function(id) -- pour ne pas répéter téléscope, mais peut-être pas toujours une bonne idée ?
						local label = mw.wikibase.label(id) 
						return mw.ustring.gsub(label, "télescope ", "")
					end
				}
			},			
			building.creator(),                          -- P84, P631
			building.dimensions(),                       -- width, height...
--			building.material(),                         -- P186
--			building.colour(),                           -- P462 
			building.protection(),                       -- P1435
			}
		},
		{type = 'table', title = 'Données techniques', rows = {
			{
			type = 'row',
			label = 'Diamètre',
			value = 'diamètre',
			wikidata = {
				property = 'P2386',
				targetunit = 'm',
				excludequalifier = {'P518'},
				excludequalifiervalue = {'Q1395645', 'Q29531156'} -- exclut les miroirs secondaires et tertaires
				}
			},
			{
			type = 'row',
			label = 'Diamètre secondaire',
			value = 'diamètre secondaire',		
			wikidata = {
				property = 'P2386',
				targetunit = 'm',
				qualifier = 'P518',
				qualifiervalue = {'Q1395645'}
				}
			},
			{
			type = 'row',
			label = 'Diamètre tertiaire',
			value = 'diamètre tertiaire',		
			wikidata = {
				property = 'P2386',
				qualifier = 'P518',
				targetunit = 'm',
				qualifiervalue = {'Q29531156'}
				}
			},
			{
			type = 'row',
			label = '[[Pouvoir de résolution|Résolution]]',
			value = 'résolution',		
			wikidata = {
				property = 'P3439',
				}
			},
			{
			type = 'row',
			label = '[[Longueur focale]]',
			value = 'longueur focale',		
			wikidata = {
				property = 'P2151',
				}
			},
			{
			type = 'row',
			label = '[[Longueur d\'onde]]',
			value = 'longueur d\'onde',		
			wikidata = function()
				local minlength = wd.formatAndCat{entity = item, property = 'P3738', showunit = "-", linkback = '-'}
				local maxlength = wd.formatAndCat{entity = item, property = 'P3737'}
				if (minlength and maxlength) then
					return minlength .. ' - ' .. maxlength
				elseif maxlength then
					return "jusqu'à " .. maxlength
				elseif minlength then
					return "à partir de ".. minlength -- à intégrer à module:Linguistique ?
				end
				return wd.formatAndCat{entity = item, property = 'P2808', targetunit = 'nm'}
				end
			},
			{
			type = 'row',
			label = 'Monture',
			value = 'monture',		
			wikidata = {
				property = 'P2670',
				showonlyqualifier = {'P31'},
				targetvalue = 'Q1205231',
				labelformat = function(id) -- évide de répéter "Monture"
					local label = mw.wikibase.label(id) 
					return mw.ustring.gsub(label, "monture ", "")
					end
				}
			},
		},
		},
		{type = 'table', title = "Muuta", rows = {
				{type = 'row', label = 'RKY-tunniste', value = 'rky-tunniste', wikidata = {property = 'P4009', urlpattern="http://www.rky.fi/read/asp/r_kohde_det.aspx?KOHDE_ID=$1"}},
				{type = 'row', label = 'IAU-tunniste', value = 'IAU-tunniste', wikidata = {property = 'P717'}},			
				building.website(),
			},
		},

		building.geoloc({marker = 'lighthouse', default_zoom=14}),
		{type = 'table',  rows = {
			building.coordinates({displaytitle="-"}),
			}
		},	
	}
}