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) m (Protected "Template:Collapsible list" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div class="NavFrame {{#if:{{{expand|}}}||collapsed}}" style="{{#if:{{{frame_style|}}}{{{framestyle|}}} |{{{frame_style|}}}{{{framestyle|}}} |border:none;padding:0;}}"> | <div class="NavFrame {{#if:{{{expand|}}}||collapsed}}" style="{{#if:{{{frame_style|}}}{{{framestyle|}}} |{{{frame_style|}}}{{{framestyle|}}} |border:none;padding:0;}}"> | ||
<div class="NavHead" style="font-size:105%; {{#if:{{{title_style|}}}{{{titlestyle|}}} |{{{title_style|}}}{{{titlestyle|}}} |background:transparent;" align="left}}"><!-- | <div class="NavHead" style="font-size:105%; {{#if:{{{title_style|}}}{{{titlestyle|}}} |{{{title_style|}}}{{{titlestyle|}}} |background:transparent;" align="left}}"><!-- | ||
-->{{#if:{{{title|}}} |{{{title|}}} |List}}<!-- | |||
--></div> | --></div> | ||
< | <div class="NavContent" style="font-size:105%; {{#if:{{{list_style|}}}{{{liststyle|}}} |{{{list_style|}}}{{{liststyle|}}} |text-align:left;}}"><!-- | ||
-->{{#if:{{{1|}}} |{{{1|}}} }}<!-- | |||
-->{{#if:{{{2|}}} |<br />{{{2|}}} }}<!-- | |||
-->{{#if:{{{3|}}} |<br />{{{3|}}} }}<!-- | |||
-->{{#if:{{{4|}}} |<br />{{{4|}}} }}<!-- | |||
-->{{#if:{{{5|}}} |<br />{{{5|}}} }}<!-- | |||
-->{{#if:{{{6|}}} |<br />{{{6|}}} }}<!-- | |||
-->{{#if:{{{7|}}} |<br />{{{7|}}} }}<!-- | |||
-->{{#if:{{{8|}}} |<br />{{{8|}}} }}<!-- | |||
-->{{#if:{{{9|}}} |<br />{{{9|}}} }}<!-- | |||
-->{{#if:{{{10|}}} |<br />{{{10|}}} }}<!-- | |||
-->{{#if:{{{11|}}} |<br />{{{11|}}} }}<!-- | |||
-->{{#if:{{{12|}}} |<br />{{{12|}}} }}<!-- | |||
-->{{#if:{{{13|}}} |<br />{{{13|}}} }}<!-- | |||
-->{{#if:{{{14|}}} |<br />{{{14|}}} }}<!-- | |||
-->{{#if:{{{15|}}} |<br />{{{15|}}} }}<!-- | |||
-->{{#if:{{{16|}}} |<br />{{{16|}}} }}<!-- | |||
-->{{#if:{{{17|}}} |<br />{{{17|}}} }}<!-- | |||
-->{{#if:{{{18|}}} |<br />{{{18|}}} }}<!-- | |||
-->{{#if:{{{19|}}} |<br />{{{19|}}} }}<!-- | |||
-->{{#if:{{{20|}}} |<br />{{{20|}}} }}<!-- | |||
-->{{#if:{{{21|}}} |<br />{{{21|}}} }}<!-- | |||
-->{{#if:{{{22|}}} |<br />{{{22|}}} }}<!-- | |||
-->{{#if:{{{23|}}} |<br />{{{23|}}} }}<!-- | |||
-->{{#if:{{{24|}}} |<br />{{{24|}}} }}<!-- | |||
-->{{#if:{{{25|}}} |<br />{{{25|}}} }}<!-- | |||
-->{{#if:{{{26|}}} |<br />{{{26|}}} }}<!-- | |||
-->{{#if:{{{27|}}} |<br />{{{27|}}} }}<!-- | |||
-->{{#if:{{{28|}}} |<br />{{{28|}}} }}<!-- | |||
-->{{#if:{{{29|}}} |<br />{{{29|}}} }}<!-- | |||
-->{{#if:{{{30|}}} |<br />{{{30|}}} }}<!-- | |||
-->{{#if:{{{31|}}} |<br />{{{31|}}} }}<!-- | |||
-->{{#if:{{{32|}}} |<br />{{{32|}}} }}<!-- | |||
-->{{#if:{{{33|}}} |<br />{{{33|}}} }}<!-- | |||
-->{{#if:{{{34|}}} |<br />{{{34|}}} }}<!-- | |||
-->{{#if:{{{35|}}} |<br />{{{35|}}} }}<!-- | |||
-->{{#if:{{{36|}}} |<br />{{{36|}}} }}<!-- | |||
-->{{#if:{{{37|}}} |<br />{{{37|}}} }}<!-- | |||
-->{{#if:{{{38|}}} |<br />{{{38|}}} }}<!-- | |||
-->{{#if:{{{39|}}} |<br />{{{39|}}} }}<!-- | |||
-->{{#if:{{{40|}}} |<br />{{{40|}}} }}<!-- | |||
-->{{#if:{{{41|}}} |<br />{{{41|}}} }}<!-- | |||
-->{{#if:{{{42|}}} |<br />{{{42|}}} }}<!-- | |||
-->{{#if:{{{43|}}} |<br />{{{43|}}} }}<!-- | |||
-->{{#if:{{{44|}}} |<br />{{{44|}}} }}<!-- | |||
-->{{#if:{{{45|}}} |<br />{{{45|}}} }}<!-- | |||
-->{{#if:{{{46|}}} |<br />{{{46|}}} }}<!-- | |||
-->{{#if:{{{47|}}} |<br />{{{47|}}} }}<!-- | |||
-->{{#if:{{{48|}}} |<br />{{{48|}}} }}<!-- | |||
-->{{#if:{{{49|}}} |<br />{{{49|}}} }}<!-- | |||
-->{{#if:{{{50|}}} |<br />{{{50|}}} }}<!-- | |||
--></ | --></div> | ||
</div><noinclude>{{documentation}}</noinclude> | </div><noinclude> | ||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 02:12, 31 May 2013
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]]}}
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 | |
| - 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. |







