<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapsible_option%2Fdoc</id>
	<title>Template:Collapsible option/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapsible_option%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:Collapsible_option/doc&amp;action=history"/>
	<updated>2026-04-03T20:06:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:Collapsible_option/doc&amp;diff=27648&amp;oldid=prev</id>
		<title>Amc-admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:Collapsible_option/doc&amp;diff=27648&amp;oldid=prev"/>
		<updated>2017-09-18T21:45:19Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&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-risk| 102000+ }}&lt;br /&gt;
{{tl|Collapsible option}} provides a standardised message for [[Wikipedia:Transclusion|transclusion]] on the pages of collapsible templates whose collapsibility may be managed by the parameter &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It may be used on either the template page itself (wrapped within {{tag|noinclude}} tags) or on the template&amp;#039;s {{tl|documentation subpage}}.&lt;br /&gt;
&lt;br /&gt;
===Indicating optional use of &amp;#039;&amp;#039;state&amp;#039;&amp;#039; name===&lt;br /&gt;
The &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter used to manage collapsible templates need not always be named explicitly, i.e. {{braces|[&amp;#039;&amp;#039;Template name&amp;#039;&amp;#039;]{{!}}&amp;#039;&amp;#039;state&amp;#039;&amp;#039;}} can be the same as {{braces|[&amp;#039;&amp;#039;Template name&amp;#039;&amp;#039;]{{!}}state&amp;amp;#61;&amp;#039;&amp;#039;state&amp;#039;&amp;#039;}}. To indicate this in the &amp;lt;nowiki&amp;gt;{{Collapsible option}}&amp;lt;/nowiki&amp;gt; message, add the parameter {{para|statename|optional}}. This modifies the message so that it reads (if it were used for itself):&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both;margin:1.0em 0;background:whitesmoke;&amp;quot;&amp;gt;&lt;br /&gt;
{{Collapsible option |statename=optional}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:95%;line-height:1.7em;&amp;quot;&amp;gt;(This possibility is enabled by including:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{{1|}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; as part of a collapsible template&amp;#039;s &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter{{spaced ndash}}for instance, as {{para|state|&amp;lt;nowiki&amp;gt;{{{state|{{{1|}}}}}}&amp;lt;/nowiki&amp;gt;}} or {{para|state|&amp;lt;nowiki&amp;gt;{{{state|{{{1|&amp;lt;noinclude&amp;gt;expanded&amp;lt;/noinclude&amp;gt;}}}}}}&amp;lt;/nowiki&amp;gt;}}, etc.&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;,&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;as part of a collapsible template&amp;#039;s &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; argument{{spaced ndash}}for instance, as {{para|state|&amp;lt;nowiki&amp;gt;{{{state&amp;lt;includeonly&amp;gt;|collapsed&amp;lt;/includeonly&amp;gt;}}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
If, however, the template includes collapsible sections within itself (e.g. {{tl|Navbox with collapsible groups}}), then enabling this possibility may introduce ambiguity as regards what is to be collapsed or expanded. In those instances, therefore, the requirement to use {{para|state}} should be retained.)&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Changing the default state===&lt;br /&gt;
To change the default state &amp;lt;nowiki&amp;gt;{{Collapsible option}}&amp;lt;/nowiki&amp;gt; uses, add the parameter {{para&amp;lt;!--|plain--&amp;gt;|default|collapsed}} or {{para&amp;lt;!--|plain--&amp;gt;|default|expanded}} accordingly. To restore the default, remove any {{para&amp;lt;!--|plain--&amp;gt;|default}} previously included.&lt;br /&gt;
&lt;br /&gt;
===&amp;#039;&amp;#039;nobase&amp;#039;&amp;#039;===&lt;br /&gt;
If the template name given to &amp;lt;nowiki&amp;gt;{{Collapsible option}}&amp;lt;/nowiki&amp;gt; includes a (forward-)slash character (&amp;quot;/&amp;quot;), the parameter {{para&amp;lt;!--|plain--&amp;gt;|nobase}} (set to &amp;quot;on&amp;quot;, &amp;quot;true&amp;quot;, etc.) will need to be added so that the name is displayed correctly (i.e. so that {{tld|PAGENAME}} rather than the default {{tld|BASEPAGENAME}} is used to display it).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Collapsible lists option}}&lt;br /&gt;
* {{tl|Collapsible sections option}}&lt;br /&gt;
* [[Help:Collapsing]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
[[Category:Template namespace templates]]&lt;br /&gt;
[[Category:Wikipedia metatemplates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amc-admin</name></author>
	</entry>
</feed>