More actions
m Update dependencies. |
m Update dependencies. |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
:: {{T|Sidebar with collapsible lists/row}} | :: {{T|Sidebar with collapsible lists/row}} | ||
:; Used by | :; Used by | ||
:: {{T|AngelEpicArcNav}} | |||
:: {{T|AmarrEpicArcNav}} | |||
:: {{T|CaldariEpicArcNav}} | |||
:: {{T|GallenteEpicArcNav}} | |||
:: {{T|GuristasEpicArcNav}} | |||
:: {{T|MinmatarEpicArcNav}} | |||
:: {{T|SistersOfEVEEpicArcNav}} | :: {{T|SistersOfEVEEpicArcNav}} | ||
; Syntax | ; Syntax | ||
| Line 31: | Line 36: | ||
| above = | | above = | ||
| expanded = | | expanded = {{{1|}}} | ||
| contentclass= | |||
| listclas= | |||
| heading1 = | | heading1 = | ||
| Line 44: | Line 52: | ||
| heading3 = | | heading3 = | ||
| | | content3 = | ||
<!-- More heading<x>, list<x> blocks as required up to a maximum of 35 --> | <!-- More heading<x>, list<x>/content<x> blocks as required up to a maximum of 35 --> | ||
| below = | | below = | ||
| Line 55: | Line 61: | ||
}} | }} | ||
</pre> | </pre> | ||
: This template uses mostly the same parameter set as {{Tl|Sidebar}} see there for the shared parameters. | |||
:; Parameters (Data) | :; Parameters (Data) | ||
:; expanded : Used to identify which list is to be shown initially expanded. Use the <code>list''<x>''name</code> of the wanted list or use <code>all</code> to show all lists expanded. | :; expanded : Used to identify which list is to be shown initially expanded. Use the <code>list''<x>''name</code> of the wanted list or use <code>all</code> to show all lists expanded. | ||
:: This parameter should normally not be hard coded but being offered as a parameter from the template call. | :: This parameter should normally not be hard coded but being offered as a parameter from the template call. | ||
| Line 63: | Line 70: | ||
:; list''<x>''name : ''x'' is 1 till 35 - Target of the <code>expanded</code> parameter. A list without this parameter or empty can not be initially expanded. | :; list''<x>''name : ''x'' is 1 till 35 - Target of the <code>expanded</code> parameter. A list without this parameter or empty can not be initially expanded. | ||
:; list''<x>''title : ''x'' is 1 till 35 - Text in the non-collapsible part, defaults to "List". Use &nbsp; to leave empty. | :; list''<x>''title : ''x'' is 1 till 35 - Text in the non-collapsible part, defaults to "List". Use &nbsp; to leave empty. | ||
:; list''<x>'' : ''x'' is 1 till 35 - The contents of the collapsible part of the list. | :; list''<x>'' : ''x'' is 1 till 35 - The contents of the collapsible part of the list. The list is injected into {{Tl|Sidebar}} content''<x>''. | ||
:: If one or more lists should always be expanded the | :: If one or more lists should always be expanded the <code>content''<x>''</code> can be used. | ||
:: If both <code>list''<x>''</code> and <code>content''<x>''</code> are used list has the preference. | :: If both <code>list''<x>''</code> and <code>content''<x>''</code> are used list has the preference. | ||
:; Parameters (Format) | |||
::; listclass : Name of the CSS class(es) to be applied to all list''<x>'' parameters. i.e. <code>plainlist</code> to achieve {{Tl|Plainlist}} effect on the list. | |||
; Sample | ; Sample | ||
: Using the following as the content of a template called example, calling <nowiki>{{example}}</nowiki> has all lists collapsed. Using <nowiki>{{example|all}}</nowiki> shows all list expanded and <nowiki>{{example|two}}</nowiki> only expands list 2. | : (1) Using the following as the content of a template called example, calling <nowiki>{{example}}</nowiki> has all lists collapsed. Using <nowiki>{{example|all}}</nowiki> shows all list expanded and <nowiki>{{example|two}}</nowiki> only expands list 2. | ||
{{Sidebar with collapsible lists | |||
| topimage = [[File:Agent.png]] | |||
| title = Sidebar title | |||
| expand = {{{1|}}} | |||
| contentclass= plainlist | |||
| heading1 = Heading 1 | |||
| list1name = one | |||
| list1title = First list | |||
| list1 = | |||
* link 1-1 | |||
* link 1-2 | |||
* link 1-3 | |||
| heading2 = Heading 2 | |||
| list2name = two | |||
| list2title = | |||
| list2 = | |||
* link 2-1 | |||
* link 2-2 | |||
* link 2-3 | |||
| heading3 = Heading 3 | |||
| list3name = three | |||
| list3title = | |||
| list3 = | |||
* link 3-1 | |||
* link 3-2 | |||
* link 3-3 | |||
| heading4 = Heading 4 | |||
| content4 = | |||
* link 4-1 | |||
* link 4-2 | |||
* link 4-3 | |||
| navbar = off | |||
}} | |||
<pre>{{Sidebar with collapsible lists | |||
| topimage = [[File:Agent.png]] | |||
| title = Sidebar title | |||
| expand = <nowiki>{{{1|}}}</nowiki> | |||
| contentclass= plainlist | |||
| heading1 = Heading 1 | |||
| list1name = one | |||
| list1title = First list | |||
| list1 = | |||
* link 1-1 | |||
* link 1-2 | |||
* link 1-3 | |||
| heading2 = Heading 2 | |||
| list2name = two | |||
| list2title = | |||
| list2 = | |||
* link 2-1 | |||
* link 2-2 | |||
* link 2-3 | |||
| heading3 = Heading 3 | |||
| list3name = three | |||
| list3title = | |||
| list3 = | |||
* link 3-1 | |||
* link 3-2 | |||
* link 3-3 | |||
| heading4 = Heading 4 | |||
| content4 = | |||
* link 4-1 | |||
* link 4-2 | |||
* link 4-3 | |||
| navbar = off | |||
}} | |||
</pre> | |||
: (2) Using <code>listclass</code> instead of <code>contentclass</code> causes the class to only be applied to the list parameter. The class(es) in <code>listclass</code> override the classes in<code>contentclass</code> following the normal rules for CSS. | |||
{{Sidebar with collapsible lists | {{Sidebar with collapsible lists | ||
| topimage = [[File:Agent.png]] | | topimage = [[File:Agent.png]] | ||
| Line 76: | Line 172: | ||
| expand = {{{1|}}} | | expand = {{{1|}}} | ||
| listclass = plainlist | |||
| heading1 = Heading 1 | | heading1 = Heading 1 | ||
| Line 81: | Line 178: | ||
| list1title = First list | | list1title = First list | ||
| list1 = | | list1 = | ||
link 1-1 | * link 1-1 | ||
link 1-2 | * link 1-2 | ||
link 1-3 | * link 1-3 | ||
| heading2 = Heading 2 | | heading2 = Heading 2 | ||
| Line 89: | Line 186: | ||
| list2title = | | list2title = | ||
| list2 = | | list2 = | ||
link 2-1 | * link 2-1 | ||
link 2-2 | * link 2-2 | ||
link 2-3 | * link 2-3 | ||
| heading3 = Heading 3 | | heading3 = Heading 3 | ||
| Line 97: | Line 194: | ||
| list3title = | | list3title = | ||
| list3 = | | list3 = | ||
link 3-1 | * link 3-1 | ||
link 3-2 | * link 3-2 | ||
link | * link 3-3 | ||
| heading4 = Heading 4 | | heading4 = Heading 4 | ||
| content4 = | | content4 = | ||
link 4-1 | * link 4-1 | ||
link 4-2 | * link 4-2 | ||
link 4-3 | * link 4-3 | ||
| navbar = off | | navbar = off | ||
| Line 121: | Line 218: | ||
| list1title = First list | | list1title = First list | ||
| list1 = | | list1 = | ||
link 1-1 | * link 1-1 | ||
link 1-2 | * link 1-2 | ||
link 1-3 | * link 1-3 | ||
| heading2 = Heading 2 | | heading2 = Heading 2 | ||
| Line 129: | Line 226: | ||
| list2title = | | list2title = | ||
| list2 = | | list2 = | ||
link 2-1 | * link 2-1 | ||
link 2-2 | * link 2-2 | ||
link 2-3 | * link 2-3 | ||
| heading3 = Heading 3 | | heading3 = Heading 3 | ||
| Line 137: | Line 234: | ||
| list3title = | | list3title = | ||
| list3 = | | list3 = | ||
link 3-1 | * link 3-1 | ||
link 3-2 | * link 3-2 | ||
link | * link 3-3 | ||
| heading4 = Heading 4 | | heading4 = Heading 4 | ||
| content4 = | | content4 = | ||
link 4-1 | * link 4-1 | ||
link 4-2 | * link 4-2 | ||
link 4-3 | * link 4-3 | ||
| navbar = off | | navbar = off | ||