Templat:Asbox

Daripada Wikipedia, ensiklopedia bebas.
Lompat ke: pandu arah, cari
Documentation icon Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]
Padlock.svg Templat risiko tinggi ini telah dilindung daripada sebarang penyuntingan untuk mengelakkan perbuatan laku musnah. Jika anda hendak membuat perubahan, sila kemukakan cadangan anda di laman perbualan. Anda boleh menggunakan {{editprotected}} di laman perbualan untuk meminta bantuan penyuntingan daripada penyelia.

Ini adalah templat meta asbox atau article stub box/kotak artikel tunas. Ia adalah templat piawai yang digunakan untuk mencipta templat-templat article stub box//kotak artikel tunas digunakan untuk mencipta atau menyunting . Ia menyokong kebanyakan, jika tidak semua, gaya templat tunas.

Penggunaan asas[sunting | sunting sumber]

{{asbox
| image     = just the name of the image, e.g. Image.png - will be sized at 40x30px
| subject   = given before "article", e.g. "this *biographical* article is a stub"
| qualifier = given after "article" e.g. "this article *about a musician* is a stub"w
| category  = just the name of the category to place tagged pages in, e.g. History stubs
| name      = the full name of the stub template itself, used to reference itself internally
}}

This simple usage should suffice for a great many stub templates. Additional parameters are described below for advanced use.

Penggunaan penuh[sunting | sunting sumber]

{{asbox
| image     = Ambox style.png
| pix       = 
| subject   = 
| qualifier = 
| category  = 
| tempsort  = 
| category1 = 
| tempsort1 = 
| note      = 
| name      = {{subst:FULLPAGENAME}}
}}

Parameter-parameter[sunting | sunting sumber]

icon atau image[sunting | sunting sumber]

If the image is called with an icon template, icon is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with | ), including the {{ and }} around it. Icon can also be used to provide the full image markup (include the opening and closing square brackets), if special image settings such as "border" are to be used. If the image is called explicitly image is the name of the image :- pix will likely be required as well, the default value for pix is 40x30.

imagealt may be used to override the default alt text which is set to "Stub icon".

pix[sunting | sunting sumber]

The size of the image in pixels (no need to append px). Only required if image is used and this image requires a size different from the default maximum of 40x30 pixels. (Note that in the interests of standardising the formats of stub messages, images of size 40x30 are much preferred.)

subject dan qualifier[sunting | sunting sumber]

This subject article qualifier is a stub...

Contoh:

  • Artikel geografi ini adalah mengenai sebuah tempat di Rohan adalah suatu tunas...
  • Artikel fizik adalah suatu tunas...
  • Artikel about Rudolph the Red-nosed reindeer adalah suatu tunas...

category[sunting | sunting sumber]

The stub category the articles should go in.

tempsort[sunting | sunting sumber]

If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by tempsort, otherwise it will be sorted with the value of " " (space) followed by the template name.

category1[sunting | sunting sumber]

An optional second stub category the articles should go in.

tempsort1[sunting | sunting sumber]

If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by tempsort1, otherwise it will be sorted with the value of " " (space) followed by the template name.

category2[sunting | sunting sumber]

An optional third stub category the articles should go in.

tempsort2[sunting | sunting sumber]

If exists the stub template (and any other templates) will be put in its own category sorted as " " (space) followed by tempsort2, otherwise it will be sorted with the value of " " (space) followed by the template name.

note[sunting | sunting sumber]

If exists the value will be added, as a "small" note, to the stub template.

name[sunting | sunting sumber]

The full page name of the template itself.

COntoh[sunting | sunting sumber]

Gunakan image[sunting | sunting sumber]

Berdasarkan kepada {{Østfold-geo-stub}}:

{{Asbox 
 | name      = Template:Østfold-geo-stub
 | image     = Ostfold_vapen.png
 | pix       = 30
 | subject   = [[Østfold]] location
 | category  = Østfold geography stubs
}}

appears as:

Using icon and category1[sunting | sunting sumber]

Using icon allows more flexibility in some circumstances than image and pix, since it can be used with templates. Based on {{Wales-footy-bio-stub}}:

{{Asbox
 | name      = Template:Wales-footy-bio-stub
 | icon      = {{Soccer icon|Wales|50}}
 | subject   = [[biography|biographical]]
 | qualifier = related to Welsh [[association football]]
 | category  = Welsh football biography stubs
 | category1 = Welsh people stubs
}}

akan muncul seperti:

Apayangberkaitdisini[sunting | sunting sumber]

Laman di sini seharusnya mempunyai satu senarai lengkap semua templat yang menggunakan templat. Senarai templat ini booleh dibandingkan dengan senarai templat tunas yang wujuduntuk mengenalpasti be compared with existing list of stub templates to identify new stub templat tunas baru untuk menciptakan keluar dari proses. Kemasukan terakhir akan menjadi item-item yang baru dikemaskini.

Lihat juga[sunting | sunting sumber]

Di sini terdapat banyak templat meta di dalam famili mbox:

  • {{ambox}} – Bagi kotak artikel mesej.
  • {{cmbox}} – Bagi kategori kotak artikel mesej.
  • {{imbox}} – Bagi laman muka surat (imej) kotak artikel mesej.
  • {{mbox}} – Mempunyai pengesan namespace, bagi kotak=-kotak mesej yang digunakan pada beberapa kotak-kotak mesej yang digunakan pada beberapa jenis laman dan perlu untuk diubah gaya bergantung kepada apa yang mereka gunakan pada laman itu.
  • {{ombox}} – Bagi kotak artikel mesej yang lain.
  • {{tmbox}} – Bagi laman perbincangan kotak artikel mesej.

Templat meta yang berkait rapat:

  • {{asbox}} – Bagi kotak artikel mesej.
  • {{dmbox}} – Bagi penyahtaksaan dan tetapkan kotak-kotak set indeks.
  • {{fmbox}} – Bagi kotak pesanan pengepala dan pengaki.


[[en: