Usage

edit

Simple

edit
{{Infobox observatory}}

Data will be automatically included from Wikidata.

Full

edit
{{{name}}}
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1.3]]
{{{caption}}}
[[File:{{{logo}}}|frameless|alt={{{logo_alt}}}|upright=1]]
{{{logo_caption}}}
Alternative names{{{alt_names}}}
Named after{{{namedafter}}}
Organization{{{organization}}}
Observatory code{{{code}}}
Location{{{___location}}}
Coordinates15°N 16°E / 15°N 16°E / 15; 16
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}}}
Map
  [[Commons:Category:{{{commons_category}}}|Related media on Commons]]
{{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          = 
| mapframe = yes<!-- see below for more parameters -->
| 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 image (P18) image (use full wikicode)
caption media legend (P2096) image caption
alt alt caption
logo logo image (P154) logo
logo_caption logo caption
logo_alt logo alt caption
alt_names Wikidata aliases (en) alternative names / aliases for the telescope
namedafter named after (P138) person or organisation the observatory was named after
organization operator (P137) organization responsible for the observatory
code Minor Planet Center observatory code (P717) observatory code
___location located in/on physical feature (P706), ___location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica) observatory's ___location
coordinates coordinate ___location (P625) ___location coordinates, use {{coord}} with display=inline,title
altitude elevation above sea level (P2044) altitude of the observatory
weather weather
obs-time observing time available (P3891) observing time available
established date of official opening (P1619) when the observatory was established, use {{start date}}
closed end time (P582) when the observatory was closed, if appropriate
telescopes has part(s) (P527) names of the telescopes at the observatory
website official 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 country (P17) use this parameter to override the ___location map shown, if necessary. See {{Wikidata ___location map}}
mapframe Show embedded {{Infobox mapframe}}. See below for more parameters.
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

Mapframe maps

edit
  • Basic parameters:
    • mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no, but also modified by onByDefault
      • Internal onByDefault parameter: yes, unless any of these are set: |map_type=, |image_map=
    • mapframe-caption – Caption for the map. Default: blank (or if |mapframe-geomask= is set, "Location in geomask's label")
    • mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, the subsequent mapframe parameters will be ignored. Default: not specified
    • mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
    • mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g. |coord={{Coord|12.34|N|56.78|E}}. Default: coordinates from Wikidata
    • mapframe-wikidata – Set to yes to show shape/line features from the wikidata item, if any, when |coord= is set. Default: not specified
  • Customise which features are displayed:
    • mapframe-point – Turn off display of point feature by setting to none. Force point marker to be displayed by setting to on. Default: not specified
    • mapframe-shape – Turn off display of shape feature by setting to none. Force display of shape by setting to on. Use an inverse shape (geomask) instead of a regular shape by setting to inverse. Default: not specified
    • mapframe-line – Turn off display of line feature by setting to none. Force display of line by setting to on. Default: not specified
    • mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country (P17), P131 for located in the administrative territorial entity (P131)). Default: not specified
    • mapframe-switcher – set to auto or geomasks or zooms to enable Template:Switcher-style switching between multiple mapframes. Default: not specified
      • auto – switch geomasks found in ___location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.
      • geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter
      • zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average
  • Other optional parameters:
    • mapframe-frame-width or mapframe-width – Frame width. Default: 270
    • mapframe-frame-height or mapframe-height – Frame height. Default: 200
    • mapframe-shape-fill – Color used to fill shape features. Default: #606060
    • mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.5
    • mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
    • mapframe-stroke-width – Width of line features, and outlines of shape features; default is "5". Default: 5
    • mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: not specified (i.e. blank)
      • Can also be set to blank to override any default marker symbol
    • mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
    • mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
    • mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 2
    • mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
    • mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.5
    • mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
    • mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified
    • mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
    • mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
    • mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified


Examples of use

edit
Infoboxes which only use Wikidata (no local parameters)

Microformat

edit

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and ___location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

edit

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

edit

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

edit

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

Tracking categories

edit

See also

edit


TemplateData

edit
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox observatory in articles based on its TemplateData.

TemplateData for Infobox observatory

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Auto value
Page name or Wikidata label
Linesuggested
Imageimage

no description

Default
Wikidata: image (P18)
Auto value
Filesuggested
Image captioncaption

no description

Default
Wikidata: media legend (P2096)
Lineoptional
Image alternative textalt

no description

Auto value
Stringoptional
Logologo

no description

Fileoptional
Logo captionlogo_caption

no description

Lineoptional
Logo alternative textlogo_alt

no description

Stringoptional
Alternative namesalt_names

no description

Default
Wikidata aliases
Stringoptional
Named afternamedafter

Person or organisation the observatory was named after

Default
Wikidata: named after (P138)
Lineoptional
Organizationorganization

Organization responsible for the observatory

Default
Wikidata: operator (P137)
Stringoptional
Observatory codecode

Minor Planet Center observatory code

Default
Wikidata: Minor Planet Center observatory code (P717)
Unknownoptional
Location___location

no description

Default
Wikidata: located on terrain feature (P706), ___location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica)
Lineoptional
Coordinatescoordinates

Location coordinates, use {{coord}} with display=inline,title

Default
Wikidata: coordinate ___location (P625)
Example
{{Coord|LAT|LONG|type:landmark|display=inline,title}}
Unknownoptional
Altitudealtitude

no description

Default
Wikidata: elevation above sea level (P2044)
Stringoptional
Weatherweather

no description

Unknownoptional
Observing timeobs-time

no description

Default
Wikidata: observing time available (P3891)
Unknownoptional
Establishedestablished

no description

Default
Wikidata: date of official opening (P1619)
Example
{{Start date|YYYY|MM|DD}}
Contentoptional
Closedclosed

no description

Default
Wikidata: end time (P582)
Example
{{End date|YYYY|MM|DD}}
Contentoptional
Websitewebsite

URL of the website for the observatory

Default
Wikidata: official website (P856)
Example
{{URL|example.com}}
Contentoptional
Architectarchitect

no description

Stringoptional
Architecture firmarchitecture_firm

no description

Stringoptional
Main contractormain_contractor

no description

Stringoptional
Telescope 1 nametelescope1_name

no description

Stringoptional
Telescope 1 typetelescope1_type

First telescope's type (and any additional information)

Stringoptional
Telescope 2 nametelescope2_name

no description

Stringoptional
Telescope 2 typetelescope2_type

Second telescope's type (and any additional information)

Stringoptional
Telescope 3 nametelescope3_name

no description

Stringoptional
Telescope 3 typetelescope3_type

no description

Example
Third telescope's type (and any additional information)
Stringoptional
Commons categorycommons_category

Category name at Wikimedia Commons

Default
Wikidata link on Commons
Unknownoptional
Show mapframe mapmapframe

Specify yes or no to show or hide the map, overriding the default

Default
no
Example
yes
Stringsuggested
Mapframe captionmapframe-caption

Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>"

Stringoptional
Custom mapframemapframe-custom

Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.

Templateoptional
Mapframe Wikidata itemmapframe-id id qid

Id (Q-number) of Wikidata item to use.

Default
(item for current page)
Stringoptional
Mapframe coordinates mapframe-coordinates mapframe-coord coordinates coord

Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.

Default
(coordinates from Wikidata)
Example
{{Coord|12.34|N|56.78|E}}
Templateoptional
Mapframe shapes from Wikidatamapframe-wikidata

et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter

Example
yes
Stringoptional
Mapframe point featuremapframe-point

Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on"

Stringoptional
Mapframe shape featuremapframe-shape

Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse"

Stringoptional
Mapframe widthmapframe-frame-width mapframe-width

Frame width in pixels

Default
270
Numberoptional
Mapframe heightmapframe-frame-height mapframe-height

Frame height in pixels

Default
200
Numberoptional
Mapframe shape fillmapframe-shape-fill

Color used to fill shape features

Default
#606060
Stringoptional
Mapframe shape fill opacitymapframe-shape-fill-opacity

Opacity level of shape fill, a number between 0 and 1

Default
0.5
Numberoptional
Mapframe stroke colormapframe-stroke-color mapframe-stroke-colour

Color of line features, and outlines of shape features

Default
#ff0000
Stringoptional
Mapframe stroke widthmapframe-stroke-width

Width of line features, and outlines of shape features

Default
5
Numberoptional
Mapframe markermapframe-marker

Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options

Example
museum
Stringoptional
Mapframe marker colormapframe-marker-color mapframe-marker-colour

Background color for the marker

Default
#5E74F3
Stringoptional
Mapframe geomaskmapframe-geomask

Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)

Example
Q100
Page nameoptional
Mapframe geomask stroke colormapframe-geomask-stroke-color mapframe-geomask-stroke-colour

Color of outline of geomask shape

Default
#555555
Stringoptional
Mapframe geomask stroke widthmapframe-geomask-stroke-width

Width of outline of geomask shape

Default
2
Numberoptional
Mapframe geomask fillmapframe-geomask-fill

Color used to fill outside geomask features

Default
#606060
Stringoptional
Mapframe geomask fill opacitymapframe-geomask-fill-opacity

Opacity level of fill outside geomask features, a number between 0 and 1

Default
0.5
Numberoptional
Mapframe zoommapframe-zoom

Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area

Default
10
Example
12
Numberoptional
Mapframe length (km)mapframe-length_km

Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Numberoptional
Mapframe length (mi)mapframe-length_mi

Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Numberoptional
Mapframe area (km^2)mapframe-area_km2

Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Numberoptional
Mapframe area (mi^2)mapframe-area_mi2

Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Numberoptional
Mapframe frame coordinatesmapframe-frame-coordinates mapframe-frame-coord

Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}

Example
{{Coord|12.35|N|56.71|E}}
Templateoptional
Mapframe switchermapframe-switcher

Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in ___location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average.

Stringoptional
mapframe-linemapframe-line

no description

Unknownoptional
Mapframe typemapframe-type

Type of the object rendered in the mapframe, like with {{coord}}.

Stringoptional