Difference between revisions of "Template:Sidebar with collapsible lists"
(rv) |
m (1 revision) |
(No difference)
|
Latest revision as of 14:35, 23 January 2013
{{Sidebar with collapsible lists}} is a version of the {{sidebar}}
template which offers collapsible lists as an alternative to sidebar's content parameters.
Usage
{{{topimage}}} {{{topcaption}}} |
{{{pretitle}}} |
{{{title}}} |
---|
{{{image}}} |
{{{above}}} |
{{{heading1}}} |
{{{list1title}}}
{{{list1}}}
|
{{{list2title}}}
{{{list2}}}
|
{{{list3title}}}
{{{list3}}}
|
... up to 35th ... |
{{{list35title}}}
{{{list35}}}
|
{{{below}}} |
Parameters with infrequent use omitted.
{{Sidebar with collapsible lists | name = {{subst:PAGENAME}} | outertitle = | topimage = | pretitle = | title = | image = | expanded = {{{expanded|{{{1|}}}}}} <!-- displays a specific list --> | headingstyle = | listtitlestyle = | contentstyle = | heading1 = | list1name = | list1title = | list1 = | heading2 = | list2name = | list2title = | list2 = <!-- ... up to 35th --> | list35name = | list35title = | list35 = }}
Parameters
The topmost parameters (including name, outertitle, topimage, pretitle, title, image, headingstyle, contentstyle) are defined at the Sidebar template page.
The listtitlestyle and liststyle parameters are the equivalent of {{collapsible list}}'s titlestyle and liststyle parameters, while each listNtitle and listN parameter is the equivalent of {{collapsible list}}'s title and unnamed list parameter, respectively.
The listNname parameters are used to identify which, if any, list is to be shown expanded; see {{collapsible lists option}}.
Other parameters
In addition to the above, the following collapsible list-related parameters are also available:
- listframestyle
- Sets the framestyle (see {{collapsible list}}) for the lists.
- listNframestyle
- Sets the framestyle for listN, overriding listframestyle.
- listNtitlestyle
- Sets the titlestyle for listN, overriding listtitlestyle above.
- listNstyle
- Sets the liststyle for listN, overriding liststyle above.
Handling long links
As with the sidebar template, {{normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap, in order to prevent the sidebar from becoming too wide. Use {{normalwraplink|longlinkname}}
, where |longlinkname
is the long link without its square brackets.
Use the |wraplinks=true
parameter to turn link wrapping off for the whole template.
Examples
Examples of this template can be found by checking the template's backlinks with "What links here".
See also
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- UBLIST – for help in using unbulleted lists in fieldsAr:قالب:Sidebar with collapsible lists
Bn:টেমপ্লেট:Sidebar with collapsible lists Ca:Plantilla:Barra lateral amb llistes plegables Ja:Template:Sidebar with collapsible lists Ka:თარგი:გვერდითი ნავდაფა გაშლადი სიით Ko:틀:사이드바 접을 수 있는 목록 Mk:Шаблон:Странична лента со расклопни списоци Pt:Predefinição:Sidebar with collapsible lists Sl:Predloga:Sidebar with collapsible lists Th:Template:Sidebar with collapsible lists Ur:سانچہ:Sidebar with collapsible lists Zh:Template:Sidebar with collapsible lists
The above documentation is transcluded from Sidebar with collapsible lists/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |