Lompat ke isi

Templat:Navbox with collapsible groups/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Contoh penggunaan

[sunting sumber]
  {{Navbox with collapsible groups
  |name = University of Michigan
  |state = uncollapsed
  |title = [[University of Michigan|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]]
  |titlestyle = background:#00008B;color:#FFD700;
  |listclass = hlist
  |groupstyle = background:#FFD700;color:#00008B;
  |image = 
  |selected = {{{1|}}}
  
  |group1 = [[University of Michigan#Academic profile|<span style="color:#00008B;">Academics</span>]]
  |abbr1 = academics
  |list1 =
  * [[University of Michigan College of Engineering|College of Engineering]]
  * [[University of Michigan College of Literature, Science, and the Arts|College of Literature, Science and the Arts]]
  * [[Gerald R. Ford School of Public Policy]]
  * [[University of Michigan Law School|Law School]]
  * [[University of Michigan Health System|Medical School]]
  * [[Ross School of Business]]
  * [[University of Michigan School of Education|School of Education]]
  * [[University of Michigan School of Information|School of Information]]
  * [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]]
  * [[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]]
  * [[University of Michigan School of Public Health|School of Public Health]]
  * [[Taubman College of Architecture and Urban Planning]]
  
  |group2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]]
  |abbr2 = athletics
  |state2 = uncollapsed
  |list2 =
  * [[Michigan Stadium]]
  * [[Crisler Arena]]
  * [[Yost Ice Arena]]
  * [[Michigan Wolverines]]
  * [[Michigan Wolverines football|Football]]
  * [[Michigan – Ohio State football rivalry|UM-OSU Rivalry]]
  * [[Little Brown Jug (American football)|Little Brown Jug]]
  * [[Paul Bunyan Trophy]]
  * [[Cold War (ice hockey)|Cold War]]
  
  |group3 = Campus
  |abbr3 = campus
  |list3 =
  * [[Angell Hall Observatory]]
  * [[Burton Memorial Tower|Burton Tower]]
  * [[The Diag]]
  * [[David M. Dennison Building|Dennison Building]]
  * [[Gerald R. Ford Presidential Library]]
  * [[Hill Auditorium]]
  * [[Lurie Tower]]
  * [[Matthaei Botanical Gardens]]
  * [[Michigan Union]]
  * [[Museums at the University of Michigan|Museums]]
  * [[Nichols Arboretum]]
  * [[University of Michigan Health System|UM Health System]]
  * [[University of Michigan Library|University Library]]
  }}

Membuat navbox berjenjang dari form navbox lain

[sunting sumber]

Contoh ini menunjukkan {{Navbox}}, {{Navbox with collapsible groups}} dan {{Navbox with columns}} semuanya bekerja bersama. Tekan tombol sunting bagian untuk melihat kode. Perhatikan bahwa setiap navbox anak memiliki parameter pertama yang diatur menggunakan child

[sunting sumber]

Anda dapat dengan mudah menyusun Navbox, termasuk {{Navbox with collapsible groups}}, untuk mendapatkan grup/daftar dalam jumlah tak terbatas. Contoh berikut menggunakan satu instance {{Navbox with collapsible groups}} untuk mendapatkan 10 grup pertama yang dapat diciutkan, instance digunakan secara berjenjang untuk mengahsilkan 10 berikutnya, dan instance berjenjang lainnya untuk mendapatkan 6. Lihat kode sumber untuk mempelajari caranya. Cukup sederhana untuk memperluas ini ke grup/daftar sebanyak yang Anda suka:

Lihat pula

[sunting sumber]