Template:Collapsible option: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus Update from sandbox/testcases ("nobase") |
meta>Sillyfolkboy m avoid template redirect in heavily used template |
||
Line 1: | Line 1: | ||
{{big|'''How to manage this template's visibility'''}} | {{big|'''How to manage this template's visibility'''}} | ||
* Use {{ | * Use {{tcplain|<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}collapsed}} to show this template in its collapsed (i.e. hidden<!--or: titlebar-only-->) state. | ||
: Use {{ | : Use {{tcplain|<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}expanded}} to show this template in its expanded (i.e. fully visible) state. | ||
: Use {{ | : Use {{tcplain|<includeonly>{{</includeonly>{{#if:{{{nobase|}}} | |BASE}}PAGENAME<includeonly>}}</includeonly> {{!}}{{#ifeq:{{{statename|}}}|optional | |state=}}autocollapse}} to show this template in its collapsed state '''''only if''''' there is another template of the same type on the page. | ||
* {{#if:{{{state|}}}{{{default|}}} | * {{#if:{{{state|}}}{{{default|}}} | ||
| '''''{{#if:{{{state|}}} |{{{state}}} |{{{default}}} }}''' has been set as the default state. | | '''''{{#if:{{{state|}}} |{{{state}}} |{{{default}}} }}''' has been set as the default state. |
Revision as of 17:52, 19 October 2014
How to manage this template's visibility
- Use Template:Tcplain to show this template in its collapsed (i.e. hidden) state.
- Use Template:Tcplain to show this template in its expanded (i.e. fully visible) state.
- Use Template:Tcplain to show this template in its collapsed state only if there is another template of the same type on the page.
- Unless set otherwise (see the state parameter within the template's code), the template's default state is "autocollapse".