Templat:Columns-list/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Rachmat (WMID) (bicara | kontrib)
←Membuat halaman berisi '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE --> {{Hatnote|{{tl|Collist}} redirects here. You may be looking for {{tl|Collapsible list}...'
 
Tidak ada ringkasan suntingan
 
Baris 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE -->
{{Hatnote|{{tl|Collist}} redirectsdialihkan hereke sini. You may beAnda lookingmungkin formencari {{tl|Collapsible list}}.}}
{{Tsh|cmn|collist}}
{{Lua|Module:Check for unknown parameters}}
 
Templat digunakan dalam daftar di badan artikel, bukan di templat navigasi seperti [[Templat:Navbox]]. Templat ini dibuat berdasarkan [[Template:Reflist]], tetapi berbeda karena teks yang akan ditampilkan dibuat secara manual alih-alih berupa daftar referensi.
This template is for use in a list in the body of an article, rather than in a navigation template like [[Template:Navbox]]. Based on [[Template:Reflist]], but different in that the text to be displayed is manually created rather than a list of references.
 
== UsePenggunaan ==
TheLebar widthsetiap ofkolom eachdapat columnditentukan may be specified usingmenggunakan {{para|colwidth}} and adan valuenilai indalam ems<code>em</code>.
<nowiki>{{</nowiki>columns-list|colwidth=''width''|
''TextTeks (usuallybiasanya aberupa listdaftar)''
<nowiki>}}</nowiki>
Di sini, ''width'' menentukan lebar kolom, dan menentukan secara dinamis jumlah kolom berdasarkan lebar layar; lebih banyak kolom akan ditampilkan pada tampilan yang lebih luas.
Here, ''width'' specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.
 
IfJika {{para|colwidth}} istidak not specifiedditentukan, thelebar default width of <code>30em</code> willakan be useddigunakan.
 
This template uses [[CSS]]3 multiple-column layout, which is not supported by all [[WWW|Web]] [[Web&nbsp;browser|browsers]].
 
Template ini menggunakan tata letak multi-kolom [[CSS]]3, yang tidak didukung oleh semua peramban [[WWW|Web]].
{{CSS3 multiple column layout}}
 
=== ExamplesContoh ===
Berikut adalah contohnya:
Here is an example:
<syntaxhighlight lang=text>{{columns-list|colwidth=35em|
* [[George Washington]]
Baris 30 ⟶ 29:
}}</syntaxhighlight>
 
kode tersebut akan menghasilkan:
which would render as:
{{clear}}<!-- just in case {{CSS3 multiple column layout}} pokes down this far -->
{{columns-list|colwidth=35em|
Baris 40 ⟶ 39:
}}
 
Gaya [[CSS]] stylesjuga candapat alsoditambahkan bedengan added with theparameter {{para|style}}, parameter. For examplecontoh:
 
<syntaxhighlight lang=text>{{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|
Baris 55 ⟶ 54:
}}</syntaxhighlight>
 
yang akan menghasilkan:
which would render as:
{{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|
* [[All About Lily Chou-Chou]]
Baris 69 ⟶ 68:
}}
 
Templat ini juga berfungsi dengan daftar bernomor sebagai "teks"-nya. Sebagai contoh:
This template also works with numbered lists as its "text". For example:
 
<syntaxhighlight lang=text>
Baris 91 ⟶ 90:
The template, in fact, works with ''everything'' since all it does is wrap the text provided around a block to be divided into columns by CSS. Do not stop at wikitext lists &ndash; more advanced lists generated by [[Template:HTML lists|the HTML templates]] will work too!
 
==Error messagesPesan galat ==
Use of the no-longer-supported parameter {{para|cols}}, or use of the first unnamed parameter (aka {{para|1}}) along with {{para|2}} or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use {{para|colwidth}} instead of attempting to specify the number of columns.
 
The presence of an equals sign within the template's content can also cause display problems and red error messages. To fix this problem, add {{para|1}} in front of the template's content.
 
== RedirectsPengalihan ==
* {{tl|cmn}}
* {{tl|collist}}
Baris 102 ⟶ 101:
* {{tl|Columnslist}}
 
== TrackingKategori categorypelacak ==
* {{clc|Pages using columns-list with unknown parameters}} (for pages in article space only)
 
== SeeLihat alsopula ==
{{Column-generating template families}}
{{HTML lists}}