Template:Infobox observatory
This template uses Lua: |
Usage
[change source]Simple
[change source]{{Infobox observatory}}
Data will be automatically included from Wikidata.
Full
[change source][[File:{{{image}}}|frameless|upright=1]] | |||||||||
Organization | {{{organization}}} | ||||||||
---|---|---|---|---|---|---|---|---|---|
Observatory code | {{{code}}} | ||||||||
Location | {{{location}}} | ||||||||
Coordinates | {{{coordinates}}} | ||||||||
Altitude | {{{altitude}}} | ||||||||
Weather | {{{weather}}} | ||||||||
Established | {{{established}}} | ||||||||
Closed | {{{closed}}} | ||||||||
Website | {{{website}}} | ||||||||
Telescopes | |||||||||
| |||||||||
{{Infobox observatory | name = | image = | caption = | organization = | code = | abbreviation = | location = | coordinates = <!-- {{Coord|LAT|LONG|type:landmark|display=inline,title}} --> | altitude = | weather = | established = <!-- {{Start date|YYYY|MM|DD}} --> | closed = | website = <!-- {{URL|example.com}} --> | telescope1_name = | telescope1_type = | telescope2_name = | telescope2_type = | telescope3_name = | telescope3_type = | telescope4_name = | telescope4_type = }}
Parameters
[change source]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) |
The name of the observatory. |
image | image (P18) | The image for the infobox (use full wikicode). |
caption | media legend (P2096) | A caption for the image. |
alt_names | Wikidata aliases (en) | Alternative names / aliases for the telescope |
organization | operator (P137) | The organization responsible for the observatory. |
code | Minor Planet Center observatory code (P717) | Observatory code. |
abbreviation | short name (P1813) | Abbreviation |
namedafter | named after (P138) | Person or organisation the survey was named after |
location | located in/on physical feature (P706), location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica) | The observatory's location. |
coordinates | coordinate location (P625) | Location coordinates. Use {{coord}} with display=inline,title |
altitude | elevation above sea level (P2044) | The altitude of the observatory. |
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) | The URL of the website for the observatory. Use {{URL}} |
telescope1_name | The name of the observatory's first telescope. | |
telescope1_type | First telescope's type (and any additional information). | |
telescope2_name | The name of the observatory's second telescope. | |
telescope2_type | Second telescope's type (and any additional information). | |
etc.... | ||
telescope29_name | The name of the observatory's twenty-ninth telescope. | |
telescope29_type | Twenty-ninth telescope's type (and any additional information). | |
telescope30_name | The 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}}. |
commons | Commons category (P373) | The appropriate page or 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
[change source]Infoboxes which only use Wikidata (no local parameters):
Microformat
[change source]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
[change source]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
[change source]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
[change source]When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
Tracking categories
[change source]- Category:Articles using Infobox observatory using locally defined parameters (10)
- Category:Articles with infoboxes completely from Wikidata (554)
See also
[change source]- Infobox templates
- Lua-based templates
- Templates using data from Wikidata
- Templates generating hCards and Geo
- 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