Wiktenauer logo.png

Difference between revisions of "Template:Collapsible list"

From Wiktenauer
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="NavFrame collapsed" style="border:none;padding:0;">
+
{{#if: {{{4|}}} | {{plainlist | {{{1|}}} | {{{2|}}} }}
<div style="background:transparent;" align="left"><!--
+
<div class="NavFrame collapsed" style="border:none; padding:0;">
  --><!--{{#if:{{{title|}}} |{{{title|}}} |List}}-->{{plainlist | {{{1|}}} | {{{2|}}} | {{{3|}}} }}<!--
+
<div class="NavHead" style="background:transparent; font-weight:normal; line-height: 1.5em; " align="left"><!--
 +
  -->{{{3|}}}<!--
 
  --></div>
 
  --></div>
<ul class="NavContent" style="text-align:left; margin-top: 0; margin-bottom: 0; line-height: inherit"><!--
+
<ul class="NavContent" style="list-style: none none; margin-left: 0; text-align:left; margin-top: 0; margin-bottom: 0; line-height:1.5em;"><!--
  -->{{#if:{{{4|}}}  |<li style="line-height: inherit; margin: 0">{{{4|}}} </li>}}<!--
+
  -->{{#if:{{{4|}}}  |<li style="line-height: 1.5em; margin: 0">{{{4|}}} </li>}}<!--
  -->{{#if:{{{5|}}}  |<li style="line-height: inherit; margin: 0">{{{5|}}} </li>}}<!--
+
  -->{{#if:{{{5|}}}  |<li style="line-height: 1.5em; margin: 0">{{{5|}}} </li>}}<!--
  -->{{#if:{{{6|}}}  |<li style="line-height: inherit; margin: 0">{{{6|}}} </li>}}<!--
+
  -->{{#if:{{{6|}}}  |<li style="line-height: 1.5em; margin: 0">{{{6|}}} </li>}}<!--
  -->{{#if:{{{7|}}}  |<li style="line-height: inherit; margin: 0">{{{7|}}} </li>}}<!--
+
  -->{{#if:{{{7|}}}  |<li style="line-height: 1.5em; margin: 0">{{{7|}}} </li>}}<!--
  -->{{#if:{{{8|}}}  |<li style="line-height: inherit; margin: 0">{{{8|}}} </li>}}<!--
+
  -->{{#if:{{{8|}}}  |<li style="line-height: 1.5em; margin: 0">{{{8|}}} </li>}}<!--
  -->{{#if:{{{9|}}}  |<li style="line-height: inherit; margin: 0">{{{9|}}} </li>}}<!--
+
  -->{{#if:{{{9|}}}  |<li style="line-height: 1.5em; margin: 0">{{{9|}}} </li>}}<!--
  -->{{#if:{{{10|}}} |<li style="line-height: inherit; margin: 0">{{{10|}}}</li>}}<!--
+
  -->{{#if:{{{10|}}} |<li style="line-height: 1.5em; margin: 0">{{{10|}}}</li>}}<!--
  -->{{#if:{{{11|}}} |<li style="line-height: inherit; margin: 0">{{{11|}}}</li>}}<!--
+
  -->{{#if:{{{11|}}} |<li style="line-height: 1.5em; margin: 0">{{{11|}}}</li>}}<!--
  -->{{#if:{{{12|}}} |<li style="line-height: inherit; margin: 0">{{{12|}}}</li>}}<!--
+
  -->{{#if:{{{12|}}} |<li style="line-height: 1.5em; margin: 0">{{{12|}}}</li>}}<!--
  -->{{#if:{{{13|}}} |<li style="line-height: inherit; margin: 0">{{{13|}}}</li>}}<!--
+
  -->{{#if:{{{13|}}} |<li style="line-height: 1.5em; margin: 0">{{{13|}}}</li>}}<!--
  -->{{#if:{{{14|}}} |<li style="line-height: inherit; margin: 0">{{{14|}}}</li>}}<!--
+
  -->{{#if:{{{14|}}} |<li style="line-height: 1.5em; margin: 0">{{{14|}}}</li>}}<!--
  -->{{#if:{{{15|}}} |<li style="line-height: inherit; margin: 0">{{{15|}}}</li>}}<!--
+
  -->{{#if:{{{15|}}} |<li style="line-height: 1.5em; margin: 0">{{{15|}}}</li>}}<!--
  -->{{#if:{{{16|}}} |<li style="line-height: inherit; margin: 0">{{{16|}}}</li>}}<!--
+
  -->{{#if:{{{16|}}} |<li style="line-height: 1.5em; margin: 0">{{{16|}}}</li>}}<!--
  -->{{#if:{{{17|}}} |<li style="line-height: inherit; margin: 0">{{{17|}}}</li>}}<!--
+
  -->{{#if:{{{17|}}} |<li style="line-height: 1.5em; margin: 0">{{{17|}}}</li>}}<!--
  -->{{#if:{{{18|}}} |<li style="line-height: inherit; margin: 0">{{{18|}}}</li>}}<!--
+
  -->{{#if:{{{18|}}} |<li style="line-height: 1.5em; margin: 0">{{{18|}}}</li>}}<!--
  -->{{#if:{{{19|}}} |<li style="line-height: inherit; margin: 0">{{{19|}}}</li>}}<!--
+
  -->{{#if:{{{19|}}} |<li style="line-height: 1.5em; margin: 0">{{{19|}}}</li>}}<!--
  -->{{#if:{{{20|}}} |<li style="line-height: inherit; margin: 0">{{{20|}}}</li>}}<!--
+
  -->{{#if:{{{20|}}} |<li style="line-height: 1.5em; margin: 0">{{{20|}}}</li>}}<!--
  -->{{#if:{{{21|}}} |<li style="line-height: inherit; margin: 0">{{{21|}}}</li>}}<!--
+
  -->{{#if:{{{21|}}} |<li style="line-height: 1.5em; margin: 0">{{{21|}}}</li>}}<!--
  -->{{#if:{{{22|}}} |<li style="line-height: inherit; margin: 0">{{{22|}}}</li>}}<!--
+
  -->{{#if:{{{22|}}} |<li style="line-height: 1.5em; margin: 0">{{{22|}}}</li>}}<!--
  -->{{#if:{{{23|}}} |<li style="line-height: inherit; margin: 0">{{{23|}}}</li>}}<!--
+
  -->{{#if:{{{23|}}} |<li style="line-height: 1.5em; margin: 0">{{{23|}}}</li>}}<!--
  -->{{#if:{{{24|}}} |<li style="line-height: inherit; margin: 0">{{{24|}}}</li>}}<!--
+
  -->{{#if:{{{24|}}} |<li style="line-height: 1.5em; margin: 0">{{{24|}}}</li>}}<!--
  -->{{#if:{{{25|}}} |<li style="line-height: inherit; margin: 0">{{{25|}}}</li>}}<!--
+
  -->{{#if:{{{25|}}} |<li style="line-height: 1.5em; margin: 0">{{{25|}}}</li>}}<!--
  -->{{#if:{{{26|}}} |<li style="line-height: inherit; margin: 0">{{{26|}}}</li>}}<!--
+
  -->{{#if:{{{26|}}} |<li style="line-height: 1.5em; margin: 0">{{{26|}}}</li>}}<!--
  -->{{#if:{{{27|}}} |<li style="line-height: inherit; margin: 0">{{{27|}}}</li>}}<!--
+
  -->{{#if:{{{27|}}} |<li style="line-height: 1.5em; margin: 0">{{{27|}}}</li>}}<!--
  -->{{#if:{{{28|}}} |<li style="line-height: inherit; margin: 0">{{{28|}}}</li>}}<!--
+
  -->{{#if:{{{28|}}} |<li style="line-height: 1.5em; margin: 0">{{{28|}}}</li>}}<!--
  -->{{#if:{{{29|}}} |<li style="line-height: inherit; margin: 0">{{{29|}}}</li>}}<!--
+
  -->{{#if:{{{29|}}} |<li style="line-height: 1.5em; margin: 0">{{{29|}}}</li>}}<!--
  -->{{#if:{{{30|}}} |<li style="line-height: inherit; margin: 0">{{{30|}}}</li>}}<!--
+
  -->{{#if:{{{30|}}} |<li style="line-height: 1.5em; margin: 0">{{{30|}}}</li>}}<!--
  -->{{#if:{{{31|}}} |<li style="line-height: inherit; margin: 0">{{{31|}}}</li>}}<!--
+
  -->{{#if:{{{31|}}} |<li style="line-height: 1.5em; margin: 0">{{{31|}}}</li>}}<!--
  -->{{#if:{{{32|}}} |<li style="line-height: inherit; margin: 0">{{{32|}}}</li>}}<!--
+
  -->{{#if:{{{32|}}} |<li style="line-height: 1.5em; margin: 0">{{{32|}}}</li>}}<!--
  -->{{#if:{{{33|}}} |<li style="line-height: inherit; margin: 0">{{{33|}}}</li>}}<!--
+
  -->{{#if:{{{33|}}} |<li style="line-height: 1.5em; margin: 0">{{{33|}}}</li>}}<!--
  -->{{#if:{{{34|}}} |<li style="line-height: inherit; margin: 0">{{{34|}}}</li>}}<!--
+
  -->{{#if:{{{34|}}} |<li style="line-height: 1.5em; margin: 0">{{{34|}}}</li>}}<!--
  -->{{#if:{{{35|}}} |<li style="line-height: inherit; margin: 0">{{{35|}}}</li>}}<!--
+
  -->{{#if:{{{35|}}} |<li style="line-height: 1.5em; margin: 0">{{{35|}}}</li>}}<!--
  -->{{#if:{{{36|}}} |<li style="line-height: inherit; margin: 0">{{{36|}}}</li>}}<!--
+
  -->{{#if:{{{36|}}} |<li style="line-height: 1.5em; margin: 0">{{{36|}}}</li>}}<!--
  -->{{#if:{{{37|}}} |<li style="line-height: inherit; margin: 0">{{{37|}}}</li>}}<!--
+
  -->{{#if:{{{37|}}} |<li style="line-height: 1.5em; margin: 0">{{{37|}}}</li>}}<!--
  -->{{#if:{{{38|}}} |<li style="line-height: inherit; margin: 0">{{{38|}}}</li>}}<!--
+
  -->{{#if:{{{38|}}} |<li style="line-height: 1.5em; margin: 0">{{{38|}}}</li>}}<!--
  -->{{#if:{{{39|}}} |<li style="line-height: inherit; margin: 0">{{{39|}}}</li>}}<!--
+
  -->{{#if:{{{39|}}} |<li style="line-height: 1.5em; margin: 0">{{{39|}}}</li>}}<!--
  -->{{#if:{{{40|}}} |<li style="line-height: inherit; margin: 0">{{{40|}}}</li>}}<!--
+
  -->{{#if:{{{40|}}} |<li style="line-height: 1.5em; margin: 0">{{{40|}}}</li>}}<!--
  -->{{#if:{{{41|}}} |<li style="line-height: inherit; margin: 0">{{{41|}}}</li>}}<!--
+
  -->{{#if:{{{41|}}} |<li style="line-height: 1.5em; margin: 0">{{{41|}}}</li>}}<!--
  -->{{#if:{{{42|}}} |<li style="line-height: inherit; margin: 0">{{{42|}}}</li>}}<!--
+
  -->{{#if:{{{42|}}} |<li style="line-height: 1.5em; margin: 0">{{{42|}}}</li>}}<!--
  -->{{#if:{{{43|}}} |<li style="line-height: inherit; margin: 0">{{{43|}}}</li>}}<!--
+
  -->{{#if:{{{43|}}} |<li style="line-height: 1.5em; margin: 0">{{{43|}}}</li>}}<!--
  -->{{#if:{{{44|}}} |<li style="line-height: inherit; margin: 0">{{{44|}}}</li>}}<!--
+
  -->{{#if:{{{44|}}} |<li style="line-height: 1.5em; margin: 0">{{{44|}}}</li>}}<!--
  -->{{#if:{{{45|}}} |<li style="line-height: inherit; margin: 0">{{{45|}}}</li>}}<!--
+
  -->{{#if:{{{45|}}} |<li style="line-height: 1.5em; margin: 0">{{{45|}}}</li>}}<!--
  -->{{#if:{{{46|}}} |<li style="line-height: inherit; margin: 0">{{{46|}}}</li>}}<!--
+
  -->{{#if:{{{46|}}} |<li style="line-height: 1.5em; margin: 0">{{{46|}}}</li>}}<!--
  -->{{#if:{{{47|}}} |<li style="line-height: inherit; margin: 0">{{{47|}}}</li>}}<!--
+
  -->{{#if:{{{47|}}} |<li style="line-height: 1.5em; margin: 0">{{{47|}}}</li>}}<!--
  -->{{#if:{{{48|}}} |<li style="line-height: inherit; margin: 0">{{{48|}}}</li>}}<!--
+
  -->{{#if:{{{48|}}} |<li style="line-height: 1.5em; margin: 0">{{{48|}}}</li>}}<!--
  -->{{#if:{{{49|}}} |<li style="line-height: inherit; margin: 0">{{{49|}}}</li>}}<!--
+
  -->{{#if:{{{49|}}} |<li style="line-height: 1.5em; margin: 0">{{{49|}}}</li>}}<!--
  -->{{#if:{{{50|}}} |<li style="line-height: inherit; margin: 0">{{{50|}}}</li>}}<!--
+
  -->{{#if:{{{50|}}} |<li style="line-height: 1.5em; margin: 0">{{{50|}}}</li>}}<!--
 
  --></ul>
 
  --></ul>
</div><noinclude>{{documentation}}</noinclude>
+
</div>
 +
| {{plainlist | {{{1|}}} | {{{2|}}} | {{{3|}}} }} }}<noinclude>{{documentation}}</noinclude>

Latest revision as of 03:10, 2 August 2015

[edit] [history] [purge] Documentation icon Template documentation

Syntax

{{Collapsible list
|framestyle = <!--(optional)-->
|title = 
|titlestyle = <!--(optional)-->
|liststyle  = <!--(optional)-->
|1 =          <!--(First item in list)--->
|2 =          <!--(Second item in list)-->
|3 =          <!--(Third item in list)--->
|...
}}
Default state

Specifying expand = true, or any non-blank value, will set the default state to expanded.

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. Template:Infobox settlement

{{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...)
}}