Template:Infobox observatory: Difference between revisions
Vivaporius (talk | contribs) m (1 revision imported) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Short description|Observatory|noreplace}}</includeonly>{{Infobox |
|||
{{Infobox |
|||
| bodyclass |
| 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 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} |
||
| caption1 = {{{ |
| caption1 = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|qid={{{qid|}}}|FETCH_WIKIDATA}}}}}}} |
||
| |
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P154 |name=logo |qid={{{qid|}}} |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{logo|}}}}}|size={{{logo size|{{{logo_size|{{{logo_width|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{logo_alt|}}}|suppressplaceholder=yes}} |
||
| caption2 = {{{ |
| caption2 = {{{logo_caption|{{{Logo_caption|}}}}}} |
||
| label1 = Alternative 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|}}}}} |
|||
| |
| label2 = Named 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 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 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}} |
|||
| |
| data9 = {{{weather|}}} |
||
| 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 |
| subbox = yes | decat = yes |
||
Line 96: | Line 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 = {{EditOnWikidata}} |
| 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}}</ |
{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS. --> |
||
</noinclude> |
Latest revision as of 07:33, 14 May 2022
Location | Template:Wikidata location |
---|---|
[[Commons:Category:Script error: The function "getCommonsLink" does not exist.|Related media on Wikimedia Commons]] | |
Template:EditOnWikidata |
This template adds an automatically generated short description. |
This template uses Lua: |
This template uses one or more Wikidata properties; see § Parameters for details. |
Usage[edit]
Simple[edit]
{{Infobox observatory}}
Data will be automatically included from Wikidata.
Full[edit]
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1]] {{{caption}}} | |||||||||
[[File:{{{logo}}}|frameless|alt={{{logo_alt}}}|upright=1]] {{{logo_caption}}} | |||||||||
Alternative names | {{{alt_names}}} | ||||||||
---|---|---|---|---|---|---|---|---|---|
Named after | {{{namedafter}}} | ||||||||
Organization | {{{organization}}} | ||||||||
Observatory code | {{{code}}} | ||||||||
Location | Template:Wikidata location | ||||||||
Coordinates | {{{coordinates}}} | ||||||||
Altitude | {{{altitude}}} | ||||||||
Weather | {{{weather}}} | ||||||||
Observing time | {{{obs-time}}} | ||||||||
Established | {{{established}}} | ||||||||
Closed | {{{closed}}} | ||||||||
Website | {{{website}}} | ||||||||
Architect | {{{architect}}} | ||||||||
Architecture firm | {{{architecture_firm}}} | ||||||||
Main contractors | {{{main_contractor}}} | ||||||||
Telescopes | |||||||||
| |||||||||
{{{commons_category}}} | |||||||||
Template:EditOnWikidata |
{{Infobox observatory | child = | name = | image = | caption = | alt = | logo = | logo_caption = | logo_alt = | alt_names = | namedafter = | organization = | code = | location = | coordinates = <!-- {{Coord|LAT|LONG|type:landmark|display=inline,title}} --> | altitude = | weather = | obs-time = | established = <!-- {{Start date|YYYY|MM|DD}} --> | closed = | website = <!-- {{URL|example.com}} --> | architect = | architecture_firm = | main_contractor = | telescope1_name = | telescope1_type = | telescope2_name = | telescope2_type = | telescope3_name = | telescope3_type = | telescope4_name = | telescope4_type = | commons_category = | image_map = | map_size = | map_alt = | map_type = | map_dot_label = | map_caption = | locmapin = | embedded = }}
Parameters[edit]
This template returns values from Wikidata where they are available; these values can be overridden by passing values to the relevant parameters.
Parameter | Default | Description |
---|---|---|
name | Wikidata label (en) (Or Page name) |
name of the observatory |
image | (P18) | image (use full wikicode) |
caption | (P2096) | image caption |
alt | alt caption | |
logo | logo | |
logo_caption | logo caption | |
logo_alt | logo alt caption | |
alt_names | Wikidata aliases (en) | alternative names / aliases for the telescope |
namedafter | (P138) | person or organisation the observatory was named after |
organization | (P137) | organization responsible for the observatory |
code | (P717) | observatory code |
location | (P706), (P276), (P131), (P17) (fallback to (P30) for Antarctica) | observatory's location |
coordinates | (P625) | location coordinates, use {{coord}} with display=inline,title |
altitude | (P2044) | altitude of the observatory |
weather | weather | |
obs-time | (P3891) | observing time available |
established | (P1619) | when the observatory was established, use {{start date}} |
closed | (P582) | when the observatory was closed, if appropriate |
telescopes | (P527) | names of the telescopes at the observatory |
website | (P856) | URL of the website for the observatory, use {{URL}} |
architect | architect | |
architecture_firm | architecture firm | |
main_contractor | main contractor | |
telescope1_name | name of the observatory's first telescope | |
telescope1_type | first telescope's type (and any additional information) | |
telescope2_name | name of the observatory's second telescope | |
telescope2_type | second telescope's type (and any additional information) | |
etc... | ||
telescope29_name | name of the observatory's twenty-ninth telescope | |
telescope29_type | twenty-ninth telescope's type (and any additional information) | |
telescope30_name | name of the thirtieth telescope | |
telescope30_type | thirtieth telescope's type (and any additional information) | |
locmapin | (P17) | use this parameter to override the location map shown, if necessary. See {{Wikidata location map}} |
commons_category | commons sitelink | category name at Wikimedia Commons |
refs | no | set to 'yes' to automatically display references from Wikidata |
child | no | set to 'yes' to use as a child infobox of another infobox |
embedded | embed another infobox into this one |
Examples of use[edit]
- Infoboxes which only use Wikidata (no local parameters)
Microformat[edit]
Tracking categories[edit]
- Category:Articles using Infobox observatory using locally defined parameters (0)
- Category:Articles with infoboxes completely from Wikidata (0)
See also[edit]
TemplateData[edit]
TemplateData |
---|
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.
TemplateData for Infobox observatory <templatedata>
{
"params": {
"name": {
"label": "Name",
"type": "line",
"autovalue": "Page name or Wikidata label",
"suggested": true
},
"image": {
"label": "Image",
"type": "wiki-file-name",
"default": "Wikidata: image (P18)",
"autovalue": "",
"suggested": true
},
"caption": {
"label": "Image caption",
"type": "line",
"default": "Wikidata: media legend (P2096)"
},
"alt": {
"label": "Image alternative text",
"type": "string",
"autovalue": ""
},
"logo": {
"label": "Logo",
"type": "wiki-file-name"
},
"logo_caption": {
"label": "Logo caption",
"type": "line"
},
"logo_alt": {
"label": "Logo alternative text",
"type": "string"
},
"alt_names": {
"label": "Alternative names",
"type": "string",
"default": "Wikidata aliases"
},
"namedafter": {
"label": "Named after",
"description": "Person or organisation the observatory was named after",
"type": "line",
"default": "Wikidata: named after (P138)"
},
"organization": {
"label": "Organization",
"description": "Organization responsible for the observatory",
"type": "string",
"default": "Wikidata: operator (P137)"
},
"code": {
"label": "Observatory code",
"description": "Minor Planet Center observatory code",
"default": "Wikidata: Minor Planet Center observatory code (P717)"
},
"location": {
"label": "Location",
"type": "line",
"default": "Wikidata: located on terrain feature (P706), location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica)"
},
"coordinates": {
"label": "Coordinates",
"description": "Location coordinates, use with display=inline,title",
"example": "Coordinates: Expression error: Unrecognized word "lat".Expression error: Unrecognized word "lat".Expression error: Unrecognized word "long".Expression error: Unrecognized word "long".",
"default": "Wikidata: coordinate location (P625)"
},
"altitude": {
"label": "Altitude",
"type": "string",
"default": "Wikidata: elevation above sea level (P2044)"
},
"weather": {
"label": "Weather"
},
"obs-time": {
"label": "Observing time",
"default": "Wikidata: observing time available (P3891)"
},
"established": {
"label": "Established",
"example": " Expression error: Unrecognized word "dd"., YYYY ",
"type": "content",
"default": "Wikidata: date of official opening (P1619)"
},
"closed": {
"label": "Closed",
"example": " Expression error: Unrecognized word "dd"., YYYY ",
"type": "content",
"default": "Wikidata: end time (P582)"
},
"website": {
"label": "Website",
"description": "URL of the website for the observatory",
"example": "example |
- Pages with script errors
- Infobox templates
- Templates that generate short descriptions
- Lua-based templates
- Templates using data from Wikidata
- Templates with short description
- Astronomy infobox templates
- Buildings and structures infobox templates
- Organization infobox templates
- Technology and applied science infobox templates
- Embeddable templates
- Infobox templates using Wikidata
- Templates that add a tracking category
- TemplateData documentation