Predloga:Sidebar with collapsible lists
| Predloga se uporablja na številnih straneh, zato bo vsaka njena sprememba takoj zelo opazna. Prosimo, da vse spremembe, ki jih želite uvesti, pred uvedbo preizkusite na podstraneh predloge (/peskovnik in /testniprimeri) ali na svojih lastnih podstraneh. Pred spreminjanjem te predloge se o želenih spremembah rajši pogovorite na pogovorni strani. |
| Ta predloga se ne prikaže v mobilnem prikazu Wikipedije; prikaže se samo namizno. Za razlago preberite dokumentacijo. |
| Uporablja Lua: |
{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists in addition to Sidebar's content parameters.
Usage
| {{{pretitle}}} |
| {{{title}}} |
|---|
| {{{image}}} |
| {{{above}}} |
| {{{heading1}}} |
| {{{headingN}}} |
| {{{contentN}}} |
| {{{below}}} |
Parameters with infrequent use omitted.
{{Sidebar with collapsible lists
| name = {{subst:PAGENAME}}
| pretitle =
| title =
| image =
| templatestyles =
| expanded = {{{expanded|}}}
| heading1 =
| list1name =
| list1title =
| list1 =
| heading2 =
| list2name =
| list2title =
| list2 =
<!-- ...... -->
| headingN = <!-- Template:Sidebar's "headingN" and/or "contentN" parameters (where -->
| contentN = <!-- N is a number) may be used to include uncollapsible lists/content -->
<!-- ...... -->
| below =
}}
Parameters
This template takes all {{sidebar}} parameters. In addition:
|listntitle=- The displayed title of the collapsible listn.
|listn=- The contents of the collapsible listn.
|listnclass=- A class can be added to target a specific list either with TemplateStyles or microformats. See Template:Sidebar#Classes.
- In the context of TemplateStyles, specific list contents can be targeted like so:
.templateclass .listnclass .sidebar-list-titlefor a specific list title and.templateclass .listnclass .sidebar-listfor a specific list. |expanded=and|listnname=|expanded=is used to indicate which (if any) list named|listnname=is shown expanded when the template is first displayed; see {{Collapsible lists option}}.|centered list titles=- Set to anything (though
|centered list titles=yor|centered list titles=yesare idiomatic) to make the sidebar list titles centered. This works around some not-great behavior in how centered text interacts with the collapsible toggle.
A |listn= without a |listntitle= displays the default title ("List").
Handling long links
See Template:Sidebar#Handling long links.
TemplateStyles
The classes available for styling, besides those listed in Template:Sidebar#TemplateStyles, are:
.sidebar-collapse- The top-level {{sidebar with collapsible lists}} class.
.sidebar-list- The class is a container when either
|listntitle=or|listn=is provided in {{sidebar with collapsible lists}}. .sidebar-list-title- The class associated with a
|listntitle=. Every list title will have this class. Use the|centered list titles=to center text instead of adding CSS here. .sidebar-list-content- The class associated with a
|listn=. Every list content will have this class.
Deprecated parameters
These parameters are deprecated for the same reason as the style parameters in Template:Sidebar.
- listtitlestyle and liststyle
- These are the equivalent of, respectively, {{Collapsible list}}'s titlestyle and liststyle parameters.
- 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.
See also
- Last pre-Lua version
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- Wikipedia:UBLIST, for help in using unbulleted lists in fields.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









