Template:Infobox observatory: Difference between revisions

m
1 revision imported
(also sort telescope names)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
<includeonly>{{Short description|Observatory|noreplace}}</includeonly>{{Infobox
{{Infobox
| bodyclass = vcard
| titleclass = fn org
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
| child = {{{child|no}}}
| titleclass = fn org
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
 
| image1 image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{logoqid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{logo_sizeimage size|{{{image_size|{{{logo_widthimagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1}}}|alt={{{logo_altalt|}}}|suppressplaceholder=yes}}
| caption1 = {{#if:{logo_caption{{image|}}}|{{{Logo_captioncaption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|qid={{{qid|}}}|FETCH_WIKIDATA}}}}}}}
 
| image2 image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataWikidataIB |getValue|P18rank=best|P154 |name=logo |qid={{{imageqid|FETCH_WIKIDATA}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{logo|}}}}}|size={{{image_sizelogo size|{{{logo_size|{{{image_widthlogo_width|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1.1|border=yes}}}|alt={{{image_alt|{{{altlogo_alt|}}}}}}|suppressplaceholder=yes}}
| caption2 = {{{captionlogo_caption|{{#invoke:Wikidata|getImageLegend{Logo_caption|FETCH_WIKIDATA}}}}}}
 
| label1 = Alternative&nbsp;names
| image3 = {{#if:{{{map_type|}}}|{{Location map|{{{map_type|}}}
| data1 = {{#if:{{#invoke:WikidataIB|getValue|rank=best|P1813|name=alt_names|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{alt_names|}}} }}|{{#invoke:WikidataIB|getValue|rank=best|P1813|name=alt_names|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{alt_names|}}} }}|{{#ifeq:{{{fetchwikidata|ALL}}}|NONE||{{#if:{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}|{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}{{EditAtWikidata|qid={{{qid|}}} }}|}}}} }}
| coordinates = {{{coordinates|{{{coords|{{{coord|}}}}}}}}}
| float = center
| label = {{If empty|{{{map_dot_label|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
| relief = {{{map_relief|}}}
| caption = {{If empty|{{{map_caption|}}}|Location in {{#invoke:Location map|data|{{{map_type}}}|name}}}}
| border = infobox
| width = {{{map_size|}}}
}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}}}}
| caption3 = {{#if:{{{image_map|}}}|{{{map_caption|}}}}}
 
| label1 label2 = OrganizationNamed after
| data2 = {{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P138|name=namedafter|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{namedafter|}}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P138}} }} }}
| data1 = {{#invoke:Wikidata|getValue|P137|{{{organization|{{{organisation|FETCH_WIKIDATA}}}}}}}}
 
| label3 = Organization
| label2 = [[List of observatory codes|Observatory&nbsp;code]]
| data3 = {{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P137|name=organisation|qid={{{qid|}}}|sep="<br />"|sorted=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{organization|{{{organisation|}}}}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P137}} }} }}
| data2 = {{{code|{{#if:{{#invoke:Wikidata|getValue|P717|FETCH_WIKIDATA}}|[[List of observatory codes#{{#invoke:Wikidata|getValue|P717|FETCH_WIKIDATA}}|{{#invoke:Wikidata|getValue|P717|FETCH_WIKIDATA}}]]}}}}}
 
| label4 = {{W|List of observatory codes|Observatory&nbsp;code}}
| label3 = Abbreviation
| data4 = {{#invoke:WikidataIB |getValue |P717 |rank=b |name=code |spf={{{suppressfields|}}} |fwd={{{fetchwikidata|ALL}}} |osd={{{onlysourced|no}}} |lp="[List of observatory codes#" |linkpostfix={{!}} |postfix="]" |qid={{{qid|}}} |{{{code|}}} }}
| data3 = {{#invoke:Wikidata|getValue|P1813|{{{abbreviation|FETCH_WIKIDATA}}}}}
 
| label6 = Location
| label4 = Named after
| data6 = {{If then show | <!--
| data4 = {{#invoke:WikidataIB|getValue|P138|name=namedafter|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|}}}|{{{namedafter|}}} }}
-->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!--
-->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!--
-->{{If then show|{{{location|{{#invoke:WikidataIB | location | {{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}}}}}}|{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }}}} |<!--
-->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }} | <!--
-->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }}<!--
--> }}
 
| label7 = {{W|Geographic coordinate system|Coordinates}}
| label5 = Location
| data7 = {{#if:{{{coordinates|{{{coords|{{{coord|}}}}}}}}} | {{#invoke:Coordinates|coordinsert|{{{coordinates|{{{coords|{{{coord}}}}}}}}}|type:landmark|{{#if:{{{location_country|}}}|region:{{CountryAbbr|{{{location_country}}}}}}}}} | {{#if:{{#Property:P625|from={{{qid|}}}}} | {{Coord|3=type:landmark{{#if:{{{location_country|}}}|_region:{{CountryAbbr|{{{location_country}}}}}}}|qid={{{qid|}}}|display={{{coordinates_display|{{{coord_display|inline,title}}}}}}|format=dms}} }} }}
| data5 = {{#invoke:Wikidata|getValue|P276|{{{location|FETCH_WIKIDATA}}} }}{{#if:{{#Property:P276}}|{{#if:{{#Property:P17}}|{{#if:{{{location|}}}| |, {{#invoke:Wikidata|getValue|P17|FETCH_WIKIDATA}} }} }} }}
| class5 = label
 
| label8 = Altitude
| label6 = [[Geographic coordinate system|Coordinates]]
| data8 = {{{altitude|{{#if:{{#property:P2044|from={{{qid|}}}}}|{{If first display both|{{#ifeq:{{#invoke:Wikidata|getUnits|P2044|qid={{{qid|}}}|FETCH_WIKIDATA}}|foot|{{convert|input=P2044|qid={{{qid|}}}|m|abbr=on}}|{{convert|input=P2044|qid={{{qid|}}}|ft|abbr=on}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P2044}} }}{{EditAtWikidata|pid=P2044|qid={{{qid|}}} }} }} }} }}}
| data6 = {{#if:{{{coordinates|{{{coords|{{{coord|}}}}}}}}} | {{#invoke:Coordinates|coordinsert|{{{coordinates|{{{coords|{{{coord}}}}}}}}}|type:landmark|{{#if:{{{location_country|}}}|region:{{CountryAbbr|{{{location_country}}}}}}}}} | {{#if:{{#Property:P625}} | {{Coord|3=type:landmark{{#if:{{{location_country|}}}|_region:{{CountryAbbr|{{{location_country}}}}}}}|nosave=1|display=inline,title|format=dms}} }} }}
| label7 = Altitude
| data7 = {{{altitude|{{#if:{{#property:P2044}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2386|FETCH_WIKIDATA}}|feet|{{convert|input=P2044|m|abbr=on}}|{{convert|input=P2044|ft|abbr=on}} }} }} }}}
| label8 = Weather
| data8 = {{{weather|}}}
| label9 = Established
| data9 = {{#invoke:Wikidata|getValue|P1619|{{{established|FETCH_WIKIDATA}}}}}
| label10 = Closed
| data10 = {{#invoke:Wikidata|getValue|P582|{{{closed|FETCH_WIKIDATA}}}}}
| rowclass10 = note
| label11 = Website
| data11 = {{{website|{{#if:{{#property:P856}}|{{Url|1={{#invoke:Wikidata|getValue|P856|FETCH_WIKIDATA}} }} }} }}}
| header12 = {{#if:{{{architect|}}}{{{architecture_firm|}}}{{{main_contractor|}}}{{{main_contractors|}}}|Design and construction}}
| label13 = Architect
| data13 = {{{architect|}}}
| label14 = Architecture firm
| data14 = {{{architecture_firm|}}}
| label15 = Main contractors
| data15 = {{{main_contractor|{{{main_contractors|}}}}}}
| label16 = Telescopes
| data16 = {{#if:{{{telescope1_type|}}}||{{#invoke:WikidataIB|getValue|P527|name=telescopes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|sep="<br />"|sorted=yes|{{{telescopes|}}} }} }}
 
| label9 = Weather
| header17 = {{#if:{{{telescope1_type|}}}|Telescopes}}
| data18 data9 = {{#if:{{{telescope1_typeweather|}}}|{{Infobox
 
| label10 = Observing time
| data10 = {{{obs-time|{{#if:{{#Property:P3891|from={{{qid|}}}}} | {{If first display both|{{#invoke:WikidataIB |getValue |P3891 |name=obs-time |fetchwikidata={{{fetchwikidata|ALL}}} |suppressfields={{{suppressfields|}}} |onlysourced={{{onlysourced|no}}} }} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P3891}} }} }} }}}
 
| label11 = Established
| data11 = {{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P1619|name=established|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{established|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P1619}} }} }}
 
| label12 = Closed
| data12 = {{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P582|name=closed|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{closed|}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P582}} }} }}
 
| label13 = Website
| data13 = {{{website|{{#if:{{#property:P856|from={{{qid|}}}}}|{{If first display both|{{Url|1={{#invoke:Wikidata|getValue|P856|qid={{{qid|}}}|FETCH_WIKIDATA}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}} }}{{EditAtWikidata|pid=P856|qid={{{qid|}}} }} }} }} }}}
 
| label15 = Architect
| data15 = {{{architect|}}}
 
| label16 = Architecture firm
| data16 = {{{architecture_firm|}}}
 
| label17 = Main contractors
| data17 = {{{main_contractor|{{{main_contractors|}}}}}}
 
| label18 = Telescopes
| data18 = {{#if:{{{telescope1_type|}}}||{{#invoke:WikidataIB|getValue|P527|name=telescopes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|sep="<br />"|sorted=yes|{{{telescopes|}}} }} }}
 
| label19 = Commercial telescopes
| data19 = {{#if:{{{telescope1_type|}}}||{{#invoke:WikidataIB|getValue|P2670|name=commercialtelescopes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|sep="<br />"|sorted=yes|{{{commercialtelescopes|}}} }} }}
 
| header20 = {{#if:{{{telescope1_type|}}}{{{telescope1_name|}}}|Telescopes}}
| data21 = {{#if:{{{telescope1_type|}}}{{{telescope1_name|}}}|{{Infobox
| subbox = yes | decat = yes
 
Line 96 ⟶ 104:
}}}}
 
| data31 = {{#if:{{{map_type|}}}|{{Location map|{{{map_type|}}}
| data31 = {{{commons_category | {{#if:{{#property:P373}}| {{cclink|{{#invoke:Wikidata |getValue |P373|FETCH_WIKIDATA}}|Related media on Wikimedia Commons}} }}}}}
| coordinates = {{if empty|{{{coordinates|{{{coords|{{{coord|}}}}}}}}}|{{Coord|qid={{{qid|}}}}}}}
| float = center
| label = {{If empty|{{{map_dot_label|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
| relief = {{{map_relief|}}}
| caption = {{If empty|{{{map_caption|}}}|Location in {{#invoke:Location map|data|{{{map_type}}}|name}}}}
| border = infobox
| width = {{{map_size|}}}
}}|{{#if:{{{image_map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}}|{{Wikidata location map|qid={{{qid|}}}|locmapin={{{locmapin|}}}|map_caption={{{map_caption|}}}|name={{{name|}}}}}}}}}
| caption3 = {{#if:{{{image_map|}}}|{{{map_caption|}}}}}
 
| data32 = {{{commons_category | {{#if:{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}| {{cclink|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}|Related media on Wikimedia Commons}} }}}}}
 
| header35 = {{{embedded|}}}
 
| below = {{#ifeq:{{{fetchwikidata|ALL}}}|NONE||{{EditOnWikidata|qid={{{qid|}}}}}}}
 
}}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin|refs}}|[[Category:Articles using Infobox observatory using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Infobox observatory]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | alt_names | altitude | architect | architecture_firm | caption | child | closed | code | commercialtelescopes | commons_category | coord | coordinates | coords | embedded | established | fetchwikidata | image | image size | image_map | image_size | image_upright | imagesize | location | location_country | locmapin | logo | logo size | logo_alt | Logo_caption | logo_caption | logo_size | logo_width | main_contractor | main_contractors | map_alt | map_caption | map_dot_label | map_relief | map_size | map_type | name | namedafter | obs-time | onlysourced | organisation | organization | qid | refs | suppressfields | telescope1_name | telescope1_type | telescope2_name | telescope2_type | telescope3_name | telescope3_type | telescope4_name | telescope4_type | telescope5_name | telescope5_type | telescope6_name | telescope6_type | telescope7_name | telescope7_type | telescope8_name | telescope8_type | telescope9_name | telescope9_type | telescope10_name | telescope10_type | telescope11_name | telescope11_type | telescope12_name | telescope12_type | telescope13_name | telescope13_type | telescope14_name | telescope14_type | telescope15_name | telescope15_type | telescope16_name | telescope16_type | telescope17_name | telescope17_type | telescope18_name | telescope18_type | telescope19_name | telescope19_type | telescope20_name | telescope20_type | telescope21_name | telescope21_type | telescope22_name | telescope22_type | telescope23_name | telescope23_type | telescope24_name | telescope24_type | telescope25_name | telescope25_type | telescope26_name | telescope26_type | telescope27_name | telescope27_type | telescope28_name | telescope28_type | telescope29_name | telescope29_type | telescope30_name | telescope30_type | telescopes | weather | website }}</includeonly><noinclude>
}}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1}}|[[Category:Articles using Infobox observatory using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude>
{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /noincludedoc SUBPAGE, THANKS. -->
</noinclude>