Difference between revisions of "Template:Infobox observatory"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Mike Peel (update location code to match infobox telescope) |
imported>Shkuru Afshar |
||
| Line 121: | Line 121: | ||
| below = {{#ifeq:{{{fetchwikidata|ALL}}}|NONE||{{EditOnWikidata|qid={{{qid|}}}}}}} | | below = {{#ifeq:{{{fetchwikidata|ALL}}}|NONE||{{EditOnWikidata|qid={{{qid|}}}}}}} | ||
| − | }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin|refs}}|[[Category:Articles using Infobox observatory using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude> | + | }}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin|refs}}|[[Category:Articles using Infobox observatory using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly> |
| + | {{#invoke:Check for unknown parameters | check | unknown={{main other|}}| preview = Page using [[Template:Infobox observatory]] with unknown parameter "_VALUE_" |ignoreblank=y | name | type | image | logo | caption | designer | design_date | manufacturer | production_date | superseded | superseded_by | superseded_by_date | weight | length | diameter | width | height | hotplug | daisy_chain | external | electrical | earth | maximum_voltage | maximum_current | audio_signal | video_signal | data_signal | data_bit_width | data_bandwidth | data_devices | data_style | cable | high_freq | physical_connector | passband | num_pins | shell | hooks | pinout_col1_name | pinout_col2_name | pinout_image | pinout_caption | pinout_image2 | pinout_caption2 | pin1 | pin1_name | pin2 | pin2_name | pin3 | pin3_name | pin4 | pin4_name | pin5 | pin5_name | pin6 | pin6_name | pin7 | pin7_name | pin8 | pin8_name | pin9 | pin9_name | pin10 | pin10_name | pin11 | pin11_name | pin12 | pin12_name | pin13 | pin13_name | pin14 | pin14_name | pin15 | pin15_name | pin16 | pin16_name | pin17 | pin17_name | pin18 | pin18_name | pin19 | pin19_name | pin20 | pin20_name | pin21 | pin21_name | pin22 | pin22_name | pin23 | pin23_name | pin24 | pin24_name | pin25 | pin25_name | pin26 | pin26_name | pin27 | pin27_name | pin28 | pin28_name | pin29 | pin29_name | pin30 | pin30_name | pin31 | pin31_name | pin32_name | pin32 | pin33 | pin33_name | pin34_name | pin34 | pin35_name | pin35 | pin36_name | pin36 | pin37_name | pin37 | pin38_name | pin38 | pin39_name | pin39 | pin40_name | pin40| pin_custom1_name | pin_name_custom1 | pin_custom1 | pin_custom2_name | pin_name_custom2 | pin_custom2 | pin_custom3_name | pin_name_custom3 | pin_custom3 | pin_custom4_name | pin_name_custom4 | pin_custom4 | pin_custom5_name | pin_name_custom5 | pin_custom5 | pin_custom6_name | pin_name_custom6 | pin_custom6 | pin_custom7_name | pin_name_custom7 | pin_custom7 | pin_custom8_name | pin_name_custom8 | pin_custom8 | pinout_notes | demo | nocat | categories }} <noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
Revision as of 07:46, 11 January 2021
| Alternative names | Script error: No such module "Wikidata".Script error: No such module "EditAtWikidata". |
|---|---|
| Location | Lua error in Module:WikidataIB at line 1528: attempt to index field 'wikibase' (a nil value). |
| Coordinates | Lua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value). |
| Website | Template:UrlScript error: No such module "EditAtWikidata". |
| Template:Wikidata location map | |
[[Category:Infobox templates|Template:Remove first word]]
| 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
| The above documentation is transcluded from Template:Infobox observatory/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |