Home Page - YouTube Channel



Template:Collapsible list - Simple English Wikipedia, the free encyclopedia

Template:Collapsible list

From the Simple English Wikipedia, the free encyclopedia that anyone can change

[view] [edit] Template documentation
The template documentation below is transcluded from Template:Collapsible list/doc [edit]


Contents

[change] Syntax

{{Collapsible list
|title       = 
|frame_style = <!-- (optional) -->
|title_style = <!-- (optional) -->
|list_style  = <!-- (optional) -->
|1           = First item of list
|2           = Second item of list
|3           = Third item of list
|...
}}

[change] Syntax for an always collapsed list

{{Collapsible list
|title       = 
|frame_style = <!-- (blank) -->
|title_style = <!-- (optional) -->
|list_style  = text-align:left;display:none; 
|1           = First item of list
|2           = Second item of list
|3           = Third item of list
|...
}}


[change] Syntax for an always collapsed list without borders (for use within an infobox)

{{Collapsible list
|title       = 
|frame_style = border:none; padding: 0;
|title_style = <!-- (optional) -->
|list_style  = text-align:left;display:none; 
|1           = First item of list
|2           = Second item of list
|3           = Third item of list
|...
}}


[change] Examples

{{Collapsible list |title=[[European Free Trade Association]] Members |[[Iceland]] |[[Liechtenstein]] |[[Norway]] |[[Switzerland]]}}


[change] Example of a list that's always collapsed

{{Collapsible list 
|title=[[Great Lakes]] States 
|frame_style=border:1px solid #aaa; padding: 1;
|list_style  = text-align:left;display:none; <!--NOTICE: list_style makes the list stay collapsed-->
|1=[[Michigan]] 
|2=[[Ohio]] 
|3=[[Indiana]] 
|4=[[Illinois]]
|5= [[Minnesota]]<!-- <!-- the #= is optional, but if used, then all entries must have it-->-->
|6= [[Wisconsin]]
|7= [[Pennsylvania]]
|8= [[New York]]
}}


[change] Example of a list that's always collapsed and 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.

{{Infobox City
|official_name          = City of Hamilton
...Truncated for display reasons... 

|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
|title       = List of MPs
|frame_style=border:none; padding: 0; <!--NOTICE: This will hide the borders and make rows closer (padding)-->
|title_style = 
|list_style  = text-align:left;display:none; <!-- NOTICE: This will always collapse the list-->
|1=[[Dean Allison]] 
|2=[[Chris Charlton]] 
|3=[[David Christopherson]]
|4=[[Wayne Marston]]
|5=[[David Sweet]]
}}
|leader_title3          = [[Member of Provincial Parliament|MPPs]]

|leader_name3           = {{Collapsible list
|title       = List of MPPs
|frame_style=border:none; padding: 0; <!--NOTICE: This will hide the borders and make rows closer (padding)-->
|title_style = 
|list_style  = text-align:left;display:none;
|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]]<ref name=1846est>Provincial Statutes of Canada 1846 9° vict. pg 981 Chapter ...}} 
City of Hamilton
Official flag of City of Hamilton
Flag
Motto: "Together Aspire - Together Achieve"
Location in the province of Ontario, Canada
Location in the province of Ontario, Canada
Country Canada
Province Ontario
History  
Incorporated June 9 1846[1]

</ref>

Government  
 - Mayor Fred Eisenberger
 - City Council Hamilton City Council
 - MPs
 - MPPs

Wikipedia HTML 2008 in other languages

100 000 +

Česká (Czech)  •  English  •  Deutsch (German)  •  日本語 (Japanese)  •  Français (French)  •  Polski (Polish)  •  Suomi (Finnish)  •  Svenska (Swedish)  •  Nederlands (Dutch)  •  Español (Spanish)  •  Italiano (Italian)  •  Norsk (Norwegian Bokmål)  •  Português (Portuguese)  •  Română (Romanian)  •  Русский (Russian)  •  Türkçe (Turkish)  •  Українська (Ukrainian)  •  中文 (Chinese)

10 000 +

العربية (Arabic)  •  Български (Bulgarian)  •  Bosanski (Bosnian)  •  Català (Catalan)  •  Cymraeg (Welsh)  •  Dansk (Danish)  •  Ελληνικά (Greek)  •  Esperanto  •  Eesti (Estonian)  •  Euskara (Basque)  •  Galego (Galician)  •  עברית (Hebrew)  •  हिन्दी (Hindi)  •  Hrvatski (Croatian)  •  Magyar (Hungarian)  •  Ido  •  Bahasa Indonesia (Indonesian)  •  Íslenska (Icelandic)  •  Basa Jawa (Javanese)  •  한국어 (Korean)  •  Latina (Latin)  •  Lëtzebuergesch (Luxembourgish)  •  Lietuvių (Lithuanian)  •  Latviešu (Latvian)  •  Bahasa Melayu (Malay)  •  Plattdüütsch (Low Saxon)  •  Norsk (Norwegian Nynorsk)  •  فارسی (Persian)  •  Sicilianu (Sicilian)  •  Slovenčina (Slovak)  •  Slovenščina (Slovenian)  •  Српски (Serbian)  •  Basa Sunda (Sundanese)  •  தமிழ் (Tamil)  •  ไทย (Thai)  •  Tiếng Việt (Vietnamese)

1 000 +

Afrikaans  •  Asturianu (Asturian)  •  Беларуская (Belarusian)  •  Kaszëbsczi (Kashubian)  •  Frysk (Western Frisian)  •  Gaeilge (Irish)  •  Interlingua  •  Kurdî (Kurdish)  •  Kernewek (Cornish)  •  Māori  •  Bân-lâm-gú (Southern Min)  •  Occitan  •  संस्कृत (Sanskrit)  •  Scots  •  Tatarça (Tatar)  •  اردو (Urdu) Walon (Walloon)  •  יידיש (Yiddish)  •  古文/文言文 (Classical Chinese)

100 +

Nehiyaw (Cree)  •  словѣньскъ (Old Church Slavonic)  •  gutisk (Gothic)  •  ລາວ (Laos)