Templat:Collapsible list
Sintaks
sunting{{Collapsible list |framestyle = <!--(opsional)--> |title = |titlestyle = <!--(opsional)--> |liststyle = <!--(opsional)--> |1 = <!--(First item in list)---> |2 = <!--(Second item in list)--> |3 = <!--(Third item in list)---> |... }}
- Default state
Menentukan expand = true
, atau nilai yang tidak kosong, akan menset untuk menampilkan.
Contoh
sunting{{Collapsible list |title=Anggota [[European Free Trade Association]] |[[Islandia]] |[[Liechtenstein]] |[[Norwegia]] |[[Swiss]]}}
Contoh daftar tanpa border karena berada di dalam kotakinfo
suntingDalam contoh berikut, leader_name2 dan leader_name3 diubah sehingga menggunakan collapsible list.
City of Hamilton | |
---|---|
Motto: Together Aspire - Together Achieve | |
Letak provinsi di Ontario, Kanada | |
Negara | Kanada |
Provinsi | Ontario |
Dibentuk | 9 Juni 1846 |
Pemerintahan | |
• Wali kota | Fred Eisenberger |
• Dewan Kota | Hamilton, Ontario City Council |
• AP | |
• APP |
{{Infobox settlement |official_name = City of Hamilton ...truncated... |motto = Together Aspire - Together Achieve |image_skyline = HamiltonOntarioSkylineC.JPG |imagesize = 250px |image_caption = |image_map = Map of Ontario HAMILTON.svg |mapsize = 200px |map_caption = Letak provinsi di Ontario, Kanada |subdivision_type = Negara |subdivision_name = [[Kanada]] |subdivision_type1 = [[Provinsi dan teritori di Kanada|Provinsi]] |subdivision_name1 = [[Ontario]] |leader_title = [[Wali kota]] |leader_name = [[Fred Eisenberger]] |leader_title1 = [[Dewan Kota]] |leader_name1 = [[Hamilton, Ontario City Council]] |leader_title2 = [[Anggota Parlemen#Kanada|AP]] |leader_name2 = {{Collapsible list |framestyle=border:none; padding:0; <!--Hides borders and improves row spacing--> |title=Daftar AP |1=[[Dean Allison]] |2=[[Chris Charlton]] |3=[[David Christopherson]] |4=[[Wayne Marston]] |5=[[David Sweet]] }} |leader_title3 = [[Anggota Parlemen Provinsi (Ontario)|APP]] |leader_name3 = {{Collapsible list |framestyle=border:none; padding:0; <!--as above--> |title=Daftar APP |1=[[Marie Bountrogianni]] |2=[[Andrea Horwath]] |3=[[Judy Marsales]] |4=[[Ted McMeekin]] |5=[[Jennifer Mossop]] }} |established_title = [[Pembentukan munisipal|Dibentuk]] |established_date = 9 Juni 1846 (...etc...) }}