Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Handling long links  





4 TemplateStyles  





5 Deprecated parameters  





6 See also  














Template:Sidebar with collapsible lists






Afrikaans
العربية
Արեւմտահայերէն

Авар
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Български
Bosanski
Буряад
Català
Čeština
Cymraeg
Dansk
الدارجة
Deutsch
ދިވެހިބަސް
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-nḡ
Мокшень
Монгол

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 Vit

Yorùbá

Zazaki

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikisource
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Sidebar with collapsible groups)

{{Sidebar with collapsible lists}} is a version of {{Sidebar}} which offers collapsible lists in addition to Sidebar's content parameters.

Usage

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-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=yor|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.

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 {{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


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Sidebar_with_collapsible_lists&oldid=952702813"

Categories: 
Lua-based templates
Sidebar meta-templates
Collapse templates
Hidden category: 
Wikipedia template-protected templates
 



This page was last edited on 23 April 2020, at 17:08 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki