Templat:Start tab/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Templat {{Start tab}} dan {{End tab}} dapat digunakan untuk membuat antarmuka tab pada portal, proyek, halaman bantuan dan halaman pengguna. Mereka tidak boleh digunakan dalam artikel.

Penggunaan[sunting sumber]

{{Start tab
|tab-1               = <!-- up to |tab-20= -->
|link-1              = <!-- up to |link-20= -->
|image-1             = <!-- up to |image-20= -->
|rounding            = 
|border              = 
|off tab color       = 
|on tab color        = 
|tab spacing percent = 
|tab font-size       = 
|tab alignment       = 
|nowrap              = 
|frame               = 
|frame color         = 
}}

<!-- Teks untuk bagian utama halaman ditempatkan di sini. -->

{{End tab
|tab-1         = 
|link-1        = 
|tab-2         = 
|link-2        = 
|tab-3         = <!-- up to |tab-10= -->
|link-3        = <!-- up to |link-10= -->
|off tab color = 
|border        = 
|rounding      = 
}}

Parameter[sunting sumber]

Umum
tab-n
Nama tab, di mana "n" adalah jumlah tab hingga 20.
link-n
Lokasi tautan tab, di mana "n" adalah jumlah tab hingga 20.
image-n
Nama gambar opsional (minimal ke 20px) untuk ditempatkan di sebelah nomor judul tab n.
rounding
Tambahkan efek pembulatan ke templat.
border
Gaya perbatasan.
off tab color
Warna dari tab yang saat ini tidak dipilih.
on tab color
Warna dari tab yang saat ini dipilih.
tab spacing percent
Ganti lebar di antara tab.
tab font-size
Ganti ukuran font teks di tab.
tab alignment
Override alignment of tab's title (left/center/right).
nowrap
Cegah nama panjang terbungkus di setiap tab.
frame
Mulai dari yes untuk menambahkan bingkai halaman di bawah tab. Ini bisa ditutup dengan menambahkan </div></div> ke akhir halaman, atau di mana pun Anda ingin bingkai ditutup.
frame color
Warna latar belakang untuk bingkai. Default adalah 'pada warna tab' .
Frame
freeform-n
Set freeform-n = yes to allow for arbitrary code in that tab's tab-n entry rather than just being plain text and a link. See below. When using the freeform attribute, the link attribute remains empty; for example:
|freeform-1 = yes
|tab-1      = [http://www.nytimes.com/ ''The New York Times'']
|link-1     = 
|image-1    =
tab-n
The name of the tab, where "n" is number of the tab up to 20.
link-n
The tab link location, where "n" is number of the tab up to 20.
link2-n
The tab 2nd link location, where "n" is number of the tab up to 20. (only applies when using freeform-n)
link3-n
The tab 3rd link location, where "n" is number of the tab up to 20. (only applies when using freeform-n)
link4-n
The tab 4th link location, where "n" is number of the tab up to 20. (only applies when using freeform-n)
link5-n
The tab 5th link location, where "n" is number of the tab up to 20. (only applies when using freeform-n)
  • The maximum number of available tabs is 20.
  • To use the next page feature, end the page with the {{End tab}} template.

Setiap tab membutuhkan atribut link dengan judul halaman yang dirujuknya, dan atribut tab dengan label untuk tab tersebut. Jika judul halaman saat ini cocok dengan link maka tab itu akan memiliki gaya yang berbeda. freeform atribut dapat digunakan dengan tab apa pun (misalnya |freeform-2=yes untuk memungkinkan label bentuk bebas dengan beberapa tautan internal dan eksternal jika diinginkan; jika tidak, teks dalam tab digunakan sebagai tautan wiki ke laman yang ditentukan oleh link .

Penggunaan khusus
preums
Hanya digunakan secara internal pada Templat:Tab halaman

Contoh[sunting sumber]

Contoh untuk Wikipedia:ProyekWiki Atletik:

{{Start tab
| tab-1   = Current page
| link-1  = Templat:Start tab
| tab-2   = Proyek
| link-2  = Wikipedia:ProyekWiki Atletik
| tab-3   = Pembicaraan proyek
| link-3  = Pembicaraan Wikipedia:ProyekWiki Atletik
| tab-4   = Proyek Olimpiade
| link-4  = Wikipedia:ProyekWiki Olimpiade
| image-4 = Olympic Rings.svg
| frame   = yes
}}

Teks untuk bagian utama halaman ditempatkan di sini.

{{End tab
| tab-1  = Current page
| link-1 = Templat:Start tab
| tab-2  = Project
| link-2 = Wikipedia:WikiProject Athletics
| tab-3  = Project talk
| link-3 = Wikipedia talk:WikiProject Athletics
| tab-4  = Olympics Project
| link-4 = Wikipedia:WikiProject Olympics
| frame  = yes
}}
 Current page Current page Project Project talk Olympics Project Olympics Project 

Text for main part of page goes here.

Example for Wikipedia:WikiProject Athletics with rounding:

{{Start tab
| tab-1         = Current page
| link-1        = Template:Start tab
| image-1       = Curly Brackets.svg
| tab-2         = Project
| link-2        = Wikipedia:WikiProject Athletics
| tab-3         = Project talk
| link-3        = Wikipedia talk:WikiProject Athletics
| tab-4         = Olympics Project
| link-4        = Wikipedia:WikiProject Olympics
| image-4       = Olympic Rings.svg
| rounding      = 5em
| border        = 1px solid #808080
| off tab color = #f0f0ff
| tab alignment = center 
| frame         = yes
}}

Text for main part of page goes here.

{{End tab
| tab-1         = Current page
| link-1        = Template:Start tab
| tab-2         = Project
| link-2        = Wikipedia:WikiProject Athletics
| tab-3         = Project talk
| link-3        = Wikipedia talk:WikiProject Athletics
| tab-4         = Olympics Project
| link-4        = Wikipedia:WikiProject Olympics
| rounding      = 5em
| border        = 1px solid #808080
| off tab color = #f0f0ff
| frame         = yes
}}
 Current page Current page Project Project talk Olympics Project Olympics Project 

Text for main part of page goes here.

See also[sunting sumber]