Template:Collapsible option: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
formatting (improved handling for long template names)
meta>Sardanaphalus
rephrasing
Line 2: Line 2:


--><span style="white-space:nowrap;">Use &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=collapsed}}</code>&nbsp; </span><!--
--><span style="white-space:nowrap;">Use &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=collapsed}}</code>&nbsp; </span><!--
--><span style="white-space:nowrap;">or &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=uncollapsed}}</code>&nbsp; </span><!--
-->to [[Wikipedia:Transclusion|transclude]] this template in its collapsed (hidden) state.<br/><!--
-->to include the template so that it initially displays in, respectively, its collapsed (hidden) or uncollapsed (expanded) state.<br/>


<span style="white-space:nowrap;">Use &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=autocollapse}}</code>&nbsp; </span><!--
--><span style="white-space:nowrap;">Use &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=expanded}}</code>&nbsp; </span><!--
-->to collapse the template only if there is another template of the same type on the page.<!--
-->to transclude this template in its expanded (uncollapsed) state.<br/><!--
 
--><span style="white-space:nowrap;">Use &nbsp;<code><nowiki>{{</nowiki><includeonly>{{PAGENAME}}</includeonly><noinclude>''Template name''</noinclude>|state=autocollapse}}</code>&nbsp; </span><!--
-->to transclude this template in its collapsed (hidden) state only if there is another template of the same type on the page.<!--


--></div><noinclude>
--></div><noinclude>


{{template doc}}
<br/>{{template doc}}
<!--Please add any interwiki links etc on the /doc page, not here - thanks!-->
<!--Please add any interwiki links etc on the /doc page, not here - thanks!-->
</noinclude>
</noinclude>

Revision as of 05:24, 29 February 2008

Use  {{Template name|state=collapsed}}  to transclude this template in its collapsed (hidden) state.
Use  {{Template name|state=expanded}}  to transclude this template in its expanded (uncollapsed) state.
Use  {{Template name|state=autocollapse}}  to transclude this template in its collapsed (hidden) state only if there is another template of the same type on the page.