Template:Sidebar with collapsible lists
- Afrikaans
- العربية
- Արեւմտահայերէն
- অসমীয়া
- Авар
- Azərbaycanca
- تۆرکجه
- Basa Bali
- বাংলা
- 閩南語 / Bân-lâm-gí
- Башҡортса
- Беларуская
- Беларуская (тарашкевіца)
- भोजपुरी
- Български
- Bosanski
- Буряад
- Català
- Čeština
- Cymraeg
- Dansk
- الدارجة
- ދިވެހިބަސް
- Eesti
- Ελληνικά
- Esperanto
- Euskara
- فارسی
- Fiji Hindi
- Føroyskt
- Gaeilge
- Galego
- ГӀалгӀай
- ગુજરાતી
- 客家語 / Hak-kâ-ngî
- 한국어
- Հայերեն
- हिन्दी
- Hrvatski
- Ido
- Ilokano
- Bahasa Indonesia
- עברית
- Jawa
- ಕನ್ನಡ
- ქართული
- Қазақша
- Ikirundi
- Kurdî
- Ladino
- Latviešu
- Lëtzebuergesch
- Lietuvių
- Madhurâ
- मैथिली
- Македонски
- മലയാളം
- मराठी
- مصرى
- ဘာသာမန်
- مازِرونی
- Bahasa Melayu
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- Мокшень
- Монгол
- မြန်မာဘာသာ
- Nāhuatl
- नेपाली
- नेपाल भाषा
- 日本語
- Нохчийн
- Norsk bokmål
- Oʻzbekcha / ўзбекча
- ਪੰਜਾਬੀ
- ပအိုဝ်ႏဘာႏသာႏ
- پښتو
- ភាសាខ្មែរ
- Português
- Română
- Русский
- संस्कृतम्
- Scots
- Shqip
- සිංහල
- Simple English
- Slovenščina
- Soomaaliga
- کوردی
- Српски / srpski
- Srpskohrvatski / српскохрватски
- Sunda
- Suomi
- Svenska
- Tagalog
- தமிழ்
- Taqbaylit
- Татарча / tatarça
- တႆး
- తెలుగు
- ไทย
- Тоҷикӣ
- Türkçe
- Українська
- اردو
- Vèneto
- Tiếng Việt
- 吴语
- Yorùbá
- 粵語
- Zazaki
- 中文
- Kumoring
- ရခိုင်
- ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
Appearance
From Wikipedia, the free encyclopedia
Warning This template is used on approximately 100,000 pages .
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation.
This template uses 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}}} |
{{{list1title}}} {{{list1}}} |
{{{list2title}}} {{{list2}}} |
{{{headingN}}} |
{{{listNtitle}}} {{{listN}}} |
{{{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
Further information: Template:Sidebar § 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-title
for a specific list title and.templateclass .listnclass .sidebar-list
for 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=y
or|centered list titles=yes
are idiomatic) to make the sidebar list titles centered. This works around some not-great behavior in how centered text interacts with the collapsible toggle.
List
{{{list1}}} without {{{list1title}}}
A |listn=
without a |listntitle=
displays the default title ("List").
Handling long links
Further information: Template:Sidebar § 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
Further information: Template:Sidebar § Deprecated parameters
These parameters are deprecated for the same reason as the style parameters in {{Sidebar }} template.
- 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.
The above documentation is transcluded from Template:Sidebar with collapsible lists/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.