Template:Infobox observatory/doc

From Omniversalis

Usage[edit]

Simple[edit]

{{Infobox observatory}}

Data will be automatically included from Wikidata.

Full[edit]

{{{name}}}
[[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
{{{telescope1_name}}} {{{telescope1_type}}}
{{{telescope2_name}}} {{{telescope2_type}}}
... ...
{{{telescope30_name}}} {{{telescope30_type}}}
{{{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]

Template:UF-hcard-geo

Tracking categories[edit]

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: <span class="geo-dms" title="Maps, satellite and other data for Expression error: Unexpected < operator.°Expression error: Unrecognized word "lat". Expression error: Unexpected < operator.°Expression error: Unrecognized word "long".">Expression error: Unexpected < operator.°Expression error: Unrecognized word "lat". Expression error: Unexpected < operator.°Expression error: Unrecognized word "long".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 (YYYY-MM-DD)", "type": "content", "default": "Wikidata: date of official opening (P1619)" }, "closed": { "label": "Closed", "example": " Expression error: Unrecognized word "dd"., YYYY (YYYY-MM-DD)", "type": "content", "default": "Wikidata: end time (P582)" }, "website": { "label": "Website", "description": "URL of the website for the observatory", "example": "example.com", "type": "content", "default": "Wikidata: official website (P856)" }, "architect": { "label": "Architect", "type": "string" }, "architecture_firm": { "label": "Architecture firm", "type": "string" }, "main_contractor": { "label": "Main contractor", "type": "string" }, "telescope1_name": { "label": "Telescope 1 name", "type": "string" }, "telescope1_type": { "label": "Telescope 1 type", "description": "First telescope's type (and any additional information)", "type": "string" }, "telescope2_name": { "label": "Telescope 2 name", "type": "string" }, "telescope2_type": { "label": "Telescope 2 type", "description": "Second telescope's type (and any additional information)", "type": "string" }, "commons_category": { "label": "Commons category", "description": "Category name at Wikimedia Commons", "default": "Wikidata link on Commons" }, "telescope3_name": { "label": "Telescope 3 name", "type": "string" }, "telescope3_type": { "label": "Telescope 3 type", "example": "Third telescope's type (and any additional information)", "type": "string" } }, "maps": { "Test": {} }, "paramOrder": [ "name", "image", "caption", "alt", "logo", "logo_caption", "logo_alt", "alt_names", "namedafter", "organization", "code", "location", "coordinates", "altitude", "weather", "obs-time", "established", "closed", "website", "architect", "architecture_firm", "main_contractor", "telescope1_name", "telescope1_type", "telescope2_name", "telescope2_type", "telescope3_name", "telescope3_type", "commons_category" ], "format": "block" } </templatedata>