Template:Collapsible list: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
en>Guilherme Paula
No edit summary
en>Guilherme Paula
No edit summary
Line 10: Line 10:
Content
Content
=========
=========
-->{{#if:{{{1|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{1|}}}}}</div><!--
-->{{#if:{{{1|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{1|}}}}}</div><!--
-->{{#if:{{{2|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{2|}}}}}</div><!--
-->{{#if:{{{2|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{2|}}}}}</div><!--
-->{{#if:{{{3|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{3|}}}}}</div><!--
-->{{#if:{{{3|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{3|}}}}}</div><!--
-->{{#if:{{{4|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{4|}}}}}</div><!--
-->{{#if:{{{4|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{4|}}}}}</div><!--
-->{{#if:{{{5|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{5|}}}}}</div><!--
-->{{#if:{{{5|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{5|}}}}}</div><!--
-->{{#if:{{{6|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{6|}}}}}</div><!--
-->{{#if:{{{6|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{6|}}}}}</div><!--
-->{{#if:{{{7|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{7|}}}}}</div><!--
-->{{#if:{{{7|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{7|}}}}}</div><!--
-->{{#if:{{{8|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{8|}}}}}</div><!--
-->{{#if:{{{8|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{8|}}}}}</div><!--
-->{{#if:{{{9|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{9|}}}}}</div><!--
-->{{#if:{{{9|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{9|}}}}}</div><!--
-->{{#if:{{{10|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{10|}}}}}</div><!--
-->{{#if:{{{10|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{10|}}}}}</div><!--
-->{{#if:{{{11|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{11|}}}}}</div><!--
-->{{#if:{{{11|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{11|}}}}}</div><!--
-->{{#if:{{{12|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{12|}}}}}</div><!--
-->{{#if:{{{12|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{12|}}}}}</div><!--
-->{{#if:{{{13|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{13|}}}}}</div><!--
-->{{#if:{{{13|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{13|}}}}}</div><!--
-->{{#if:{{{14|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{14|}}}}}</div><!--
-->{{#if:{{{14|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{14|}}}}}</div><!--
-->{{#if:{{{15|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{15|}}}}}</div><!--
-->{{#if:{{{15|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{15|}}}}}</div><!--
-->{{#if:{{{16|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{16|}}}}}</div><!--
-->{{#if:{{{16|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{16|}}}}}</div><!--
-->{{#if:{{{17|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{17|}}}}}</div><!--
-->{{#if:{{{17|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{17|}}}}}</div><!--
-->{{#if:{{{18|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{18|}}}}}</div><!--
-->{{#if:{{{18|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{18|}}}}}</div><!--
-->{{#if:{{{19|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{19|}}}}}</div><!--
-->{{#if:{{{19|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{19|}}}}}</div><!--
-->{{#if:{{{20|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{20|}}}}}</div><!--
-->{{#if:{{{20|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{20|}}}}}</div><!--
-->{{#if:{{{21|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{21|}}}}}</div><!--
-->{{#if:{{{21|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{21|}}}}}</div><!--
-->{{#if:{{{22|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{22|}}}}}</div><!--
-->{{#if:{{{22|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{22|}}}}}</div><!--
-->{{#if:{{{23|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{23|}}}}}</div><!--
-->{{#if:{{{23|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{23|}}}}}</div><!--
-->{{#if:{{{24|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{24|}}}}}</div><!--
-->{{#if:{{{24|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{24|}}}}}</div><!--
-->{{#if:{{{25|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{25|}}}}}</div><!--
-->{{#if:{{{25|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{25|}}}}}</div><!--
-->{{#if:{{{26|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{26|}}}}}</div><!--
-->{{#if:{{{26|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{26|}}}}}</div><!--
-->{{#if:{{{27|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{27|}}}}}</div><!--
-->{{#if:{{{27|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{27|}}}}}</div><!--
-->{{#if:{{{28|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{28|}}}}}</div><!--
-->{{#if:{{{28|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{28|}}}}}</div><!--
-->{{#if:{{{29|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{29|}}}}}</div><!--
-->{{#if:{{{29|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{29|}}}}}</div><!--
-->{{#if:{{{30|}}} |<!--then:--><div class="NavContent" style="text-align:left;">{{{30|}}}}}</div><!--
-->{{#if:{{{30|}}} |<!--then:--><div class="NavContent" style="{{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}">{{{30|}}}}}</div><!--
--></div> <!--
--></div> <!--
=========
=========

Revision as of 13:28, 5 June 2007


Example of a list without borders because it is within an infobox

In these examples, the fields leader_name2 and leader_name3 have been changed to use collapsible list.

City of Hamilton
Motto: 
Together Aspire – Together Achieve
CountryCanada
ProvinceOntario
IncorporatedJune 9, 1846
Government
 • MayorFred Eisenberger
 • City CouncilHamilton, 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...)
}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Collapsible list in articles based on its TemplateData.

TemplateData for Collapsible list

Produces an HTML list that can be collapsed

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The list's title (Always in view beside the list's [show/hide] link).

Stringsuggested
Horizontal listhlist

Use value 'on' or 'true' to produce a horizontal rather than vertical list

Example
true
Auto value
true
Stringoptional
Bulletsbullets

Set as 'on' or 'true' to place a bullet point before each list item

Example
true
Auto value
true
Stringoptional
Expand listexpand

Expand the list instead of collapsing it

Example
true
Auto value
true
Stringoptional
First list item1

A single list item

Contentsuggested
Frame styleframestyle frame_style

Custom CSS styling applied the template overall (title and list).

Example
border: 1px;
Stringoptional
Title styletitlestyle title_style

CSS styling applied to the title

Example
color:brown;
Stringoptional
List styleliststyle list_style

CSS styling applied solely to the list itself

Example
list-style-type: square;
Stringoptional
Second list item2

A single list item

Contentsuggested
Third list item3

A single list item

Contentsuggested
Fourth list item4

A single list item

Contentoptional
55

no description

Contentoptional
66

no description

Contentoptional
77

no description

Contentoptional
88

no description

Contentoptional
99

no description

Contentoptional
1010

no description

Contentoptional