الفرق بين النسختين بتاع «قالب:Collapsible option/doc»

تم إضافة 1,474 بايت ،  قبل 7 سنوات
ص
Migrating 15 interwiki links, now provided by Wikidata on d:Q5621491
ص (روبوت: تغييرات تجميلية)
ص (Migrating 15 interwiki links, now provided by Wikidata on d:Q5621491)
{{documentation subpage}}
{{صفحه توثيق فرعيه}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
AThe <code><nowiki>{{collapsible option}}</nowiki></code> template gives a standardised message for [[Wikipedia:Transclusion|transclusion]] on template pages whose templates include a ''state'' parameter (through which their collapsibility may be managed).
 
It may be used on either the template page itself (wrapped withwithin <tt><nowiki><noinclude></noinclude></nowiki></tt> tags), or on the template's {{tl|documentation}} subpage.
 
===Indicating optional use of ''state'' name===
=== See also ===
If, in a template where {{tlc|collapsible option}} has been transcluded, that template's ''state'' parameter has been enabled such that it need not be named when the template is called{{spaced ndash}}i.e. the ''state'' parameter includes <code><nowiki>{{{1| }}}</nowiki></code>, e.g.
: <code><nowiki>|state = {{{state|{{{1|}}}}}}</nowiki></code>
: or
: <code><nowiki>|state = {{{state|{{{1|<noinclude>expanded</noinclude>}}}}}}</nowiki></code>
: etc
then
: <code><nowiki>{{collapsible option |statename=optional}}</nowiki></code>
removes the instances of "state=" from the {{tlc|collapsible option}} message, i.e.
<div style="padding-left:2.0em;padding-right:2.0em;background:white;">
; {{larger|How to manage this template's visibility}}
* Use <code>{&#123;''Template name'' |collapsed}}</code>&nbsp; to show this template in its collapsed (hidden) state.
* Use <code>{&#123;''Template name'' |expanded}}</code>&nbsp; to show this template in its expanded (fully visible) state.
* Use <code>{&#123;''Template name'' |autocollapse}}</code>&nbsp; to show this template in its collapsed (hidden) state '''only if''' there is another template of the same type on the page. (This is usually the default, i.e. doesn't usually need specifying.)
</div>
 
=== See also ===
* {{tl|Collapsible lists option}}
* {{tl|Collapsible sections option}}
 
<!--Disabling per template as this does not generally appear to be used (and does not change if/when default state changed in template): Accepts the optional parameter <code>default</code> for cases when the template's default is not "autocollapsed"; it then displays its value instead of the "This" at the start of last sentence (bracketed).-->
Accepts the optional parameter <code>default</code> for cases when the template's default is not "autocollapsed"; it then displays its value instead of the "This" at the start of last sentence (bracketed).-->
 
<includeonly>
<!--Categories-->
[[Category:Wikipedia metatemplates|Collapsible option]]
 
<!--Interwikis-->
</includeonly>
 
<includeonly>
[[es:Plantilla:Opción plegable]]
</includeonly>
241

تعديل