Plantilya:Collapsible option : Kalainan tali sa mga rebisyon
Content deleted Content added
No edit summary |
No edit summary |
||
Linya 1:
<div style="font-size:120%;font-weight:bold;"> How to manage this template's initial visibility </div>
To manage this template's visibility when it first appears, [[Help:Template#Parameters|add the parameter]]:
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}collapsed</code> to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}collapsed{{))}}}};
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}expanded</code> to show the template in its expanded state, i.e. fully visible – e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}expanded{{))}}}};
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse</code> to show the template in its collapsed state ''but only if'' there is another template of the same type on the page – e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse{{))}}}}.
| <code style="border:none;background:transparent;">'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''</code> ''has been set as the default state.''
}}<!--
▲* {{#if:{{{state|{{{default|}}}}}}
▲ | Unless set otherwise (see ''state'' parameter within the template's code), autocollapse is
}} the default state.<noinclude>▼
Add {{pp-template}} if template page where this template is transcluded is protected:
-->{{template other
| {{#if:{{PROTECTIONLEVEL:edit}} |{{pp-template|docusage=yes}}
| {{#if:{{PROTECTIONLEVEL:move}} |{{pp-move|docusage=yes|small=yes}} }}
{{Documentation}}
</noinclude>
|