Difference between revisions of "Template:Collapsible list"
From LIMSWiki
Jump to navigationJump to searchShawndouglas (talk | contribs) (Added template as needed for product listings in vendor pages.) |
Shawndouglas (talk | contribs) (Trying different set of code for this.) |
||
Line 1: | Line 1: | ||
<div class="NavFrame | <div class="NavFrame" style="{{#if: {{{frame_style|}}}|<!--then:-->{{{frame_style|}}}|<!--else:-->border:none; padding: 0;}}"> | ||
<div class="NavHead" style=" | <div class="NavHead" style="{{#if:{{{title_style|}}} |<!--then:-->{{{title_style|}}} |<!--else:-->width:100%; background:transparent" align="left}}">{{#if:{{{title|}}} |<!--then:-->{{{title|}}} |<!--else:-->List}}</div> | ||
<div class="NavContent" style="display:none; {{#if:{{{list_style|}}} |<!--then:-->{{{list_style|}}} |<!--else:-->text-align:left;}}"><!-- | |||
-->{{#if:{{{1|}}} |<!--then:-->{{{1|}}} }}<!-- | |||
< | -->{{#if:{{{2|}}} |<!--then:--></br>{{{2|}}} }}<!-- | ||
-->{{#if:{{{3|}}} |<!--then:--></br>{{{3|}}} }}<!-- | |||
-->{{#if:{{{4|}}} |<!--then:--></br>{{{4|}}} }}<!-- | |||
-->{{#if:{{{5|}}} |<!--then:--></br>{{{5|}}} }}<!-- | |||
-->{{#if:{{{6|}}} |<!--then:--></br>{{{6|}}} }}<!-- | |||
-->{{#if:{{{7|}}} |<!--then:--></br>{{{7|}}} }}<!-- | |||
-->{{#if:{{{8|}}} |<!--then:--></br>{{{8|}}} }}<!-- | |||
-->{{#if:{{{9|}}} |<!--then:--></br>{{{9|}}} }}<!-- | |||
-->{{#if:{{{10|}}} |<!--then:--></br>{{{10|}}} }}<!-- | |||
-->{{#if:{{{11|}}} |<!--then:--></br>{{{11|}}} }}<!-- | |||
-->{{#if:{{{12|}}} |<!--then:--></br>{{{12|}}} }}<!-- | |||
-->{{#if:{{{13|}}} |<!--then:--></br>{{{13|}}} }}<!-- | |||
-->{{#if:{{{14|}}} |<!--then:--></br>{{{14|}}} }}<!-- | |||
-->{{#if:{{{15|}}} |<!--then:--></br>{{{15|}}} }}<!-- | |||
-->{{#if:{{{16|}}} |<!--then:--></br>{{{16|}}} }}<!-- | |||
-->{{#if:{{{17|}}} |<!--then:--></br>{{{17|}}} }}<!-- | |||
-->{{#if:{{{18|}}} |<!--then:--></br>{{{18|}}} }}<!-- | |||
-->{{#if:{{{19|}}} |<!--then:--></br>{{{19|}}} }}<!-- | |||
-->{{#if:{{{20|}}} |<!--then:--></br>{{{20|}}} }}<!-- | |||
-->{{#if:{{{21|}}} |<!--then:--></br>{{{21|}}} }}<!-- | |||
-->{{#if:{{{22|}}} |<!--then:--></br>{{{22|}}} }}<!-- | |||
-->{{#if:{{{23|}}} |<!--then:--></br>{{{23|}}} }}<!-- | |||
-->{{#if:{{{24|}}} |<!--then:--></br>{{{24|}}} }}<!-- | |||
-->{{#if:{{{25|}}} |<!--then:--></br>{{{25|}}} }}<!-- | |||
-->{{#if:{{{26|}}} |<!--then:--></br>{{{26|}}} }}<!-- | |||
-->{{#if:{{{27|}}} |<!--then:--></br>{{{27|}}} }}<!-- | |||
-->{{#if:{{{28|}}} |<!--then:--></br>{{{28|}}} }}<!-- | |||
-->{{#if:{{{29|}}} |<!--then:--></br>{{{29|}}} }}<!-- | |||
-->{{#if:{{{30|}}} |<!--then:--></br>{{{30|}}} }}<!-- | |||
-->{{#if:{{{31|}}} |<!--then:--></br>{{{31|}}} }}<!-- | |||
-->{{#if:{{{32|}}} |<!--then:--></br>{{{32|}}} }}<!-- | |||
-->{{#if:{{{33|}}} |<!--then:--></br>{{{33|}}} }}<!-- | |||
-->{{#if:{{{34|}}} |<!--then:--></br>{{{34|}}} }}<!-- | |||
-->{{#if:{{{35|}}} |<!--then:--></br>{{{35|}}} }}<!-- | |||
-->{{#if:{{{36|}}} |<!--then:--></br>{{{36|}}} }}<!-- | |||
-->{{#if:{{{37|}}} |<!--then:--></br>{{{37|}}} }}<!-- | |||
-->{{#if:{{{38|}}} |<!--then:--></br>{{{38|}}} }}<!-- | |||
-->{{#if:{{{39|}}} |<!--then:--></br>{{{39|}}} }}<!-- | |||
-->{{#if:{{{40|}}} |<!--then:--></br>{{{40|}}} }}<!-- | |||
-->{{#if:{{{41|}}} |<!--then:--></br>{{{41|}}} }}<!-- | |||
-->{{#if:{{{42|}}} |<!--then:--></br>{{{42|}}} }}<!-- | |||
-->{{#if:{{{43|}}} |<!--then:--></br>{{{43|}}} }}<!-- | |||
-->{{#if:{{{44|}}} |<!--then:--></br>{{{44|}}} }}<!-- | |||
-->{{#if:{{{45|}}} |<!--then:--></br>{{{45|}}} }}<!-- | |||
-->{{#if:{{{46|}}} |<!--then:--></br>{{{46|}}} }}<!-- | |||
-->{{#if:{{{47|}}} |<!--then:--></br>{{{47|}}} }}<!-- | |||
-->{{#if:{{{48|}}} |<!--then:--></br>{{{48|}}} }}<!-- | |||
-->{{#if:{{{49|}}} |<!--then:--></br>{{{49|}}} }}<!-- | |||
-->{{#if:{{{50|}}} |<!--then:--></br>{{{50|}}} }}<!-- | |||
--></div> | |||
</div> | |||
<noinclude>{{template doc}}<!-- | |||
</div><noinclude>{{ | ========= | ||
Please add interwiki links etc to the /doc page, not here; thanks! | |||
========= | |||
--></noinclude> |
Revision as of 21:19, 27 May 2011
List
[edit] [ ] 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]]}}
European Free Trade Association Members
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 | |
---|---|
Motto: Together Aspire - Together Achieve | |
Location in the province of Ontario, Canada | |
Country | Canada |
Province | Ontario |
Incorporated | June 9, 1846 |
Government | |
- Mayor | Fred Eisenberger |
- City Council | Hamilton City Council |
- MPs | List of MPs
|
- MPPs | List of 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...) }}
The above documentation is transcluded from Template:Collapsible list/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |