Editing
Template:Collapsible option/doc
Jump to navigation
Jump to search
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}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> {{High-risk| approximately 106000 }} {{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 <code>state</code>. It may be used on either the template page itself (wrapped within {{tag|noinclude}} tags) or on the template's {{tl|documentation subpage}}. ===Indicating optional use of ''state'' name=== The <code>state</code> parameter used to manage collapsible templates need not always be named explicitly, i.e. {{braces|[''Template name'']{{!}}''state''}} can be the same as {{braces|[''Template name'']{{!}}state=''state''}}. To indicate this in the <nowiki>{{Collapsible option}}</nowiki> 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> <div style="font-size:95%;line-height:1.7em;">(This possibility is enabled by including: *<code><nowiki>{{{1|}}}</nowiki></code> as part of a collapsible template's <code>state</code> 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. {{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.)</div> ===Changing the default state=== To change the default state <nowiki>{{Collapsible option}}</nowiki> uses, add the parameter {{para<!--|plain-->|default|collapsed}} or {{para<!--|plain-->|default|expanded}} accordingly. To restore the default, remove any {{para<!--|plain-->|default}} previously included. ===''nobase''=== If the template name given to <nowiki>{{Collapsible option}}</nowiki> includes a (forward-)slash character ("/"), the parameter {{para<!--|plain-->|nobase}} (set to "on", "true", 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). == See also == * {{tl|Collapsible lists option}} * {{tl|Collapsible sections option}} * [[Help:Collapsing]] <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> [[Category:Documentation shared content templates]] [[Category:Wikipedia metatemplates]] }}</includeonly>
Summary:
Please note that all contributions to IDU 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
IDU Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who is the wiki admin
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information