<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ASidebar_with_collapsible_lists%2Fdoc</id>
	<title>模板:Sidebar with collapsible lists/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3ASidebar_with_collapsible_lists%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Sidebar_with_collapsible_lists/doc&amp;action=history"/>
	<updated>2026-05-14T18:49:19Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Sidebar_with_collapsible_lists/doc&amp;diff=8214&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Documentation subpage}} &lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: Wikipedia:Wikidata). --&gt; {{High-use| 64996 }} {{Template display|nomobile}} {{Lua|Module:Sidebar}}  {{tl|Sidebar with collapsible lists}} is a version of {{tl|Sidebar}} which offers collapsible lists in addition to Sidebar&#039;s &#039;&#039;content&#039;&#039; parameters.  == Usage == {{Generic template demo  |name={{PAGENAME}} |…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E6%9D%BF:Sidebar_with_collapsible_lists/doc&amp;diff=8214&amp;oldid=prev"/>
		<updated>2024-01-22T07:09:10Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Documentation subpage}} &amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;). --&amp;gt; {{High-use| 64996 }} {{Template display|nomobile}} {{Lua|Module:Sidebar}}  {{tl|Sidebar with collapsible lists}} is a version of {{tl|Sidebar}} which offers &lt;a href=&quot;/%E5%B8%AE%E5%8A%A9:Collapsing&quot; title=&quot;帮助:Collapsing&quot;&gt;collapsible&lt;/a&gt; lists in addition to Sidebar&amp;#039;s &amp;#039;&amp;#039;content&amp;#039;&amp;#039; parameters.  == Usage == {{Generic template demo  |name={{PAGENAME}} |…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --&amp;gt;&lt;br /&gt;
{{High-use| 64996 }}&lt;br /&gt;
{{Template display|nomobile}}&lt;br /&gt;
{{Lua|Module:Sidebar}}&lt;br /&gt;
&lt;br /&gt;
{{tl|Sidebar with collapsible lists}} is a version of {{tl|Sidebar}} which offers [[Help:Collapsing|collapsible]] lists in addition to Sidebar&amp;#039;s &amp;#039;&amp;#039;content&amp;#039;&amp;#039; parameters.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Generic template demo&lt;br /&gt;
 |name={{PAGENAME}} |pretitle |title |image |above |heading1 |list1title |list1 |list2title |list2&lt;br /&gt;
 |heading3={{{heading{{italics correction|&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}}}}} |list3title={{{list{{italics correction|&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}}title}}} |list3={{{list{{italics correction|&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}}}}} |content4={{{content{{italics correction|&amp;#039;&amp;#039;N&amp;#039;&amp;#039;}}}}}&lt;br /&gt;
 |below&lt;br /&gt;
}}&lt;br /&gt;
Parameters with infrequent use omitted.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Sidebar with collapsible lists&lt;br /&gt;
| name     = {{subst:PAGENAME}}&lt;br /&gt;
| pretitle = &lt;br /&gt;
| title    = &lt;br /&gt;
| image    = &lt;br /&gt;
| templatestyles = &lt;br /&gt;
| expanded = {{{expanded|}}}&lt;br /&gt;
&lt;br /&gt;
| heading1   = &lt;br /&gt;
| list1name  = &lt;br /&gt;
| list1title = &lt;br /&gt;
| list1      = &lt;br /&gt;
&lt;br /&gt;
| heading2   = &lt;br /&gt;
| list2name  = &lt;br /&gt;
| list2title = &lt;br /&gt;
| list2      = &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ...... --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| headingN =         &amp;lt;!-- Template:Sidebar&amp;#039;s &amp;quot;headingN&amp;quot; and/or &amp;quot;contentN&amp;quot; parameters (where --&amp;gt;&lt;br /&gt;
| contentN =         &amp;lt;!-- N is a number) may be used to include uncollapsible lists/content --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ...... --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| below = &lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{{further|Template:Sidebar#Parameters}}&lt;br /&gt;
This template takes all {{tl|sidebar}} parameters. In addition:&lt;br /&gt;
; {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;title}}&lt;br /&gt;
: The displayed title of the collapsible list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;.&lt;br /&gt;
; {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;}}&lt;br /&gt;
: The contents of the collapsible list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;.&lt;br /&gt;
; {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;class}}&lt;br /&gt;
: A class can be added to target a specific list either with TemplateStyles or microformats. See [[Template:Sidebar#Classes]].&lt;br /&gt;
: In the context of TemplateStyles, specific list contents can be targeted like so: &amp;lt;code&amp;gt;.templateclass .listnclass .sidebar-list-title&amp;lt;/code&amp;gt; for a specific list title and &amp;lt;code&amp;gt;.templateclass .listnclass .sidebar-list&amp;lt;/code&amp;gt; for a specific list.&lt;br /&gt;
; {{para|expanded}} {{nobold|and}} {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;name}}&lt;br /&gt;
: {{para|expanded}} is used to indicate which (if any) list named {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;name}} is shown expanded when the template is first displayed; see {{tl|Collapsible lists option}}.&lt;br /&gt;
; {{para|centered list titles}}&lt;br /&gt;
: Set to anything (though {{para|centered list titles|y}} or {{para|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.&lt;br /&gt;
&lt;br /&gt;
{{Sidebar with collapsible lists |list1={{{list1}}} without {{{list1title}}} |navbar=off}}&lt;br /&gt;
A {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;}} without a {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;title}} displays the default title (&amp;quot;List&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Handling long links ==&lt;br /&gt;
{{further|Template:Sidebar#Handling long links}}&lt;br /&gt;
&lt;br /&gt;
See [[Template:Sidebar#Handling long links]].&lt;br /&gt;
&lt;br /&gt;
== TemplateStyles ==&lt;br /&gt;
The classes available for styling, besides those listed in [[Template:Sidebar#TemplateStyles]], are:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;.sidebar-collapse&amp;lt;/code&amp;gt;&lt;br /&gt;
: The top-level {{tl|sidebar with collapsible lists}} class.&lt;br /&gt;
; &amp;lt;code&amp;gt;.sidebar-list&amp;lt;/code&amp;gt;&lt;br /&gt;
: The class is a container when either {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;title}} or {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;}} is provided in {{tl|sidebar with collapsible lists}}.&lt;br /&gt;
; &amp;lt;code&amp;gt;.sidebar-list-title&amp;lt;/code&amp;gt;&lt;br /&gt;
: The class associated with a {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;title}}. Every list title will have this class. Use the {{para|centered list titles}} to center text instead of adding CSS here.&lt;br /&gt;
; &amp;lt;code&amp;gt;.sidebar-list-content&amp;lt;/code&amp;gt;&lt;br /&gt;
: The class associated with a {{para|list&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;}}. Every list content will have this class.&lt;br /&gt;
&lt;br /&gt;
== Deprecated parameters ==&lt;br /&gt;
{{further|Template:Sidebar#Deprecated parameters}}&lt;br /&gt;
These parameters are deprecated for the same reason as the style parameters in {{t|Sidebar}} template.&lt;br /&gt;
; &amp;#039;&amp;#039;listtitlestyle&amp;#039;&amp;#039; {{nobold|and}} &amp;#039;&amp;#039;liststyle&amp;#039;&amp;#039;&lt;br /&gt;
: These are the equivalent of, respectively, {{tl|Collapsible list}}&amp;#039;s &amp;#039;&amp;#039;titlestyle&amp;#039;&amp;#039; and &amp;#039;&amp;#039;liststyle&amp;#039;&amp;#039; parameters.&lt;br /&gt;
; &amp;#039;&amp;#039;listframestyle&amp;#039;&amp;#039;&lt;br /&gt;
: Sets the framestyle (see {{tl|Collapsible list}}) for the lists.&lt;br /&gt;
; &amp;#039;&amp;#039;listNframestyle&amp;#039;&amp;#039;&lt;br /&gt;
: Sets the framestyle for &amp;#039;&amp;#039;listN&amp;#039;&amp;#039;, overriding &amp;#039;&amp;#039;listframestyle&amp;#039;&amp;#039;.&lt;br /&gt;
; &amp;#039;&amp;#039;listNtitlestyle&amp;#039;&amp;#039;&lt;br /&gt;
: Sets the titlestyle for &amp;#039;&amp;#039;listN&amp;#039;&amp;#039;, overriding &amp;#039;&amp;#039;listtitlestyle&amp;#039;&amp;#039; above.&lt;br /&gt;
; &amp;#039;&amp;#039;listNstyle&amp;#039;&amp;#039;&lt;br /&gt;
: Sets the liststyle for &amp;#039;&amp;#039;listN&amp;#039;&amp;#039;, overriding &amp;#039;&amp;#039;liststyle&amp;#039;&amp;#039; above.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{diff|Template:Sidebar with collapsible lists|next|544062416|Last pre-Lua version}}&lt;br /&gt;
* {{tl|Collapsible list}}&lt;br /&gt;
* {{tl|Collapsible lists option}}&lt;br /&gt;
* {{tl|Navbox with collapsible groups}}&lt;br /&gt;
* {{tl|Sidebar}}&lt;br /&gt;
* [[Wikipedia:UBLIST]], for help in using unbulleted lists in fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{PAGENAME}}|Sidebar with collapsible lists|&lt;br /&gt;
&amp;lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
[[Category:Sidebar meta-templates]]&lt;br /&gt;
[[Category:Collapse templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>