แม่แบบ:กล่องข้อมูล ประภาคาร

Template:Infobox lighthouse
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

{{กล่องข้อมูล ประภาคาร}} may be used to summarise information about a lighthouse. Much of this infobox's data will be retrieved from Wikidata. Editors are encouraged to add data to the relevant item.

Parameters for the tower แก้

Label Wikidata properties Usage Example(s) Override parameter
Name Item label and ชื่อทางการ (P1448) The name of the lighthouse Wilsons Promontory Lighthouse |name=
Image ภาพ (P18) qualified by (P2096) An image of the lighthouse stored on Wikimedia Commons. A caption can be included with (P2096). Cuxhaven 07-2016 photo23 Kugelbake.jpg |image=, |caption=
Location ตำแหน่งพิกัด (P625), ที่ตั้งใน/บนลักษณะทางกายภาพ (P706), สถานที่ตั้ง (P276), อยู่ในเขตการปกครองของ (P131), ประเทศ (P17) Location of the lighthouse. (Q126514) |location=
OS grid (P613) Ordnance Survey National Grid coordinates. NZ40806416 |grid_ref_UK=
Coordinates ตำแหน่งพิกัด (P625) Latitude and longitude of the position of the lighthouse. If specifying manually, use the {{Coord}} template. A map will automatically be included in the infobox unless it is turned off (see #Maps). 29°4'18.012"N, 48°29'35.988"E |coordinates={{Coord|N|E}}
Constructed วันที่สร้าง/วันก่อตั้ง (P571) Date of start of construction. 1897 |yearbuilt=
Designed by นักออกแบบ (P287) Designer of the lighthouse. (Q27835212) |suppressfields=designer
Built by ผู้รับเหมาก่อสร้าง (P193), (P631) Engineer or builder of the lighthouse. (Q1355182) |suppressfields=builder
Foundation n/a The material of the foundation. concrete |foundation=
Construction วัสดุที่ใช้ (P186) qualified with ส่วนประกอบที่มีคุณสมบัตินี้ (P518) The material of the structure. หินแกรนิต (Q41177) |construction=
Tower shape รูปร่าง (P1419) qualified with ส่วนประกอบที่มีคุณสมบัตินี้ (P518) The shape of the structure. (Q9090332) |shape=
Markings สี (P462) qualified by ส่วนประกอบที่มีคุณสมบัตินี้ (P518)
(P5422) qualified with รูปร่าง (P1419), ปริมาณ (P1114), สี (P462), (P7469), ส่วนประกอบที่มีคุณสมบัตินี้ (P518)
Color or other distinctive marks. horizontal red stripe |marking=
Tower height ความสูง (P2048) The total height of the structure above ground. 10 metres |height=
Power source แหล่งพลังงาน (P618) Source of power for the lighthouse พลังแสงอาทิตย์ (Q1483757) |suppressfields=powersource
Fog signal n/a The type and frequency of any fog signal, e.g. bell, horn, etc., as given in the light list. HORN: 1 blast ev 15s (2s bl) |fogsignal=
Racon (P3994) The letter transmitted in morse code by the Racon, if it has one. N |racon=
Operator ผู้ดำเนินการ (P137) qualified with เวลาเริ่ม (P580) and เวลาสิ้นสุด (P582) The authority responsible for operating the light. Trinity House |managingagent=
Heritage สถานะทางมรดก (P1435) A description of the lighthouse's heritage status. NRHP listed place |heritage=

Parameters for the light แก้

Label Wikidata properties Usage Example(s) Override parameter
First lit วันเริ่มให้บริการ (P729) Date that the light entered service. 27 June 1904 |yearlit=
Deactivated (P730) If the light is no longer in service, the date it was decommissioned. June 1980 |yeardeactivated=
Automated เหตุการณ์สำคัญ (P793) -> (Q24410992) qualified with ณ เวลา (P585) The date the light was converted to automatic. 4 December 1998 |automated=
Focal height (P2923) qualified with สี (P462) The height of the light above mean sea level. When a navigator's light list simply shows a value for 'height', that should be entered here. 14 metres |focalheight=
Lens (P9597) qualified with เวลาเริ่ม (P580) and เวลาสิ้นสุด (P582) The type of lens used in the light. (Q24629169), (Q7907476) |lens=
Light source n/a Source of illumination of the light. CDM T lamp, High intensity LED lamp |lightsource=
Intensity (P3041) qualified with สี (P462) Luminous intensity of the light, measured in candela. 14,400 candela |intensity=
Range (P2929) qualified with สี (P462) The distance from which the light can be seen, usually given in nautical miles. If the light has more than one color, then several ranges can specified, one for each color. 8 ไมล์ทะเล (15 กิโลเมตร; 9.2 ไมล์) |range=
Characteristic (P1030) qualified with ประพจน์เป็นหัวเรื่องของ (P805), เวลาเริ่ม (P580) and เวลาสิ้นสุด (P582) The pattern of flashes in shorthand notation. See Light characteristic for examples and explanation. Fl(2) W 10s |characteristic=

Bespoke numbering systems แก้

If a country has its own numbering system (such as the Netherlands), the country name, ID number and a link (optional) may be specified.

  • |country=
  • |countrynumber=
  • |countrylink=

Fetch wikidata แก้

To fetch specific fields from Wikidata (and no others) the |fetchwikidata= can be used. For example, to fetch the date of construction and the date of deactivation, use:

  • |fetchwikidata=constructed,yeardeactivated

If this parameter is not specified then all available fields will be fetched.

To suppress certain fields (but fetch others), the |suppressfields= can be used. For example, to suppress the range of the lighthouse and its intensity, use:

  • |suppressfields=range,intensity

If this parameter is not specified then no fields will be suppressed.

By default, the template will use the Wikidata item associated with the article. In some cases (for example, if the article is about an island but contains some information about a lighthouse on that island) you will need to specify the Wikidata Q-identifier using |qid=. For example:

  • |qid=Q28333621

Embedding other templates แก้

The |module= parameter can be used for embedding other templates into this infobox (see Wikipedia:Infobox modules):

{{กล่องข้อมูล ประภาคาร
| name = 
...
| module =
  {{Infobox example
  | embed = yes <!-- or 'child=yes' or 'subbox=yes' -->
  ...
  }}
}}

Full list แก้

Parameters left blank will not be shown. All of the parameters are text fields so you can, for example

  • list in a span of years: |yeardeactivated=1952–1980
  • provide explanation: |yearlit=1880 (current tower)
  • give more than one answer: |fogsignal=Bell (1880)<br />Horn 1 every 20s (1915)
{{กล่องข้อมูล ประภาคาร
| name            = 
| image_name      = 
| image_width     = 
| caption         = 
| location        = 
| coordinates     = <!-- {{Coord}} -->
| yearbuilt       = <!-- {{Start date|YYYY}} -->
| yearlit         = 
| automated       = 
| yeardeactivated = 
| foundation      = 
| construction    = 
| shape           = 
| marking         = 
| height          = 
| focalheight     = 
| lens            = 
| lightsource     = 
| intensity       = 
| range           = 
| characteristic  = 
| fogsignal       = 
| racon           = 
| country         = 
| countrynumber   = 
| countrylink     = 
| managingagent   = 
| heritage        = 
| module          = 
}}

Coordinates แก้

For coordinates, use |coordinates= with {{Coord}}. See the Coord template's documentation for details on usage. For example, |coordinates={{coord|1|2|N|3|4|E|type:landmark|display=inline,title}}

Maps แก้

A Mapframe map is automatically included if:

  • There are coordinates specified on the page's Wikidata item
  • It has not be turned off by setting |mapframe=no

The following optional parameters can then be used to adjust the map

  • |mapframe-zoom= zoom level (default is 10)
  • |mapframe-width= and |mapframe-height= for the map size (defaults are 270 and 200)
  • |mapframe-marker= for the marker icon (default is no marker icon)
  • either |mapframe-marker-color= or |mapframe-marker-colour= for the marker colour (hex triplet, default is #5E74F3)
  • |mapframe-caption= caption below the map
  • |mapframe-lat= and |mapframe-long= (or |mapframe-latitude= and |mapframe-longitude=) – alternate initial latitude and longitude for the map, instead of the lighthouse coordinates. Specify as a decimal number.

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.


Tracking categories แก้

See also แก้

TemplateData แก้

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ กล่องข้อมูล ประภาคาร (ยังไม่มีการตรวจสอบ)

Click the [show] link to the right to display the TemplateData.

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

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

This template prefers block formatting of parameters.

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

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

ไม่ทราบชนิดเลือกได้
qidqid

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

ไม่ทราบชนิดเลือกได้
suppressfieldssuppressfields

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

ไม่ทราบชนิดเลือกได้
Fetch wikidatafetchwikidata

use and leave blank to turn off Wikidata values

ไม่ทราบชนิดเลือกได้
image_nameimage_name

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

ไม่ทราบชนิดเลือกได้
image_widthimage_width

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

ไม่ทราบชนิดเลือกได้
image sizeimage size

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

ไม่ทราบชนิดเลือกได้
image_sizeimage_size

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

ไม่ทราบชนิดเลือกได้
imagesizeimagesize

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

ไม่ทราบชนิดเลือกได้
image_uprightimage_upright

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

ไม่ทราบชนิดเลือกได้
altalt

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

ไม่ทราบชนิดเลือกได้
imageimage

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

ไม่ทราบชนิดเลือกได้
captioncaption

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

ไม่ทราบชนิดเลือกได้
coordinatescoordinates

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

ไม่ทราบชนิดเลือกได้
map_captionmap_caption

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

ไม่ทราบชนิดเลือกได้
onlysourcedonlysourced

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

ไม่ทราบชนิดเลือกได้
locationlocation

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

ไม่ทราบชนิดเลือกได้
grid_ref_UKgrid_ref_UK

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

ไม่ทราบชนิดเลือกได้
designationdesignation

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

ไม่ทราบชนิดเลือกได้
Year builtyearbuilt

usually the year the light first built

ไม่ทราบชนิดเลือกได้
Year lityearlit

the year the light entered service, if different from yearbuilt

ไม่ทราบชนิดเลือกได้
Year automatedautomated

the year it was automated

ไม่ทราบชนิดเลือกได้
Year deactivatedyeardeactivated

If the light is no longer in service, list the year it was last working

ไม่ทราบชนิดเลือกได้
Foundation materialfoundation

the material of the foundation

ไม่ทราบชนิดเลือกได้
Construction materialconstruction

the material of the structure

ไม่ทราบชนิดเลือกได้
Structure shapeshape

the shape of the structure

ตัวอย่าง
Cylindrical, conical, pyramidal
ไม่ทราบชนิดเลือกได้
Markingmarking

color or other distinctive marks

ไม่ทราบชนิดเลือกได้
Height above foundationheight

the total height of the structure above its foundation

ไม่ทราบชนิดเลือกได้
Focal heightfocalheight

the height of the actual light source above mean sea level

ไม่ทราบชนิดเลือกได้
Lenslens

the type of lens originally used in the light

ตัวอย่าง
Fresnel lens
ไม่ทราบชนิดเลือกได้
Light sourcelightsource

the source of illumination

ไม่ทราบชนิดเลือกได้
Intensityintensity

candlepower

ไม่ทราบชนิดเลือกได้
Rangerange

the distance at which the light can be seen

ไม่ทราบชนิดเลือกได้
characteristiccharacteristic

the pattern of flashes, given in the light list

ไม่ทราบชนิดเลือกได้
Fog signalfogsignal

the type and frequency of any fog signal

ตัวอย่าง
Bell, horn
ไม่ทราบชนิดเลือกได้
raconracon

the letter shown if there is a Racon

ไม่ทราบชนิดเลือกได้
countrylinkcountrylink

a (non mandatory) link to the country's list of lighthouses or the website hosting that list

ไม่ทราบชนิดเลือกได้
countrycountry

if a country has its own numbering system, the country name

ตัวอย่าง
Netherlands
ไม่ทราบชนิดเลือกได้
countrynumbercountrynumber

number according to the country's numbering system

ไม่ทราบชนิดเลือกได้
Managing agentmanagingagent

the authority responsible for operating the light

ไม่ทราบชนิดเลือกได้
heritageheritage

a description of the building's heritage status

ไม่ทราบชนิดเลือกได้
modulemodule

used for embedding other templates into this infobox

ไม่ทราบชนิดเลือกได้
mapframemapframe

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

ไม่ทราบชนิดเลือกได้
mapframe-zoommapframe-zoom

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

ไม่ทราบชนิดเลือกได้
mapframe-widthmapframe-width

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

ไม่ทราบชนิดเลือกได้
mapframe-heightmapframe-height

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

ไม่ทราบชนิดเลือกได้
mapframe-markermapframe-marker

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

ไม่ทราบชนิดเลือกได้
mapframe-marker-colormapframe-marker-color

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

ไม่ทราบชนิดเลือกได้
mapframe-marker-colourmapframe-marker-colour

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

ไม่ทราบชนิดเลือกได้
mapframe-latmapframe-lat

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

ไม่ทราบชนิดเลือกได้
mapframe-latitudemapframe-latitude

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

ไม่ทราบชนิดเลือกได้
mapframe-longmapframe-long

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

ไม่ทราบชนิดเลือกได้
mapframe-longitudemapframe-longitude

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

ไม่ทราบชนิดเลือกได้
mapframe-captionmapframe-caption

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

ไม่ทราบชนิดเลือกได้