Template:Infobox observatory/doc

From The Democratikan Wiki
Revision as of 15:05, 18 May 2023 by wikipedia>WOSlinker (syntaxhighlight lang="wikitext")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Simple

<syntaxhighlight lang="wikitext">

Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Alternative namesLua error in package.lua at line 80: module 'Module:i18n' not found.
Named afterLua error in package.lua at line 80: module 'Module:i18n' not found.
OrganizationLua error in package.lua at line 80: module 'Module:i18n' not found.
Observatory codeLua error in package.lua at line 80: module 'Module:i18n' not found.
LocationLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., {{#Property:P17|from=Lua error in package.lua at line 80: module 'Module:i18n' not found. }} Template:EditAtWikidata
CoordinatesLua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).
AltitudeP2044Template:EditAtWikidata
Observing timeLua error in package.lua at line 80: module 'Module:i18n' not found.
EstablishedLua error in package.lua at line 80: module 'Module:i18n' not found.
ClosedLua error in package.lua at line 80: module 'Module:i18n' not found.
WebsiteTemplate:UrlTemplate:EditAtWikidata
TelescopesLua error in package.lua at line 80: module 'Module:i18n' not found.
Commercial telescopesLua error in package.lua at line 80: module 'Module:i18n' not found.
 File:Commons-logo.svg Lua error in Module:Commons_link at line 63: attempt to index field 'wikibase' (a nil value).

</syntaxhighlight>

Data will be automatically included from Wikidata.

Full

{{{name}}}
Lua error in package.lua at line 80: module 'Module:i18n' not found.
{{{caption}}}
Lua error in package.lua at line 80: module 'Module:i18n' not found.
{{{logo_caption}}}
Alternative namesLua error in package.lua at line 80: module 'Module:i18n' not found.
Named afterLua error in package.lua at line 80: module 'Module:i18n' not found.
OrganizationLua error in package.lua at line 80: module 'Module:i18n' not found.
Observatory codeLua error in package.lua at line 80: module 'Module:i18n' not found.
Location{{{location}}}
Coordinates{{{coordinates}}}
Altitude{{{altitude}}}
Weather{{{weather}}}
Observing time{{{obs-time}}}
EstablishedLua error in package.lua at line 80: module 'Module:i18n' not found.
ClosedLua error in package.lua at line 80: module 'Module:i18n' not found.
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}}}
 File:Commons-logo.svg [[Commons:Category:{{{commons_category}}}|Related media on Commons]]

<syntaxhighlight lang="wikitext" style="overflow:auto">

Lua error in package.lua at line 80: module 'Module:i18n' not found.
Lua error in package.lua at line 80: module 'Module:i18n' not found.
Alternative namesLua error in package.lua at line 80: module 'Module:i18n' not found.
Named afterLua error in package.lua at line 80: module 'Module:i18n' not found.
OrganizationLua error in package.lua at line 80: module 'Module:i18n' not found.
Observatory codeLua error in package.lua at line 80: module 'Module:i18n' not found.
LocationLua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., Lua error in package.lua at line 80: module 'Module:i18n' not found., {{#Property:P17|from=Lua error in package.lua at line 80: module 'Module:i18n' not found. }} Template:EditAtWikidata
CoordinatesLua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).
EstablishedLua error in package.lua at line 80: module 'Module:i18n' not found.
ClosedLua error in package.lua at line 80: module 'Module:i18n' not found.
TelescopesLua error in package.lua at line 80: module 'Module:i18n' not found.
Commercial telescopesLua error in package.lua at line 80: module 'Module:i18n' not found.
 File:Commons-logo.svg Lua error in Module:Commons_link at line 63: attempt to index field 'wikibase' (a nil value).

</syntaxhighlight>

Parameters

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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P18) image (use full wikicode)
caption Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P138) person or organisation the observatory was named after
organization Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P137) organization responsible for the observatory
code Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P717) observatory code
location Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P706), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P276), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P131), Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P17) (fallback to Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P30) for Antarctica) observatory's location
coordinates Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P625) location coordinates, use {{coord}} with display=inline,title
altitude Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P2044) altitude of the observatory
weather weather
obs-time Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P3891) observing time available
established Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P1619) when the observatory was established, use {{start date}}
closed Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P582) when the observatory was closed, if appropriate
telescopes Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (P527) names of the telescopes at the observatory
website Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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 Lua error in Module:Wd at line 621: attempt to index field 'wikibase' (a nil value). (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

Infoboxes which only use Wikidata (no local parameters)

Microformat

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

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

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

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

Tracking categories

See also


TemplateData

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
Locationlocation

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