Šablon:Sidebar with collapsible lists/dok
Appearance
Ovaj šablon se ne prikazuje pri mobilnom pregledanju Vikipedije, radi samo na desktop verziji. Pročitajte dokumentaciju za objašnjenje. |
Ovaj šablon pokreće Lua: |
{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists in addition to Sidebar's content parameters.
Usage
[uredi]Šablon:Generic template demo 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
[uredi]Šablon:Further This template takes all {{sidebar}} parameters. In addition:
- Šablon:Para
- The displayed title of the collapsible listn.
- Šablon:Para
- The contents of the collapsible listn.
- Šablon:Para
- 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-title
for a specific list title and.templateclass .listnclass .sidebar-list
for a specific list. - Šablon:Para Stranica Šablon:Nobold/styles.css nema sadržaj.and Šablon:Para
- Šablon:Para is used to indicate which (if any) list named Šablon:Para is shown expanded when the template is first displayed; see {{Collapsible lists option}}.
A Šablon:Para without a Šablon:Para displays the default title ("List").
Handling long links
[uredi]See Template:Sidebar#Handling long links.
TemplateStyles
[uredi]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 Šablon:Para or Šablon:Para is provided in {{sidebar with collapsible lists}}.
.sidebar-list-title
- The class associated with a Šablon:Para. Every list title will have this class.
.sidebar-list-content
- The class associated with a Šablon:Para. Every list content will have this class.
Deprecated parameters
[uredi]Šablon:Further These parameters are deprecated for the same reason as the style parameters in Template:Sidebar.
- listtitlestyle Stranica Šablon:Nobold/styles.css nema sadržaj.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
[uredi]- Šablon:Diff
- {{Collapsible list}}
- {{Collapsible lists option}}
- {{Navbox with collapsible groups}}
- {{Sidebar}}
- Wikipedia:UBLIST, for help in using unbulleted lists in fields.