<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/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://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapsible_option%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Collapsible_option/doc&amp;action=history"/>
	<updated>2026-04-26T00:41:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Collapsible_option/doc&amp;diff=33901&amp;oldid=prev</id>
		<title>imported&gt;Alexander Davronov: ce; utility template</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Collapsible_option/doc&amp;diff=33901&amp;oldid=prev"/>
		<updated>2022-12-02T08:06:22Z</updated>

		<summary type="html">&lt;p&gt;ce; utility template&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;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{High-use|demo={{ROOTPAGENAME}}}}&lt;br /&gt;
{{tlx|Collapsible option}} is a utility template provides a standardised message for [[Wikipedia:Transclusion|transclusion]] on [[WP:TDOC|template documentaion]] pages for templates whose collapsibility may be managed by the parameter {{para|state}}.&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 {{tlx|documentation subpage}}.&lt;br /&gt;
&lt;br /&gt;
===Indicating optional use of {{samp|state}} name===&lt;br /&gt;
The {{para|state}} parameter used to manage collapsible templates need not always be named explicitly, i.e. {{tnull|{{var|Template name}}{{!}}{{var|state}}}} can be the same as {{tnull|{{var|Template name}}|state{{=}}{{var|state}}}}, if the template is coded that way. To indicate this in the {{tnull|Collapsible option}} message, add the parameter {{para|statename|optional}}. This modifies the message so that it reads (if it were used for itself):&lt;br /&gt;
&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;
&lt;br /&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 {{para|state}} 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. {{tlx|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.&lt;br /&gt;
&lt;br /&gt;
===Changing the default state===&lt;br /&gt;
To change the default state {{tnull|Collapsible option}} uses, add the parameter {{para|default|collapsed}} or {{para|default|expanded}} accordingly. To restore the default, remove any {{para|default}} previously included.&lt;br /&gt;
&lt;br /&gt;
The {{para|default|collapsed}} option must not be used in main article content in mainspace, e.g. to hide [[Wikipedia:Manual of Style/Tables|tables of information]], or to cram extraneous details into [[Wikipedia:Manual of Style/Infoboxes|infoboxes]]. {{crossref|printworthy=y|(For more information, see {{section link|Wikipedia:Manual of Style#Scrolling lists and collapsible content}}.)}}  This option {{em|is}} permissible in [[Wikipedia:Navigation boxes|navboxes]], which are not part of the article content {{lang|la|per se}}.&lt;br /&gt;
&lt;br /&gt;
===Slashes and the {{samp|nobase}} parameter ===&lt;br /&gt;
If the template name given to {{tnull|Collapsible option}}&amp;lt;/nowiki&amp;gt; includes a forward-slash (virgule) character – &amp;lt;kbd&amp;gt;/&amp;lt;/kbd&amp;gt; – then the parameter {{para|nobase}} (set to {{kbd|on}}, {{kbd|true}}, etc.) will need to be added so that the name is displayed correctly (i.e., so that {{tlc|PAGENAME}} rather than the default {{tlc|BASEPAGENAME}} is used to display it).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Navbox documentation}}&lt;br /&gt;
* {{tlx|Collapsible lists option}}&lt;br /&gt;
* {{tlx|Collapsible sections option}}&lt;br /&gt;
* [[Help:Collapsing]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
[[Category:Wikipedia metatemplates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Alexander Davronov</name></author>
	</entry>
</feed>