Difference between revisions of "Template:Infobox observatory/doc"
Jump to navigation
Jump to search
imported>DixonDBot m (Migrating 13 interwiki links, now provided by Wikidata on d:Q5613278) |
imported>Shkuru Afshar |
||
| (29 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Documentation subpage}} |
| + | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| + | {{Lua|Module:Check for unknown parameters|Module:Coordinates|Module:InfoboxImage|Module:Location map|Module:String|Module:Wikidata|Module:WikidataIB|Module:Check for unknown parameters}} | ||
| + | {{Uses Wikidata|section=Parameters}} | ||
| + | |||
== Usage == | == Usage == | ||
| + | === Simple === | ||
| + | <pre>{{Infobox observatory}}</pre> | ||
| + | |||
| + | Data will be automatically included from Wikidata. | ||
| + | |||
| + | === Full === | ||
| + | {{Infobox observatory | ||
| + | | name = {{{name}}} | ||
| + | | image = {{{image}}} | ||
| + | | caption = {{{caption}}} | ||
| + | | alt = {{{alt}}} | ||
| + | | logo = {{{logo}}} | ||
| + | | logo_caption = {{{logo_caption}}} | ||
| + | | logo_alt = {{{logo_alt}}} | ||
| + | | alt_names = {{{alt_names}}} | ||
| + | | namedafter = {{{namedafter}}} | ||
| + | | organization = {{{organization}}} | ||
| + | | code = {{{code}}} | ||
| + | | location = {{{location}}} | ||
| + | | coordinates = {{{coordinates}}} | ||
| + | | altitude = {{{altitude}}} | ||
| + | | weather = {{{weather}}} | ||
| + | | obs-time = {{{obs-time}}} | ||
| + | | established = {{{established}}} | ||
| + | | closed = {{{closed}}} | ||
| + | | website = {{{website}}} | ||
| + | | architect = {{{architect}}} | ||
| + | | architecture_firm = {{{architecture_firm}}} | ||
| + | | main_contractor = {{{main_contractor}}} | ||
| + | | telescope1_name = {{{telescope1_name}}} | ||
| + | | telescope1_type = {{{telescope1_type}}} | ||
| + | | telescope2_name = {{{telescope2_name}}} | ||
| + | | telescope2_type = {{{telescope2_type}}} | ||
| + | | telescope3_name = ... | ||
| + | | telescope3_type = ... | ||
| + | | telescope30_name= {{{telescope30_name}}} | ||
| + | | telescope30_type= {{{telescope30_type}}} | ||
| + | | commons_category = {{{commons_category}}} | ||
| + | }} | ||
| + | |||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{Infobox observatory | {{Infobox observatory | ||
| − | |name | + | | name = |
| − | | | + | | image = |
| − | | | + | | caption = |
| − | | | + | | alt = |
| − | |organization | + | | logo = |
| − | |code | + | | logo_caption = |
| − | |location | + | | logo_alt = |
| − | | | + | | alt_names = |
| − | |altitude | + | | namedafter = |
| − | |weather | + | | organization = |
| − | |established | + | | code = |
| − | |closed | + | | location = |
| − | |website | + | | coordinates = <!-- {{Coord|LAT|LONG|type:landmark|display=inline,title}} --> |
| − | |telescope1_name = | + | | altitude = |
| − | |telescope1_type = | + | | weather = |
| − | |telescope2_name = | + | | obs-time = |
| − | |telescope2_type = | + | | established = <!-- {{Start date|YYYY|MM|DD}} --> |
| − | |telescope3_name = | + | | closed = |
| − | |telescope3_type = | + | | website = <!-- {{URL|example.com}} --> |
| − | |telescope4_name = | + | | architect = |
| − | |telescope4_type = | + | | architecture_firm = |
| + | | main_contractor = | ||
| + | | telescope1_name = | ||
| + | | telescope1_type = | ||
| + | | telescope2_name = | ||
| + | | telescope2_type = | ||
| + | | telescope3_name = | ||
| + | | telescope3_type = | ||
| + | | telescope4_name = | ||
| + | | telescope4_type = | ||
| + | | commons_category = | ||
}} | }} | ||
</pre> | </pre> | ||
| − | + | ||
| − | + | ===Parameters=== | |
| − | + | This template returns values from [[Wikidata]] where they are available; these values can be overridden by passing values to the relevant parameters. | |
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{| class="wikitable" | {| class="wikitable" | ||
| − | ! Parameter !! Description</ | + | ! Parameter !! Default !! Description |
| − | |colspan="2" | + | |- |
| + | | '''name''' || Wikidata label (en)<br />(Or Page name) || name of the observatory | ||
| + | |- | ||
| + | | image || {{Wikidata entity link|P18}} || image (use full wikicode) | ||
| + | |- | ||
| + | | caption || {{Wikidata entity link|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'' || {{Wikidata entity link|P138}} || person or organisation the observatory was named after | ||
| + | |- | ||
| + | | organization || {{Wikidata entity link|P137}} || organization responsible for the observatory | ||
| + | |- | ||
| + | | code || {{Wikidata entity link|P717}} || observatory code | ||
| + | |- | ||
| + | <!--NOT IN TEMPLATE | abbreviation || {{Wikidata entity link|P1813}} || abbreviation | ||
| + | |- --> | ||
| + | | location || {{Wikidata entity link|P706}}, {{Wikidata entity link|P276}}, {{Wikidata entity link|P131}}, {{Wikidata entity link|P17}} (fallback to {{Wikidata entity link|P30}} for Antarctica) || observatory's location | ||
| + | |- | ||
| + | | coordinates || {{Wikidata entity link|P625}} || location coordinates, use {{tl|coord}} with ''display=inline,title'' | ||
| + | |- | ||
| + | | altitude || {{Wikidata entity link|P2044}} || altitude of the observatory | ||
| + | |- | ||
| + | | weather || || weather | ||
| + | |- | ||
| + | | obs-time || {{Wikidata entity link|P3891}} || observing time available | ||
| + | |- | ||
| + | | established || {{Wikidata entity link|P1619}} || when the observatory was established, use {{Tl|start date}} | ||
| + | |- | ||
| + | | closed || {{Wikidata entity link|P582}} || when the observatory was closed, if appropriate | ||
| + | |- | ||
| + | | telescopes || {{Wikidata entity link|P527}} || names of the telescopes at the observatory | ||
| + | |- | ||
| + | | website || {{Wikidata entity link|P856}} || URL of the website for the observatory, use {{tl|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) | ||
| + | |- | ||
| + | |colspan="2"| ''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'' || {{Wikidata entity link|P17}} || use this parameter to override the location map shown, if necessary. See {{tl|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== | ==Examples of use== | ||
* [[Kitt Peak National Observatory]] | * [[Kitt Peak National Observatory]] | ||
| − | * [[Mauna Kea Observatory]] | + | * [[Mauna Kea Observatories]] |
| + | ;Infoboxes which only use [[Wikidata]] (no local parameters): | ||
| + | * [[Arcetri Observatory]] | ||
| + | * [[CERGA Observatory]] | ||
| − | ==Microformat== | + | == Microformat == |
{{UF-hcard-geo}} | {{UF-hcard-geo}} | ||
| − | ==See also== | + | == Tracking categories == |
| + | * {{clc|Articles using Infobox observatory using locally defined parameters}} | ||
| + | * {{clc|Articles with infoboxes completely from Wikidata}} | ||
| + | |||
| + | == See also == | ||
{{Organization infoboxes}} | {{Organization infoboxes}} | ||
| + | {{Buildings and structures infobox templates}} | ||
| − | <includeonly> | + | <includeonly>{{sandbox other|| |
| − | [[Category:Astronomy infobox templates | + | <!-- Categories below this line, please; interwikis at Wikidata --> |
| − | [[Category: | + | {{DEFAULTSORT:Observatory}} |
| − | [[Category: | + | [[Category:Astronomy infobox templates]] |
| − | [[Category: | + | [[Category:Buildings and structures infobox templates]] |
| − | + | [[Category:Organization infobox templates]] | |
| − | < | + | [[Category:Technology and applied science infobox templates]] |
| − | + | [[Category:Embeddable templates|{{PAGENAME}}]]<!--override DEFAULTSORT--> | |
| − | < | + | [[Category:Infobox templates using Wikidata|{{PAGENAME}}]]<!--override DEFAULTSORT--> |
| − | [[ | + | [[Category:Templates that add a tracking category|{{PAGENAME}}]]<!--override DEFAULTSORT--> |
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 07:46, 11 January 2021
| This is a documentation subpage for Template:Infobox observatory. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
Usage
Simple
{{Infobox observatory}}
Data will be automatically included from Wikidata.
Full
| [[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1|{{{alt}}}]] {{{caption}}} | |||||||||
| [[File:{{{logo}}}|frameless|alt={{{logo_alt}}}|upright=1|{{{logo_alt}}}]] {{{logo_caption}}} | |||||||||
| Alternative names | {{{alt_names}}} | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Named after | {{{namedafter}}} | ||||||||
| Organization | {{{organization}}} | ||||||||
| Observatory code | {{{code}}} | ||||||||
| Location | Lua error in Module:WikidataIB at line 1528: attempt to index field 'wikibase' (a nil value). | ||||||||
| 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 | |||||||||
| |||||||||
| Template:Wikidata location map | |||||||||
| {{{commons_category}}} | |||||||||
{{Infobox observatory
| 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 =
}}
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 196: attempt to index field 'wikibase' (a nil value). (P18) | image (use full wikicode) |
| caption | Lua error in Module:Wd at line 196: 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 196: 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 196: attempt to index field 'wikibase' (a nil value). (P137) | organization responsible for the observatory |
| code | Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P717) | observatory code |
| location | Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P706), Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P276), Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P131), Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P17) (fallback to Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P30) for Antarctica) | observatory's location |
| coordinates | Lua error in Module:Wd at line 196: 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 196: attempt to index field 'wikibase' (a nil value). (P2044) | altitude of the observatory |
| weather | weather | |
| obs-time | Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P3891) | observing time available |
| established | Lua error in Module:Wd at line 196: 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 196: attempt to index field 'wikibase' (a nil value). (P582) | when the observatory was closed, if appropriate |
| telescopes | Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P527) | names of the telescopes at the observatory |
| website | Lua error in Module:Wd at line 196: 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 196: 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
Tracking categories
- Category:Articles using Infobox observatory using locally defined parameters (0)
- Category:Articles with infoboxes completely from Wikidata (0)
See also
Template:Organization infoboxes