แม่แบบ:Collapsible list/doc

This template produces a collapsible list. It is possible to set CSS styles for the "frame" (the div tags surrounding the list), for the list title, and for the list items. The template supports an unlimited number of list items.

**Syntax**

**Parameters**
 Positional parameters (1, 2, 3...) - these are the list items. If no list items are present, the module will output nothing.- expand - specifying expand = true, or any non-blank value, will set the default state to expanded.- framestyle - a custom css style for the div tags surrounding the list, e.g. font-size: 90%;.- titlestyle - a custom css style for the div tags surrounding the title.- title - the list title.- titlestyle - a custom css style for the ul tags surrounding the list.- hlist - specifying hlist = true, or any non-blank value, will cause the template to output a horizontal list.- bullets - specifying bullets = true, or any non-blank value, will cause the template to produce bullets for each list item.

**Examples**

**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.

**ข้อมูลแม่แบบ**
{
	"params": {
		"1": {
			"label": "รายการแรก",
			"description": "รายการเดียว",
			"type": "content",
			"suggested": true
		},
		"2": {
			"label": "รายการที่สอง",
			"description": "รายการเดียว",
			"type": "content",
			"suggested": true
		},
		"3": {
			"label": "รายการที่สาม",
			"description": "รายการเดียว",
			"type": "content",
			"suggested": true
		},
		"4": {
			"label": "รายการที่สี่",
			"description": "รายการเดียว",
			"type": "content"
		},
		"5": {
			"type": "content"
		},
		"6": {
			"type": "content"
		},
		"7": {
			"type": "content"
		},
		"8": {
			"type": "content"
		},
		"9": {
			"type": "content"
		},
		"10": {
			"type": "content"
		},
		"expand": {
			"label": "ขยายรายการ",
			"description": "ขยายรายการแทนที่จะยุบ",
			"example": "true",
			"type": "string",
			"autovalue": "true"
		},
		"framestyle": {
			"aliases": 
				"frame_style"
			,
			"label": "Frame style",
			"description": "Custom CSS styling applied the template overall (title and list).",
			"example": "border: 1px;",
			"type": "string"
		},
		"titlestyle": {
			"aliases": 
				"title_style"
			,
			"label": "Title style",
			"description": "CSS styling applied to the title",
			"example": "color:brown;",
			"type": "string"
		},
		"title": {
			"label": "ชื่อ",
			"description": "ชื่อของรายการ (แสดงอยู่ข้างลิงก์ แสดง/ยุบ ของรายการเสมอ)",
			"type": "string",
			"suggested": true
		},
		"liststyle": {
			"aliases": 
				"list_style"
			,
			"label": "List style",
			"description": "CSS styling applied solely to the list itself",
			"example": "list-style-type: square;",
			"type": "string"
		},
		"hlist": {
			"label": "รายการแนวนอน",
			"description": "Use value 'on' or 'true' to produce a horizontal rather than vertical list",
			"example": "true",
			"type": "string",
			"autovalue": "true"
		},
		"bullets": {
			"label": "Bullets",
			"description": "Set as 'on' or 'true' to place a bullet point before each list item",
			"example": "true",
			"type": "string",
			"autovalue": "true"
		}
	},
	"description": "สร้างรายการ HTML ที่สามารถยุบได้",
	"paramOrder": 
		"title",
		"hlist",
		"bullets",
		"expand",
		"1",
		"framestyle",
		"titlestyle",
		"liststyle",
		"2",
		"3",
		"4",
		"5",
		"6",
		"7",
		"8",
		"9",
		"10"
	,
	"format": "block"
}