Bantuan:Bagian: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k ←Suntingan Jerry8815 (bicara) dibatalkan ke versi terakhir oleh Hidayatsrf
RaFaDa20631 (bicara | kontrib)
 
(14 revisi perantara oleh 9 pengguna tidak ditampilkan)
Baris 1:
{{Templat:Bantuan:Bantuan/seri tab}}
{{pintas|[[WP:SECT]]|[[WP:SECTION]]}}
{{Templat:Bantuan:Bantuan/layout|1=
{{pintas|[[WP:SECT]]|[[WP:SECTION]]}}
Suatu halaman bisa dibagi menjadi '''bagian''' dengan menggunakan sintaks pembuatan judul bagian. Pemilahan halaman menjadi bagian-bagian ini sangat dianjurkan karena dapat membantu baik untuk pembaca maupun penyunting suatu halaman. Pembaca dapat dibantu dengan adanya daftar isi yang muncul berdasarkan bagian dalam halaman, sedangkan penyunting dapat dibantu karena tiap bagian bisa disunting sendiri-sendiri tanpa harus menyunting keseluruhan halaman.
 
Baris 18 ⟶ 20:
Pengguna yang masuk log akan dapat mengatur [[Istimewa:Preferences|preferensi]] untuk menampilkan nomor otomatis untuk judul bagian dengan memilih pilihan ''{{MediaWiki:tog-numberheadings}}'' pada tab ''{{MediaWiki:prefs-misc}}''.
 
== Daftar isi (Table of contents; TOC) ==
 
Pada setiap halaman yang memuat lebih dari tiga judul bagian, sebuah "Daftar Isi" (''table of contents'' atau disingkat '''TOC''') akan dimunculkan secara otomatis dari judul-judul bagian atau subbagian, kecuali:
* (untuk pengguna) [[Istimewa:preferensi|Preferensi]], pada tab "Tampilan", "Opsi lanjutan"; kotak pilihan "Perlihatkan daftar isi (untuk halaman yang mempunyai lebih dari 3 subbagian" diset nyala ("on")
* (untuk artikel) dalam kotak suntingan ditambahkan sebuah [[Bantuan:Kata ajaib|"kata ajaib" atau "kata sakti"]] <ttcode><nowiki>__NOTOC__</nowiki></ttcode>
 
Dengan <nowiki>__FORCETOC__</nowiki> atau <nowiki>__TOC__</nowiki> dalam wikiteks, maka sebuah TOC akan ditambahkan sekalipun halaman tersebut mempunyai kurang dari empat subbagian.
 
Dengan <nowiki>__FORCETOC__</nowiki> maka TOC ditempatkan sebelum judul subbagian pertama.
 
Dengan <nowiki>__TOC__</nowiki>, maka akan ditempatkan pada posisi kode tersebut. Jadi penggunaannya dapat menempatkan TOC di posisi manapun, juga misalnya di sebelah kanan, dan di dalam sel tabel, serta juga mengizinkan pemunculan lebih dari sekali, misalnya pada setiap subbagian (didemonstrasikan pada [[m:Help talk:Section]]; tetapi, nampaknya hanya bermanfaat jika bagian-bagian tersebut panjang-panjang, sehingga TOC hanya mengambil sedikit tempat dari keseluruhan ruangan).
Baris 36 ⟶ 38:
In a page calling a [[Help:Template|template]] with sections, the sections in the template are numbered according to their position in the rendered page, e.g. if the template tag is in the third section, then the first section of the template is numbered four. Any text in the template before its first section shows up as part of the section with the template tag, and any text after the tag before a new header shows up as part of the last section of the template. This may be done deliberately, but can usually better be avoided (see also below).
 
Using <nowiki>__NOTOC__</nowiki> it's possible to disable the normal Table of Contents. Section links as explained below allow to create '''compact ToCs''', e.g. alphabetical <ttcode><nowiki>[[#A|A]] [[#B|B]]</nowiki></ttcode> etc.
 
The Table of contents can be forced onto a floating table on the right hand of the screen with the code below
Baris 52 ⟶ 54:
 
A link to this section ([[Help:Section#Section_linking|Section Linking]]) looks like this:<br />
<ttcode><nowiki>[[Help:Section#Section_linking|Section Linking]]</nowiki></ttcode>
 
To link to a section in the same page you can use <ttcode><nowiki>[[#id|link_label]]</nowiki></ttcode>, and to link to a section in another page <ttcode><nowiki>[[page name#id|link_label]]</nowiki></ttcode>.
 
To create an anchor target without a section header, you can use a span, for example:<br /><ttcode><nowiki><span id="anchor_name"></span></nowiki></ttcode>, however this won't work with some very old browsers.
 
An underscore and number are appended to duplicate section names. E.g. for three sections named "Example", the names (for section linking) will be "Example", "Example_2" and "Example_3".
Baris 80 ⟶ 82:
 
===Section links===
You can use section linking to link to a section within the same page (using <ttcode><nowiki>[[#section name|displayed text]]</nowiki></ttcode>, and if another section with the same name exists <ttcode>a _ (sequential number)</ttcode> is appended as in <ttcode><nowiki>[[#section name_2|displayed text]]</nowiki></ttcode>), or to a section within another page (using <ttcode><nowiki>[[page name#section name|displayed text]]</nowiki></ttcode>).
 
For example to link the table of contents entry: <nowiki>[[#test|test]]</nowiki>
Baris 108 ⟶ 110:
===Preview===
 
The preview in section editing does not always show the same as the corresponding part of the full page, e.g. if on the full page an image in the previous section intrudes into the section concerned.
 
The edit page shows the list of templates used on the whole page, i.e. also the templates used in other sections.
Baris 155 ⟶ 157:
*loading a small page is faster than loading a large page
*can separately be put in categories
*with [[Semantic MediaWiki]]: have separate annotations
 
Advantages of one large page with sections:
Baris 207 ⟶ 209:
 
{{bantuan-stub}}
}}
 
{{Navbox Gabungan Pedoman WBI}}
[[Kategori:Bantuan Wikipedia]]