Difference between revisions of "Template:Infobox telescope/doc"
Jump to navigation
Jump to search
(Added doc for diameter2 and diameter3 arguments.) |
imported>Cherkash m (→Usage) |
||
(104 intermediate revisions by 32 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Documentation subpage}} |
+ | <!-- Please place template categories where indicated at the bottom of this page --> | ||
+ | {{Lua|Module:Check for unknown parameters|Module:InfoboxImage|Module:Wikidata|Module:WikidataIB}} | ||
+ | {{Uses Wikidata|P18|P131|P137|P276|P361|P571|P576|P856|P625|P706|P717|P1365|P1366|P2043|P2044|P2049|P2096|P2386|P2808|P3737|P3738|P3439}} | ||
− | + | {{hatnote|For space-based telescopes, use: {{tl|Infobox space telescope}}.}} | |
+ | {{Generic template demo | name | image | caption | organization | observatory | location | coords | altitude | wavelength | built | first_light | style | diameter | diameter2 | diameter3 | angular_resolution | area | focal_length | mounting | dome | website | commons}} | ||
== Usage == | == Usage == | ||
− | + | Just add: | |
− | + | <pre>{{infobox telescope}}</pre> | |
− | <pre> | + | to the top of an article, and data will be automatically included from [[Wikidata]] where they are available. These values can be overridden by passing values to the relevant parameters in the article (if need be), e.g.: |
− | {{ | + | <pre style="overflow:auto"> |
− | + | {{infobox telescope | |
− | + | | name = | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
− | |||
− | + | The full list of parameters is: | |
− | |||
{| class="wikitable" | {| class="wikitable" | ||
− | ! Parameter !! Description | + | ! Parameter !! Default !! Description |
+ | |- | ||
+ | | ''name'' || Wikidata label (en)<br />(Or Page name) || Telescope's name. | ||
+ | |- | ||
+ | | ''image'' || {{Wikidata entity link|P18}} || Picture of the telescope (use full wikicode). | ||
+ | |- | ||
+ | | ''caption'' || {{Wikidata entity link|P18}}, qualifier {{Wikidata entity link|P2096}} || Picture caption (if necessary). | ||
+ | |- | ||
+ | | ''logo'' || {{Wikidata entity link|P154}} || Logo | ||
+ | |- | ||
+ | | ''alt_names'' || {{Wikidata entity link|P1813}}, fallback to Wikidata aliases (en) || Alternative names / aliases for the telescope | ||
+ | |- | ||
+ | | ''namedafter'' || {{Wikidata entity link|P138}} || Person or organisation the telescope was named after | ||
+ | |- | ||
+ | | ''discovered'' || {{Wikidata entity link|P793}}, {{Wikidata entity link|Q753297}}, qualifier {{Wikidata entity link|P642}} || What the telescope was used to discover | ||
+ | |- | ||
+ | | ''organization'' || {{Wikidata entity link|P137}} || Organization responsible for telescope. | ||
+ | |- | ||
+ | | ''observatory'' || {{Wikidata entity link|P361}} || Observatory where the telescope is based | ||
+ | |- | ||
+ | | ''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) || Telescope's location. | ||
+ | |- | ||
+ | | ''coords'' || {{Wikidata entity link|P625}} || Telescope's coordinates. Use {{tl|coord}} with ''display=inline,title'' and the correct [[ISO 3166-2]] region code. | ||
+ | |- | ||
+ | | ''code'' || {{Wikidata entity link|P717}} || Observatory code | ||
+ | |- | ||
+ | | ''altitude'' || {{Wikidata entity link|P2044}} || Height of the telescope above sea-level. Use meters. | ||
+ | |- | ||
+ | | ''obs-time'' || {{Wikidata entity link|P3891}} || Observing time available on the site. For optical telescopes, the percentage or number of clear nights (or days). For radio telescopes, the percentage or number of clear days, or the total number of observable hours per year. | ||
+ | |- | ||
+ | | ''wavelength'' || {{Wikidata entity link|P3738}}–{{Wikidata entity link|P3737}}<br />Or {{Wikidata entity link|P2808}} or {{Wikidata entity link|P1227}} || Wavelengths on which the telescope operates. | ||
+ | |- | ||
+ | | ''built'' || {{Wikidata entity link|P793}}, qualifiers {{Wikidata entity link|P580}} & {{Wikidata entity link|P582}} || Dates of construction. | ||
+ | |- | ||
+ | | ''first_light'' || {{Wikidata entity link|P729}} || Date of telescope's first (celestial) observation. Use {{tl|Start date}} | ||
+ | |- | ||
+ | | ''decommissioned'' || {{Wikidata entity link|P576}} || Date that the telescope was decommissioned | ||
+ | |- | ||
+ | | ''style'' || {{Wikidata entity link|P31}} || Telescope's style (type), e.g. Ritchey–Chrétien, Gregorian, Refractor | ||
+ | |- | ||
+ | | ''number'' || {{Wikidata entity link|P2670}}, qualifier {{Wikidata entity link|Q4213}}, {{wikidata entity link|P1114}} || Number of telescopes/elements | ||
|- | |- | ||
− | | '''' | + | | ''diameter'' || {{Wikidata entity link|P2386}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q613628}} || Telescope's primary mirror/lens diameter. |
− | | | + | |- |
− | | '' | + | | ''diameter2'' || {{Wikidata entity link|P2386}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q1395645}} || Telescope's secondary mirror diameter. |
− | | '' | + | |- |
− | | | + | | ''diameter3'' || {{Wikidata entity link|P2386}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q29531156}} || Telescope's tertiary mirror diameter (if any). |
− | + | |- | |
− | | '' | + | | ''illuminateddiameter'' || {{Wikidata entity link|P2386}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q40782571}} || The illuminated diameter of the telescope |
− | | | + | |- |
− | | | + | | ''length'' || {{Wikidata entity link|P2043}} || Telescope's length (if not circular) |
− | | '' | + | |- |
− | | | + | | ''width'' || {{Wikidata entity link|P2049}} || Telescope's width (if not circular) |
− | + | |- | |
− | | '' | + | | ''mass'' || {{Wikidata entity link|P2067}} || Mass/weight of the structure |
− | | '' | + | |- |
− | | | + | | ''angular_resolution'' || {{Wikidata entity link|P3439}} || Telescope's [[angular resolution]]. |
− | | '' | + | |- |
− | | | + | | ''area'' || {{Wikidata entity link|P2046}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q613628}} || Telescope's collecting area. |
− | | ''area'' || Telescope's collecting area. | + | |- |
− | | ''focal_length'' || Telescope's [[focal length]], e.g. "f/3.3 (16.76 m)". | + | | ''illuminatedarea'' || {{Wikidata entity link|P2046}}, (value), qualifier {{Wikidata entity link|P518}} {{Wikidata entity link|Q40782571}} || The illuminated area of the telescope |
− | | ''mounting'' || Telescope's [[Telescope mount|mounting]], e.g. [[Equatorial mount|Equatorial]] or [[Altazimuth mount|Altazimuth]]. | + | |- |
− | | ''dome'' || Information about the telescope's dome. | + | | ''focal_length'' || {{Wikidata entity link|P2151}} || Telescope's [[focal length]], e.g. "f/3.3 (16.76 m)". |
− | | ''website'' || The URL of the telescope's website. | + | |- |
+ | | ''mounting'' || {{Wikidata entity link|P2670}} {{Wikidata entity link|Q1205231}}, qualifier {{Wikidata entity link|P31}} || Telescope's [[Telescope mount|mounting]], e.g. [[Equatorial mount|Equatorial]] or [[Altazimuth mount|Altazimuth]]. | ||
+ | |- | ||
+ | | ''dome'' || {{Wikidata entity link|P3158}} || Information about the telescope's dome. | ||
+ | |- | ||
+ | | ''replaced'' || {{Wikidata entity link|P1365}} || The telescope that this telescope replaced | ||
+ | |- | ||
+ | | ''replacedby'' || {{Wikidata entity link|P1366}} || The telescope that replaced this telescope | ||
+ | |- | ||
+ | | ''website'' || {{Wikidata entity link|P856}} || The URL of the telescope's website. use {{tl|URL}} | ||
+ | |- | ||
+ | | ''locmapin'' || {{Wikidata entity link|P17}} || Use this parameter to override the location map shown if necessary. See {{tl|Wikidata location map}}. | ||
+ | |- | ||
+ | | ''commons'' || commons sitelink || 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 | ||
|} | |} | ||
− | == Coordinates == | + | ==Template data== |
− | {{ | + | {{show |
+ | | Click the [show] link to the right to display the [[Wikipedia:TemplateData|TemplateData]]. | ||
+ | | | ||
+ | {{TemplateData header|nolink=1}} | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "name": { | ||
+ | "label": "Name", | ||
+ | "description": "Telescope's name", | ||
+ | "type": "wiki-page-name" | ||
+ | }, | ||
+ | "image": { | ||
+ | "label": "Image", | ||
+ | "description": "Picture of the telescope", | ||
+ | "example": "[[File:Filename.jpg|250px|alt=Describe the image here.]]", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "image_size": { | ||
+ | "label": "Image size", | ||
+ | "description": "Dimensions of image thumbnail", | ||
+ | "example": "250px", | ||
+ | "type": "string", | ||
+ | "deprecated": true | ||
+ | }, | ||
+ | "alt": { | ||
+ | "label": "Alternative text", | ||
+ | "description": "Alternative text for image thumbnail", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "caption": { | ||
+ | "label": "Image caption", | ||
+ | "description": "Caption describing the image", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "organization": { | ||
+ | "aliases": [ | ||
+ | "organisation" | ||
+ | ], | ||
+ | "label": "Organization", | ||
+ | "description": "Organization responsible for telescope", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "location": { | ||
+ | "label": "Location", | ||
+ | "description": "Place where the telescope is located (in words)", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "coords": { | ||
+ | "label": "Coordinates", | ||
+ | "description": "Telescope's coordinates. Use {{coord}} with display=inline,title and the correct ISO 3166-2 region code.", | ||
+ | "example": "{{Coord|LAT|LON|type:landmark_region:XX|display=inline,title}}", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "altitude": { | ||
+ | "label": "Altitude", | ||
+ | "description": "Height of the telescope above sea-level; in meters.", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "wavelength": { | ||
+ | "label": "Wavelength", | ||
+ | "description": "Wavelengths on which the telescope operates", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "built": { | ||
+ | "label": "Built", | ||
+ | "description": "Dates of construction", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "first_light": { | ||
+ | "label": "First light", | ||
+ | "description": "Date of telescope's first (celestial) observation.", | ||
+ | "example": "{{start date|1993|02|24}}", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "style": {}, | ||
+ | "diameter": { | ||
+ | "label": "Diameter", | ||
+ | "description": "Telescope's primary mirror/lens diameter." | ||
+ | }, | ||
+ | "diameter2": { | ||
+ | "description": "Telescope's secondary mirror diameter." | ||
+ | }, | ||
+ | "diameter3": { | ||
+ | "description": "Telescope's tertiary mirror diameter (if any)." | ||
+ | }, | ||
+ | "angular_resolution": { | ||
+ | "label": "Angular resolution", | ||
+ | "description": "Telescope's angular resolution." | ||
+ | }, | ||
+ | "area": { | ||
+ | "label": "Collecting area", | ||
+ | "description": "Telescope's collecting area" | ||
+ | }, | ||
+ | "focal_length": { | ||
+ | "label": "Focal length", | ||
+ | "description": "Telescope's focal length", | ||
+ | "example": "f/3.3 (16.76 m)" | ||
+ | }, | ||
+ | "mounting": { | ||
+ | "label": "Mounting", | ||
+ | "description": "Telescope's mounting, e.g. Equatorial or Altazimuth." | ||
+ | }, | ||
+ | "dome": { | ||
+ | "label": "Dome", | ||
+ | "description": "Information about the telescope's dome", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "website": { | ||
+ | "label": "Website", | ||
+ | "description": "The URL of the telescope's website", | ||
+ | "example": "{{{URL|example.com}}", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "nrhp": {}, | ||
+ | "embedded": {}, | ||
+ | "module": {}, | ||
+ | "commons": { | ||
+ | "label": "Commons", | ||
+ | "default": "The appropriate page or category name at Wikimedia Commons" | ||
+ | } | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "name", | ||
+ | "image", | ||
+ | "image_size", | ||
+ | "alt", | ||
+ | "caption", | ||
+ | "organization", | ||
+ | "location", | ||
+ | "coords", | ||
+ | "altitude", | ||
+ | "wavelength", | ||
+ | "built", | ||
+ | "first_light", | ||
+ | "diameter", | ||
+ | "diameter2", | ||
+ | "diameter3", | ||
+ | "angular_resolution", | ||
+ | "area", | ||
+ | "focal_length", | ||
+ | "mounting", | ||
+ | "dome", | ||
+ | "website", | ||
+ | "commons", | ||
+ | "nrhp", | ||
+ | "embedded", | ||
+ | "module", | ||
+ | "style" | ||
+ | ], | ||
+ | "format": "block", | ||
+ | "description": "Infobox describing a telescope. Data will be automatically included from Wikidata. Please use this by default - only specify individual parameters if you need to override them." | ||
+ | } | ||
+ | </templatedata> | ||
+ | }} | ||
== Microformat == | == Microformat == | ||
{{UF-hcard-geo}} | {{UF-hcard-geo}} | ||
− | <includeonly> | + | == Tracking categories == |
− | <!-- | + | * {{clc|Pages using infobox telescope with unknown parameters}} |
+ | * {{clc|Articles with infoboxes completely from Wikidata}} | ||
+ | * {{clc|Articles using Infobox telescope using locally defined parameters}} | ||
+ | |||
+ | == See also == | ||
+ | {{Buildings and structures infobox templates}} | ||
+ | {{Wikidata Infoboxes|state=expanded}} | ||
+ | |||
+ | <includeonly>{{Sandbox other|| | ||
+ | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Astronomy infobox templates|Telescope]] | [[Category:Astronomy infobox templates|Telescope]] | ||
− | [[Category: | + | [[Category:Buildings and structures infobox templates|Telescope]] |
− | + | [[Category:Technology and applied science infobox templates|Telescope]] | |
− | + | [[Category:Embeddable templates]] | |
− | [[ | + | [[Category:Infobox templates using Wikidata]] |
− | [[ | + | [[Category:Templates that add a tracking category]] |
− | [[ | + | }}</includeonly> |
− | |||
− | [[ | ||
− | </includeonly> |
Latest revision as of 22:48, 19 February 2021
![]() | This is a documentation subpage for Template:Infobox telescope. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
- redirect Template:Parameter names example
Usage
Just add:
{{infobox telescope}}
to the top of an article, and data will be automatically included from Wikidata where they are available. These values can be overridden by passing values to the relevant parameters in the article (if need be), e.g.:
{{infobox telescope | name = }}
The full list of parameters is:
Template data
Microformat
Tracking categories
- Category:Pages using infobox telescope with unknown parameters (0)
- Category:Articles with infoboxes completely from Wikidata (0)
- Category:Articles using Infobox telescope using locally defined parameters (0)
See also