Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.Anti-spam check. Do not fill this in!{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{High-use|demo={{ROOTPAGENAME}}}} {{tlx|Collapsible option}} is a utility template that provides a standardised message for [[Help:Transclusion|transclusion]] on [[Wikipedia:Template documentation|template documentaion]] pages for templates whose collapsibility may be managed by the parameter {{para|state}}. It can be used on either the template page itself (wrapped within {{tag|noinclude}} tags), but it is almost always better to place it in the template's {{tlx|documentation subpage}}. ===Indicating optional use of {{samp|state}} name=== {{Update|inaccurate=yes|date=December 2024|reason=Removed in [[Special:Diff/657041913|2015]]|talk=Broken_statename_parameter}} 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): <div style="clear:both;margin:1.0em 0;background:whitesmoke;"> {{Collapsible option |statename=optional}} </div> This possibility is enabled by including: *<code><nowiki>{{{1|}}}</nowiki></code> as part of a collapsible template's {{para|state}} parameter{{spaced ndash}}for instance, as {{para|state|<nowiki>{{{state|{{{1|}}}}}}</nowiki>}} or {{para|state|<nowiki>{{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}</nowiki>}}, etc. *<code><nowiki><noinclude></nowiki></code>,<code><nowiki><includeonly></nowiki></code>as part of a collapsible template's <code>state</code> argument{{spaced ndash}}for instance, as {{para|state|<nowiki>{{{state<includeonly>|collapsed</includeonly>}}}</nowiki>}} 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. ===Changing the default state=== 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. 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 template|navboxes]], which are not part of the article content {{lang|la|per se}}. ===Slashes and the {{samp|nobase}} parameter === If the template name given to {{tnull|Collapsible option}} includes a forward-slash (virgule) character β <kbd>/</kbd> β 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). == See also == * {{tl|Navbox documentation}}, which includes this template * {{tl|Collapsible lists option}} * {{tl|Collapsible sections option}} * [[Help:Collapsing tables and more|Collapsing tables and more]] <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Documentation shared content templates]] [[Category:Wikipedia metatemplates]] }}</includeonly> Summary: Please note that all contributions to The Sonic the Hedgehog Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see The Sonic the Hedgehog Wiki:Copyrights for details). Do not submit copyrighted work without permission! Cancel Editing help (opens in new window) Templates used on this page: Template:Collapsible option (edit) Template:Crossref (edit) Template:Documentation subpage (edit) Template:Em (edit) Template:High-use (edit) Template:Kbd (edit) Template:Kbd/styles.css (edit) Template:Lang (edit) Template:Para (edit) Template:Param value (edit) Template:Replace (edit) Template:Samp (edit) Template:Sandbox other (edit) Template:Spaced ndash (edit) Template:Tag (edit) Template:Template link code (edit) Template:Template link expanded (edit) Template:Template link null (edit) Template:Template other (edit) Template:Tl (edit) Template:Tlc (edit) Template:Tlx (edit) Template:Tnull (edit) Template:Update (edit) Template:Var (edit) Module:Arguments (edit) Module:High-use (edit) Module:Message box (edit) Module:Message box/configuration (edit) Module:Message box/ombox.css (edit) Module:String (edit) Module:Template link general (edit) Module:Transclusion count (edit) Module:Transclusion count/data/C (edit) Module:Yesno (edit)