Difference between revisions of "Template:Infobox observatory/doc"
Jump to navigation
Jump to search
imported>Mike Peel (+ telescopes) |
imported>Mike Peel (Update) |
||
| Line 32: | Line 32: | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
{{Infobox observatory | {{Infobox observatory | ||
| − | |name | + | |name = |
| − | |||
|image = | |image = | ||
|caption = | |caption = | ||
| Line 61: | Line 60: | ||
! Parameter !! Default !! Description | ! Parameter !! Default !! Description | ||
|- | |- | ||
| − | | '''name''' || || The name of the observatory | + | | '''name''' || Page name || The name of the observatory. |
| − | |||
| − | |||
|- | |- | ||
| image || {{wdp|P18}} || The image for the infobox (use full wikicode). | | image || {{wdp|P18}} || The image for the infobox (use full wikicode). | ||
|- | |- | ||
| − | | caption || || A caption for the image. | + | | caption || — || A caption for the image. |
|- | |- | ||
| organization || {{wdp|P137}} || The organization responsible for the observatory. | | organization || {{wdp|P137}} || The organization responsible for the observatory. | ||
| Line 73: | Line 70: | ||
| code || || Observatory code. | | code || || Observatory code. | ||
|- | |- | ||
| − | | location || || The observatory's location. | + | | location || {{wdp|P276}} || The observatory's location. |
|- | |- | ||
| − | | coords || || Location coordinates. Use {{tl|coord}} with ''display=inline,title'' | + | | coords || {{wdp|P625}} || Location coordinates. Use {{tl|coord}} with ''display=inline,title'' |
|- | |- | ||
| − | | altitude || || The altitude of the observatory. | + | | altitude || {{wdp|P2044}} || The altitude of the observatory. |
|- | |- | ||
| established || || When the observatory was established. Use {{Tl|Start date}} | | established || || When the observatory was established. Use {{Tl|Start date}} | ||
| Line 83: | Line 80: | ||
| closed || || When the observatory was closed, if appropriate. | | closed || || When the observatory was closed, if appropriate. | ||
|- | |- | ||
| − | | telescopes || {{wdp|P527}} | Names of the telescopes at the observatory | + | | telescopes || {{wdp|P527}} || Names of the telescopes at the observatory |
|- | |- | ||
| website || {{wdp|P856}} || The URL of the website for the observatory. Use {{tl|URL}} | | website || {{wdp|P856}} || The URL of the website for the observatory. Use {{tl|URL}} | ||
| Line 104: | Line 101: | ||
|- | |- | ||
| telescope30_type || || Thirtieth telescope's type (and any additional information). | | telescope30_type || || Thirtieth telescope's type (and any additional information). | ||
| + | |- | ||
| + | | ''commons'' || {{wdp|P373}} || The appropriate page or category name at Wikimedia Commons | ||
|} | |} | ||
Revision as of 18:30, 29 January 2016
| 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. |
Usage
Simple
{{Infobox observatory}}
Data will be automatically included from Wikidata.
Full
| [[File:{{{image}}}|frameless|upright=1]] {{{caption}}} | |||||||||
| Alternative names | Script error: No such module "Wikidata".Script error: No such module "EditAtWikidata". | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Organization | {{{organization}}} | ||||||||
| Observatory code | {{{code}}} | ||||||||
| Location | Lua error in Module:WikidataIB at line 1528: attempt to index field 'wikibase' (a nil value). | ||||||||
| Coordinates | {{{coords}}} | ||||||||
| Altitude | {{{altitude}}} | ||||||||
| Weather | {{{weather}}} | ||||||||
| Established | {{{established}}} | ||||||||
| Closed | {{{closed}}} | ||||||||
| Website | {{{website}}} | ||||||||
| Telescopes | |||||||||
| |||||||||
| Template:Wikidata location map | |||||||||
{{Infobox observatory
|name =
|image =
|caption =
|organization =
|code =
|location =
|coords = <!-- {{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
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 | Page name | The name of the observatory. |
| image | Template:Wdp | The image for the infobox (use full wikicode). |
| caption | — | A caption for the image. |
| organization | Template:Wdp | The organization responsible for the observatory. |
| code | Observatory code. | |
| location | Template:Wdp | The observatory's location. |
| coords | Template:Wdp | Location coordinates. Use {{coord}} with display=inline,title |
| altitude | Template:Wdp | The altitude of the observatory. |
| established | When the observatory was established. Use {{Start date}} | |
| closed | When the observatory was closed, if appropriate. | |
| telescopes | Template:Wdp | Names of the telescopes at the observatory |
| website | Template:Wdp | 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). | |
| commons | Template:Wdp | The appropriate page or category name at Wikimedia Commons |
Examples of use
Microformat
See also
Template:Organization infoboxes