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>
; {{larger|Unsaon pagdumala ang pagpakita sa kining plantilya}}
To manage this template's visibility when it first appears, [[Help:Template#Parameters|add the parameter]]:
* Use <code>{&#123;<!--
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state&#61;}}collapsed</code> to show the template in its collapsed state, i.e. hidden apart from its titlebar&nbsp;– e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly>&nbsp;{{!}}{{#ifeq:{{{statename|}}}|optional | |state&#61;}}collapsed{{))}}}};
--><includeonly>{{BASEPAGENAME}}</includeonly><!--
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state&#61;}}expanded</code> to show the template in its expanded state, i.e. fully visible&nbsp;– e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly>&nbsp;{{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}expanded{{))}}}};
--><noinclude>''Template name''</noinclude> <!--
: <code style="border:none;background:transparent;">{{!}}{{#ifeq:{{{statename|}}}|optional | |state&#61;}}autocollapse</code> to show the template in its collapsed state ''but only if'' there is another template of the same type on the page&nbsp;– e.g. {{mono|100%|{{((}}<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly>&nbsp;{{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse{{))}}}}.
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}collapsed}}</code>&nbsp; <!--
* {{#if:{{{state|}}}{{{default|}}}}}}
-->to show this template in its collapsed (hidden) state.
| <code style="border:none;background:transparent;">'''{{#if:{{{state|}}} |{{{state}}} |{{{default}}}}}'''</code> ''has been set as the default state.''
* Use <code>{&#123;<!--
| Unless set otherwise (see ''the {{mono|100%|state''}} parameter withinin the template's code), autocollapsethe template's default state is {{mono|100%|autocollapse}}.
--><includeonly>{{BASEPAGENAME}}</includeonly><!--
}}<!--
--><noinclude>''Template name''</noinclude> <!--
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}expanded}}</code>&nbsp; <!--
-->to show this template in its expanded (fully visible) state.
* Use <code>{&#123;<!--
--><includeonly>{{BASEPAGENAME}}</includeonly><!--
--><noinclude>''Template name''</noinclude> <!--
-->|{{#ifeq:{{{statename|}}}|optional | |state=}}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.
* {{#if:{{{state|{{{default|}}}}}}
| '''{{{state|{{{default}}}}}}''' has been set as
| 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:
{{documentation}}
-->{{template other
<!-- Add categories, interwiki links etc on the bottom of /doc page, not here -->
| {{#if:{{PROTECTIONLEVEL:edit}} |{{pp-template|docusage=yes}}
| {{#if:{{PROTECTIONLEVEL:move}} |{{pp-move|docusage=yes|small=yes}} }}
}} }} the default state.<noinclude>
{{Documentation}}
</noinclude>