Templat:Infobox Pulau Scotland/doc

Daripada Wikipedia, ensiklopedia bebas.

Parameters[sunting sumber]

Expected minimum parameters[sunting sumber]

{{Infobox Pulau Scotland
| GridReference=
| area= 
| highest elevation= 
| Population= 
| island group=
| local authority=
| references=
}}


Optional parameters[sunting sumber]

| Image=
| ImageCaption=
| Map=
| official_name=
| latitude=
| longitude=
| caption=
| celtic name=
| gaelic pronunciation=
| norse name=
| meaning of name=
| area rank= 
| population rank=
| population density=
| main settlement=


Full list of parameters[sunting sumber]

{{Infobox Pulau Scotland
| Image=          <!-- just the image name "File:" or "Image:" prefix is not required -->
| ImageCaption=
| Map=
| official_name=
| latitude=       <!-- decimal degrees -->
| longitude= -    <!-- negative for West -->
| GridReference=
| caption=   <!--default: xx shown within Scotland-->
| celtic name= 
| gaelic pronunciation=
| norse name=
| meaning of name=
| area=   {{convert||ha|sqmi|2}}
| area rank= 
| highest elevation=  {{convert||m|ft|0}} 
| Population=     <!-- 2001 Census -->
| population rank=
| population density=
| main settlement=
| island group=
| local authority=
| references=<ref>2001 UK Census per [[List of islands of Scotland]]</ref><ref name=Smith>{{Haswell-Smith}}</ref>
<ref>[http://www.ordnancesurvey.co.uk/ Ordnance Survey]</ref>
}}

Automated features[sunting sumber]

  • Using latitude and longitude will produce a captioned map of Scotland with the location marked and labelled.
  • The parameter official_name will replace {{PAGENAME}} as the map heading, label, and in the caption.
  • GridReference will link using {{coord}} with display=inline,title.
  • The map caption becomes "{{PAGENAME}} shown within Scotland" unless caption=xxx is set.

Microformat[sunting sumber]

Penanda HTML yang dihasilkan oleh templat ini termasuklah mikroformat hCard, yang menjadikan nama tempat dan lokasi boleh dihuraikan oleh komputer, sama adan bertindak secara automatik untuk mengkatalogkan rencana merentasi Wikipedia atau melalui alat pelayar yang dikendalikan oleh orang, contohnya untuk menambah subjek pada buku alamat. Di dalam hCard terdapat mikroformat Geo, yang membolehkan koordinat (garis lintang dan bujur) dihuraikan, supaya ia boleh mencari peta atau memuat turun unit GPS.

Subtemplat[sunting sumber]

Jika suatu tempat itu mempunyai medan "diasaskan", "ditubuhkan", "dibuka atau yang serupa, gunakan templat {{Tarikh mula}}. Jika ia mempunyai URL, gunakan templat {{URL}}.

Harap tidak membuang contoh-contoh subtemplat ini.

Kelas[sunting sumber]

hCard menggunakan kelas-kelas HTML termasuklah:

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

Geo dihasilkan dengan memanggil {{Koord}}, dan menggunakan kelas-kelas HTML:

  • geo
  • latitude
  • longitude

Jangan menamakan semula atau membuang kelas-kelas ini, atau meruntuhkan unsur-unsur bersarang yang menggunakannya.

Ketepatan[sunting sumber]

Apabila menggunakan koordinat, sila gunakan tahap ketepatan yang bersesuaian. Jangan gunakan parameter |name= pada {{Koord}}.