ແມ່ແບບ:Collapsible list
| ແມ່ແບບນີ້ໃຊ້ລູອາ |
This template produces a collapsible list. It is possible to set CSS styles for the "frame" (the <div>...</div> tags surrounding the list), for the list title, and for the list items. The template supports an unlimited number of list items.
Syntax
[ດັດແກ້]{{collapsible list
|expand = <!--(optional)-->
|framestyle = <!--(optional)-->
|titlestyle = <!--(optional)-->
|title =
|liststyle = <!--(optional)-->
|hlist = <!--(optional)-->
|bullets = <!--(optional)-->
| [1 = ] <!--(First item in list; the "1 =" is usually optional)-->
| [2 = ] <!--(Second item in list; ditto)-->
| [3 = ] <!--(Third item in list; etc.)--->
| ...
}}
Parameters
[ດັດແກ້]- Positional parameters (
1,2,3...) - these are the list items. If no list items are present, the module will output nothing. expand- specifyingexpand = true, or any non-blank value, will set the default state to expanded.framestyle- a custom css style for the<div>...</div>tags surrounding the list, e.g.font-size: 90%;.titlestyle- a custom css style for the<div>...</div>tags surrounding the title.title- the list title.titlestyle- a custom css style for the<ul>...</ul>tags surrounding the list.hlist- specifyinghlist = true, or any non-blank value, will cause the template to output a horizontal list.bullets- specifyingbullets = true, or any non-blank value, will cause the template to produce bullets for each list item.
Examples
[ດັດແກ້]{{collapsible list
| title = [[European Free Trade Association]] Members
| [[Iceland]]
| [[Liechtenstein]]
| [[Norway]]
| [[Switzerland]]
}}
Example of a list without borders because it's within an infobox
[ດັດແກ້]In these examples, the fields leader_name2 and leader_name3 have been changed to use collapsible list.
City of Hamilton | |
|---|---|
| ຄຳຂວັນ: Together Aspire - Together Achieve | |
Location in the province of Ontario, Canada | |
| Country | Canada |
| Province | Ontario |
| Incorporated | June 9, 1846 |
| ການປົກຄອງ | |
| • Mayor | Fred Eisenberger |
| • City Council | Hamilton, Ontario City Council |
| • MPs | |
| • MPPs | |
{{Infobox settlement
|official_name = City of Hamilton
...truncated...
|leader_title = [[Mayor]]
|leader_name = [[Fred Eisenberger]]
|leader_title1 = [[City Council]]
|leader_name1 = [[Hamilton City Council]]
|leader_title2 = [[Member of Parliament (Canada)|MPs]]
|leader_name2 =
{{Collapsible list
|framestyle=border:none; padding:0; <!--Hides borders and improves row spacing-->
|title=List of MPs
|1=[[Dean Allison]] |2=[[Chris Charlton]] |3=[[David Christopherson]] |4=[[Wayne Marston]] |5=[[David Sweet]]
}}
|leader_title3 = [[Member of Provincial Parliament (Ontario)|MPPs]]
|leader_name3 =
{{Collapsible list
|framestyle=border:none; padding:0; <!--as above-->
|title=List of MPPs
|1=[[Marie Bountrogianni]] |2=[[Andrea Horwath]] |3=[[Judy Marsales]] |4=[[Ted McMeekin]] |5=[[Jennifer Mossop]]
}}
|established_title = [[Municipal corporation|Incorporated]]
|established_date = June 9, 1846
(...etc...)
}}
ຂໍ້ມູນແມ່ແບບ
[ດັດແກ້]ຂໍ້ມູນແມ່ແບບສຳລັບ Collapsible list
ສ້າງລາຍການ HTML ທີ່ສາມາດຍຸບໄດ້
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ຊື່ | title | ຊື່ຂອງລາຍການ (ສະແດງຢູ່ຂ້າງລິ້ງ [ສະແດງ/ຍຸບ] ຂອງລາຍການສະເໝີ) | String | suggested |
| ລາຍການແນວນອນ | hlist | Use value 'on' or 'true' to produce a horizontal rather than vertical list
| String | optional |
| Bullets | bullets | Set as 'on' or 'true' to place a bullet point before each list item
| String | optional |
| ຂະຫຍາຍລາຍການ | expand | ຂະຫຍາຍລາຍການແທນທີ່ຈະຍຸບ
| String | optional |
| ລາຍການທຳອິດ | 1 | ລາຍການດຽວ | Content | suggested |
| Frame style | framestyle frame_style | Custom CSS styling applied the template overall (title and list).
| String | optional |
| Title style | titlestyle title_style | CSS styling applied to the title
| String | optional |
| List style | liststyle list_style | CSS styling applied solely to the list itself
| String | optional |
| ລາຍການທີສອງ | 2 | ລາຍການດຽວ | Content | suggested |
| ລາຍການທີສາມ | 3 | ລາຍການດຽວ | Content | suggested |
| ລາຍການທີສີ່ | 4 | ລາຍການດຽວ | Content | optional |
| 5 | 5 | no description | Content | optional |
| 6 | 6 | no description | Content | optional |
| 7 | 7 | no description | Content | optional |
| 8 | 8 | no description | Content | optional |
| 9 | 9 | no description | Content | optional |
| 10 | 10 | no description | Content | optional |
| ຄູ່ມືການໃຊ້ງານທີ່ສະແດງຂ້າງເທິງນີ້ແມ່ນດຶງມາຈາກ ແມ່ແບບ:Collapsible list/doc (ແກ້ | ປະຫວັດ) ຜູ້ຂຽນສາມາດທຳການທົດລອງໄດ້ທີ່ກະບະຊາຍ (ສ້າງ | ຄັດລອກ) ແລະຊຸດທົດສອບ (ສ້າງ) ຂອງແມ່ແບບນີ້ ກະລຸນາເພິ່ມໝວດໃສ່ໜ້າຍ່ອຍ /doc ໜ້າຍ່ອຍຂອງແມ່ແບບນີ້ |