Moduuli:Fr:Infobox/radioteleskooppi
Wikimedia module / From Wikipedia, the free encyclopedia
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 = '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="-"}), } }, } }