
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://kb.speeddemosarchive.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://kb.speeddemosarchive.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse</id>
		<title>Template:Collapse - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://kb.speeddemosarchive.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ACollapse"/>
		<link rel="alternate" type="text/html" href="https://kb.speeddemosarchive.com/index.php?title=Template:Collapse&amp;action=history"/>
		<updated>2026-05-14T22:46:53Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.9</generator>

	<entry>
		<id>https://kb.speeddemosarchive.com/index.php?title=Template:Collapse&amp;diff=5894&amp;oldid=prev</id>
		<title>Najzere: skeleton template for collapsible elements</title>
		<link rel="alternate" type="text/html" href="https://kb.speeddemosarchive.com/index.php?title=Template:Collapse&amp;diff=5894&amp;oldid=prev"/>
				<updated>2010-07-31T20:27:13Z</updated>
		
		<summary type="html">&lt;p&gt;skeleton template for collapsible elements&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;NavFrame {{#if:{{{expand|}}}||collapsed}}&amp;quot; style=&amp;quot;{{{framestyle|}}}&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;NavHead&amp;quot; style=&amp;quot;{{{headstyle|}}}&amp;quot;&amp;gt;{{{1}}}&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;NavContent&amp;quot; style=&amp;quot;{{{contentstyle|}}}&amp;quot;&amp;gt;{{{2}}}{{-}}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template creates a collapsible element which can be expanded. Use this template to make topic-specific templates if additional styling will be used in them that won't necessarily be used in other pages on the wiki. For instance, if you want a colored border around the whole thing and different colored backgrounds for the visible text and hidden content for [[Super Mario Galaxy]], make a template at &amp;quot;Template:SMG ''template name''&amp;quot; using this template with the appropriate styles instead of just calling this template directly with all the style parameters every time.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The two required parameters are for the visible and hidden contents. These are unnamed parameters, with the visible text coming first, then the hidden content.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapse|Visible text|Hidden content}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{collapse|Visible text|Hidden content}}&lt;br /&gt;
&lt;br /&gt;
There are four optional named parameters which can be used to add styles to the template and modify how it is displayed.&lt;br /&gt;
*&amp;lt;tt&amp;gt;framestyle&amp;lt;/tt&amp;gt;: Defines the style of the outer container.&lt;br /&gt;
*&amp;lt;tt&amp;gt;headstyle&amp;lt;/tt&amp;gt;: Defines the style of the element containing the visible text.&lt;br /&gt;
*&amp;lt;tt&amp;gt;contentstyle&amp;lt;/tt&amp;gt;: Defines the style of the element containing the hidden content.&lt;br /&gt;
*&amp;lt;tt&amp;gt;expand&amp;lt;/tt&amp;gt;: Put ''yes'' in this parameter to start with the hidden text visible. The default is for the hidden text to be hidden.&lt;br /&gt;
&lt;br /&gt;
These parameters should go after the mandatory parameters and be named:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{collapse|Visible text|Hidden content&lt;br /&gt;
|framestyle=border:1px solid lightgray&lt;br /&gt;
|headstyle=font-weight:bold;text-align:center&lt;br /&gt;
|contentstyle=color:red;margin-left:1em&lt;br /&gt;
|expand=yes}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{collapse|Visible text|Hidden content|framestyle=border:1px solid lightgray|headstyle=font-weight:bold;text-align:center|contentstyle=color:red;margin-left:1em|expand=yes}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Templates|{{PAGENAME}}]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Najzere</name></author>	</entry>

	</feed>