Templat:Infobox Brewery
Templat ini menggunakan ciri-ciri sintaks templat yang rumit.
Anda digalakkan untuk membiasakan diri dengan persediaan dan fungsi penghurai sebelum menyunting templat ini. Jika suntingan anda menyebabkan masalah yang tidak diduga, sila undurkannya dengan segera kerana templat ini mungkin digunakan di sebilangan besar halaman. Ingat bahawa anda boleh menjalankan uji kaji dan perlu menguji semua penambahbaikan, sama ada di kotak pasir umum atau laman pengguna anda sebelum melakukan sebarang perubahan. (lihat sejarah) |
{{{name}}} | |
---|---|
{{{image}}} | |
{{{caption}}} | |
Lokasi | {{{location}}} |
Koordinat | {{{coordinates}}} |
Pemilik | {{{owner}}} |
Tahun pembukaan | {{{opened}}} |
Tahun pengeluaran dihentikan | {{{closed}}} |
Pengeluaran tahunan | {{{production}}} |
Laman web | {{{url}}} |
Bir aktif | |
{{{active_beers}}} | |
Bir bermusim | |
{{{seasonal_beers}}} | |
{{{other_beers}}} |
Values
[sunting sumber]- name - This comes to the top of the box.
- image - If there's not an image available, leave the field empty.
- caption - Leave empty for no image caption.
- location - Location of the brewery.
- coordinates - latitude & longitude of the brewery, using {{coord}}
- owner - Owner of the brewery.
- opened - Year the brewery opened.
- closed - Year the brewery ceased production.
- production - Yearly production volume.
- url - Official website. Plain URL, no link code.
- active_beers - A list of active beers produced by the brewery, formatted with {{brewbox_beer}}.
- seasonal_beers - A list of seasonal beers regularly produced by the brewery, formatted with {{brewbox_beer}}.
- other_beers - One or more lists of beers produced by the brewery (other than "Active" or "Seasonal" beers), formatted with {{brewbox_beers}} and {{brewbox_beer}}.
Infobox
[sunting sumber]Directions: copy and paste the infobox below into the desired article and fill in the values after the equals (=) sign.
Note: all of the fields are optional except name. For questions or examples please see the discussion page.
{{Infobox Brewery | name = | image = | caption = | location = | owner = | opened = | closed = | production = | url = | active_beers = | seasonal_beers = | other_beers = }}
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}}.
See also
[sunting sumber]Pendokumenan di atas ditransklusikan daripada Templat:Infobox Brewery/doc. (sunting | sejarah) Para penyunting boleh membuat percubaan di laman kotak pasir (cipta | cermin) dan kes ujian (cipta) templat ini. Sila letakkan kategori di sublaman /doc. Sublaman templat ini. |