Templat:Asbox/doc

Daripada Wikipedia, ensiklopedia bebas.


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

Penggunaan asas[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 sumber]

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

Parameter-parameter[sunting sumber]

icon atau image[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 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 sumber]

This subject article qualifier is a stub...

Contoh:

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

category[sunting sumber]

The stub category the articles should go in.

tempsort[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 sumber]

An optional second stub category the articles should go in.

tempsort1[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 sumber]

An optional third stub category the articles should go in.

tempsort2[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 sumber]

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

name[sunting sumber]

The full page name of the template itself.

Contoh[sunting sumber]

Gunakan image[sunting sumber]

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

{{Asbox 
 | name      = Template:Østfold-geo-stub
 | image     = Østfold våpen.svg
 | pix       = 30
 | subject   = lokasi [[Østfold]]
 | category  = rencana tunas geografi Østfold
}}

akan muncul sebagai:

Kategori demo: Kategori:Templat pesanan tunas yang memerlukan perhatian|CAsbox/doc | Kategori:Templat mesej tunas

Using icon and category1[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:

Kategori demo: Kategori:Templat pesanan tunas yang memerlukan perhatian|CAsbox/doc | Kategori:Templat mesej tunas | Kategori:Templat pesanan tunas menggunakan parameter icon

Apa yang berkait di sini[sunting sumber]

Laman di sini seharusnya mempunyai satu senarai lengkap semua templat yang menggunakan templat. Senarai templat ini boleh dibandingkan dengan senarai templat tunas yang wujud untuk mengenal pasti templat tunas baru untuk menciptakan keluar dari proses. Kemasukan terakhir akan menjadi item-item yang baru dikemas kini.

Lihat juga[sunting sumber]

Di sini terdapat banyak templat meta 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.