ข้ามไปเนื้อหา

แม่แบบ:กล่องข้อมูล หอดูดาว/doc

จากวิกิพีเดีย สารานุกรมเสรี

การใช้งาน

[แก้]

Simple

[แก้]
{{Infobox observatory}}

Data will be automatically included from Wikidata.

Full

[แก้]
{{{name}}}
[[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1.3]]
{{{caption}}}
[[File:{{{logo}}}|frameless|alt={{{logo_alt}}}|upright=1]]
{{{logo_caption}}}
ชื่ออื่น{{{alt_names}}}
การตั้งชื่อตาม{{{namedafter}}}
หน่วยงาน{{{organization}}}
รหัสหอดูดาว{{{code}}}
ที่ตั้ง{{{location}}}
พิกัด15°N 16°E / 15°N 16°E / 15; 16
ระดับความสูง{{{altitude}}}
สภาพอากาศ{{{weather}}}
เวลาสังเกต{{{obs-time}}}
ก่อตั้ง{{{established}}}
ปิดตัว{{{closed}}}
เว็บไซต์{{{website}}}
สถาปนิก{{{architect}}}
บริษัทสถาปนิก{{{architecture_firm}}}
ผู้รับเหมาหลัก{{{main_contractor}}}
กล้องโทรทรรศน์
{{{telescope1_name}}}{{{telescope1_type}}}
{{{telescope2_name}}}{{{telescope2_type}}}
......
{{{telescope30_name}}}{{{telescope30_type}}}
แผนที่
  [[commons:Category:{{{commons_category}}}|สื่อที่เกี่ยวข้องบนคอมมอนส์]]
{{Infobox observatory
| child             = 
| 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  = 
| image_map         = 
| map_size          = 
| map_alt           = 
| map_type          = 
| map_dot_label     = 
| map_caption       = 
| locmapin          = 
| mapframe = yes<!-- see below for more parameters -->
| embedded          = 
}}

Parameters

[แก้]

This template returns values from Wikidata where they are available; these values can be overridden by passing values to the relevant parameters.

ParameterDefaultDescription
nameWikidata label (en)
(Or Page name)
name of the observatory
imageภาพ (P18)image (use full wikicode)
captionmedia legend (P2096)image caption
altalt caption
logoโลโก้ (P154)logo
logo_captionlogo caption
logo_altlogo alt caption
alt_namesWikidata aliases (en)alternative names / aliases for the telescope
namedafterตั้งชื่อตาม (P138)person or organisation the observatory was named after
organizationผู้ดำเนินการ (P137)organization responsible for the observatory
codeMinor Planet Center observatory code (P717)observatory code
locationที่ตั้งใน/บนลักษณะทางกายภาพ (P706), สถานที่ตั้ง (P276), อยู่ในเขตการปกครองของ (P131), ประเทศ (P17) (fallback to ทวีป (P30) for Antarctica)observatory's location
coordinatesตำแหน่งพิกัด (P625)location coordinates, use {{coord}} with display=inline,title
altitudeความสูงเหนือระดับน้ำทะเล (P2044)altitude of the observatory
weatherweather
obs-timeobserving time available (P3891)observing time available
establishedวันเปิดอย่างเป็นทางการ (P1619)when the observatory was established, use {{start date}}
closedเวลาสิ้นสุด (P582)when the observatory was closed, if appropriate
telescopesประกอบไปด้วย (P527)names of the telescopes at the observatory
websiteเว็บไซต์ทางการ (P856)URL of the website for the observatory, use {{URL}}
architectarchitect
architecture_firmarchitecture firm
main_contractormain contractor
telescope1_namename of the observatory's first telescope
telescope1_typefirst telescope's type (and any additional information)
telescope2_namename of the observatory's second telescope
telescope2_typesecond telescope's type (and any additional information)
etc...
telescope29_namename of the observatory's twenty-ninth telescope
telescope29_typetwenty-ninth telescope's type (and any additional information)
telescope30_namename of the thirtieth telescope
telescope30_typethirtieth telescope's type (and any additional information)
locmapinประเทศ (P17)use this parameter to override the location map shown, if necessary. See {{Wikidata location map}}
mapframeShow embedded {{Infobox mapframe}}. See below for more parameters.
commons_categorycommons sitelinkcategory name at Wikimedia Commons
refsnoset to 'yes' to automatically display references from Wikidata
childnoset to 'yes' to use as a child infobox of another infobox
embeddedembed another infobox into this one

Mapframe maps

[แก้]

แม่แบบ:Infobox mapframe/doc/parameters

Examples of use

[แก้]
Infoboxes which only use Wikidata (no local parameters)

Microformat

[แก้]
button to indicate the presence of a Geo microformat
button to indicate the presence of a Geo microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article 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.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Geo is produced by calling {{coord}}, and uses HTML classes hCard uses HTML classes including:

  • "geo"
  • "latitude"
  • "longitude"

Please do not rename or remove these classes.

หมวดหมู่ติดตาม

[แก้]

ดูเพิ่ม

[แก้]

TemplateData

[แก้]
TemplateData
ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งใช้งานโดยตัวช่วยสร้างแม่แบบ เครื่องมือแก้ไขแบบเห็นภาพ และเครื่องมืออื่น ดูรายงานการใช้พารามิเตอร์ประจำเดือนสำหรับแม่แบบ:กล่องข้อมูล หอดูดาว

ข้อมูลแม่แบบสำหรับ กล่องข้อมูล หอดูดาว

ไม่มีคำอธิบาย

พารามิเตอร์แม่แบบ

This template prefers block formatting of parameters.

พารามิเตอร์คำอธิบายชนิดสถานะ
Namename

ไม่มีคำอธิบาย

ค่าอัตโนมัติ
Page name or Wikidata label
บรรทัดแนะนำ
Imageimage

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: image (P18)
ค่าอัตโนมัติ
ไฟล์แนะนำ
Image captioncaption

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: media legend (P2096)
บรรทัดไม่บังคับ
Image alternative textalt

ไม่มีคำอธิบาย

ค่าอัตโนมัติ
สตริงไม่บังคับ
Logologo

ไม่มีคำอธิบาย

ไฟล์ไม่บังคับ
Logo captionlogo_caption

ไม่มีคำอธิบาย

บรรทัดไม่บังคับ
Logo alternative textlogo_alt

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Alternative namesalt_names

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata aliases
สตริงไม่บังคับ
Named afternamedafter

Person or organisation the observatory was named after

ค่าปริยาย
Wikidata: named after (P138)
บรรทัดไม่บังคับ
Organizationorganization

Organization responsible for the observatory

ค่าปริยาย
Wikidata: operator (P137)
สตริงไม่บังคับ
Observatory codecode

Minor Planet Center observatory code

ค่าปริยาย
Wikidata: Minor Planet Center observatory code (P717)
ไม่ทราบชนิดไม่บังคับ
Locationlocation

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: located on terrain feature (P706), location (P276), located in the administrative territorial entity (P131), country (P17) (fallback to continent (P30) for Antarctica)
บรรทัดไม่บังคับ
Coordinatescoordinates

Location coordinates, use {{coord}} with display=inline,title

ค่าปริยาย
Wikidata: coordinate location (P625)
ตัวอย่าง
{{Coord|LAT|LONG|type:landmark|display=inline,title}}
ไม่ทราบชนิดไม่บังคับ
Altitudealtitude

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: elevation above sea level (P2044)
สตริงไม่บังคับ
Weatherweather

ไม่มีคำอธิบาย

ไม่ทราบชนิดไม่บังคับ
Observing timeobs-time

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: observing time available (P3891)
ไม่ทราบชนิดไม่บังคับ
Establishedestablished

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: date of official opening (P1619)
ตัวอย่าง
{{Start date|YYYY|MM|DD}}
เนื้อหาไม่บังคับ
Closedclosed

ไม่มีคำอธิบาย

ค่าปริยาย
Wikidata: end time (P582)
ตัวอย่าง
{{End date|YYYY|MM|DD}}
เนื้อหาไม่บังคับ
Websitewebsite

URL of the website for the observatory

ค่าปริยาย
Wikidata: official website (P856)
ตัวอย่าง
{{URL|example.com}}
เนื้อหาไม่บังคับ
Architectarchitect

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Architecture firmarchitecture_firm

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Main contractormain_contractor

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Telescope 1 nametelescope1_name

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Telescope 1 typetelescope1_type

First telescope's type (and any additional information)

สตริงไม่บังคับ
Telescope 2 nametelescope2_name

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Telescope 2 typetelescope2_type

Second telescope's type (and any additional information)

สตริงไม่บังคับ
Telescope 3 nametelescope3_name

ไม่มีคำอธิบาย

สตริงไม่บังคับ
Telescope 3 typetelescope3_type

ไม่มีคำอธิบาย

ตัวอย่าง
Third telescope's type (and any additional information)
สตริงไม่บังคับ
Commons categorycommons_category

Category name at Wikimedia Commons

ค่าปริยาย
Wikidata link on Commons
ไม่ทราบชนิดไม่บังคับ
Show mapframe mapmapframe

Specify yes or no to show or hide the map, overriding the default

ค่าปริยาย
no
ตัวอย่าง
yes
สตริงแนะนำ
Mapframe captionmapframe-caption

Caption for the map. If mapframe-geomask is set, then the default is "Location in <<geomask's label>>"

สตริงไม่บังคับ
Custom mapframemapframe-custom

Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.

แม่แบบไม่บังคับ
Mapframe Wikidata itemmapframe-id id qid

Id (Q-number) of Wikidata item to use.

ค่าปริยาย
(item for current page)
สตริงไม่บังคับ
Mapframe coordinatesmapframe-coordinates mapframe-coord coordinates coord

Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.

ค่าปริยาย
(coordinates from Wikidata)
ตัวอย่าง
{{Coord|12.34|N|56.78|E}}
แม่แบบไม่บังคับ
Mapframe shapes from Wikidatamapframe-wikidata

et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter

ตัวอย่าง
yes
สตริงไม่บังคับ
Mapframe point featuremapframe-point

Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on"

สตริงไม่บังคับ
Mapframe shape featuremapframe-shape

Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse"

สตริงไม่บังคับ
Mapframe widthmapframe-frame-width mapframe-width

Frame width in pixels

ค่าปริยาย
270
จำนวนไม่บังคับ
Mapframe heightmapframe-frame-height mapframe-height

Frame height in pixels

ค่าปริยาย
200
จำนวนไม่บังคับ
Mapframe shape fillmapframe-shape-fill

Color used to fill shape features

ค่าปริยาย
#606060
สตริงไม่บังคับ
Mapframe shape fill opacitymapframe-shape-fill-opacity

Opacity level of shape fill, a number between 0 and 1

ค่าปริยาย
0.5
จำนวนไม่บังคับ
Mapframe stroke colormapframe-stroke-color mapframe-stroke-colour

Color of line features, and outlines of shape features

ค่าปริยาย
#ff0000
สตริงไม่บังคับ
Mapframe stroke widthmapframe-stroke-width

Width of line features, and outlines of shape features

ค่าปริยาย
5
จำนวนไม่บังคับ
Mapframe markermapframe-marker

Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options

ตัวอย่าง
museum
สตริงไม่บังคับ
Mapframe marker colormapframe-marker-color mapframe-marker-colour

Background color for the marker

ค่าปริยาย
#5E74F3
สตริงไม่บังคับ
Mapframe geomaskmapframe-geomask

Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)

ตัวอย่าง
Q100
ชื่อหน้าไม่บังคับ
Mapframe geomask stroke colormapframe-geomask-stroke-color mapframe-geomask-stroke-colour

Color of outline of geomask shape

ค่าปริยาย
#555555
สตริงไม่บังคับ
Mapframe geomask stroke widthmapframe-geomask-stroke-width

Width of outline of geomask shape

ค่าปริยาย
2
จำนวนไม่บังคับ
Mapframe geomask fillmapframe-geomask-fill

Color used to fill outside geomask features

ค่าปริยาย
#606060
สตริงไม่บังคับ
Mapframe geomask fill opacitymapframe-geomask-fill-opacity

Opacity level of fill outside geomask features, a number between 0 and 1

ค่าปริยาย
0.5
จำนวนไม่บังคับ
Mapframe zoommapframe-zoom

Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area

ค่าปริยาย
10
ตัวอย่าง
12
จำนวนไม่บังคับ
Mapframe length (km)mapframe-length_km

Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

จำนวนไม่บังคับ
Mapframe length (mi)mapframe-length_mi

Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

จำนวนไม่บังคับ
Mapframe area (km^2)mapframe-area_km2

Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

จำนวนไม่บังคับ
Mapframe area (mi^2)mapframe-area_mi2

Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

จำนวนไม่บังคับ
Mapframe frame coordinatesmapframe-frame-coordinates mapframe-frame-coord

Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}

ตัวอย่าง
{{Coord|12.35|N|56.71|E}}
แม่แบบไม่บังคับ
Mapframe switchermapframe-switcher

Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average.

สตริงไม่บังคับ
mapframe-linemapframe-line

ไม่มีคำอธิบาย

ไม่ทราบชนิดไม่บังคับ
Mapframe typemapframe-type

Type of the object rendered in the mapframe, like with {{coord}}.

สตริงไม่บังคับ