Khác biệt giữa bản sửa đổi của “Bản mẫu:Đài thiên văn”

Bách khoa toàn thư mở Wikipedia
Nội dung được xóa Nội dung được thêm vào
Trang mới: “{{Infobox |bodyclass = vcard |bodystyle = width:20em; text-align:left; font-size:90%; |above = {{{name|<includeonly>For instructions on use, see Te…”
 
Không có tóm lược sửa đổi
Dòng 12: Dòng 12:
|datastyle = padding:0; line-height:1.2em; vertical-align:middle;
|datastyle = padding:0; line-height:1.2em; vertical-align:middle;


|label1 = Organization
|label1 = Tổ chức
|data1 = {{{organization|}}}
|data1 = {{{organization|}}}
|label2 = [[List of observatory codes|Code]]
|label2 = [[List of observatory codes|Code]]
|data2 = {{{code|}}}{{#if:{{{code|}}}|&nbsp;&nbsp;}}
|data2 = {{{code|}}}{{#if:{{{code|}}}|&nbsp;&nbsp;}}
|label3 = Location
|label3 = Địa điểm
|data3 = {{{location|}}}
|data3 = {{{location|}}}
|class3 = label
|class3 = label
|label4 = <div style="vertical-align:middle;">Coordinates</div>
|label4 = <div style="vertical-align:middle;">Coordinates</div>
|data4 = {{#if:{{{coords|}}}|<div style="white-space:nowrap;">{{{coords|}}}</div>}}
|data4 = {{#if:{{{coords|}}}|<div style="white-space:nowrap;">{{{coords|}}}</div>}}
|label5 = Altitude
|label5 = Cao độ
|data5 = {{{altitude|}}}
|data5 = {{{altitude|}}}
|label6 = Weather
|label6 = Thời tiết
|data6 = {{{weather|}}}
|data6 = {{{weather|}}}
|label7 = Established
|label7 = Thành lập
|data7 = {{{established|}}}
|data7 = {{{established|}}}
|label8 = Closed
|label8 = Đóng cửa
|rowclass8 = note
|rowclass8 = note
|data8 = {{{closed|}}}
|data8 = {{{closed|}}}

Phiên bản lúc 14:04, ngày 21 tháng 10 năm 2013

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Usage

{{Đài thiên văn
|name            = {{SUBST:PAGENAME}}
|background      = 
|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 = 
}}
{{{name}}}
[[File:{{{image}}}|frameless]]
{{{caption}}}
Tổ chức{{{organization}}}
Code{{{code}}}  
Địa điểm{{{location}}}
Coordinates
{{{coords}}}
Cao độ{{{altitude}}}
Thời tiết{{{weather}}}
Thành lập{{{established}}}
Đóng cửa{{{closed}}}
Website
{{{website}}}
Telescopes
{{{telescope1_name}}}{{{telescope1_type}}}
{{{telescope2_name}}}{{{telescope2_type}}}
......
{{{telescope30_name}}}{{{telescope30_type}}}
Parameter Description
Required parameters in bold
name The name of the observatory.
background The colour of the background of the table.
image The image for the infobox (use full wikicode).
caption A caption for the image.
organization The organization responsible for the observatory.
code Observatory code.
location The observatory's location.
coords Location coordinates. Use {{coord}} with display=inline,title
altitude The altitude of the observatory.
established When the observatory was established. Use {{Start date}}
closed When the observatory was closed, if appropriate.
website 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).

Examples of use

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.

If the place or venue has an "established", "founded", "opened" or similar date, use {{Start date}}.

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • vcard

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

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes; nor collapse nested elements which use them.

When giving coordinates, please don't be overly precise.

See also