Template:Expand: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 (Created page with "{{doc}}  <includeonly>  <onlyinclude><!--  -->{| class="mw-collapsible {{#ifeq:{{{startcollapsed|1}}}|0||mw-collapsed}}" style={{#if:{{{styleoverride|}}}|{{{styleoverride}}}|"<!-- -->background:{{{bgcolor|rgba(0,0,0,0.05)}}};<!-- -->float:{{{float|no}}};<!-- -->margin-bottom:{{{margin_bottom|1em}}};<!-- -->margin-left:{{{margin_left|0}}};<!-- -->padding-right:0.5em;<!-- -->{{#ifeq:{{{noborder|0}}}|0|border:1px solid rgba(255,255,255,0.1); border-left:solid 1px {{{color|#...")  | 
			
(No difference) 
 | 
Latest revision as of 06:28, 4 January 2025
Template Documentation [edit]
Usage
Parameters
{{{1}}}: The content to expand or hide.
{{{float}}}: Set to 
left or right if floating is desired.{{{title}}}: An optional title shown next to the expand button.
{{{titlestyle}}}: Adds extra title style parameters.
{{{noborder}}}: If non-zero, use no border on the left. Template:Warning
{{{color}}}: The color of the left border and title, if used.
{{{startcollapsed}}}: If set to 0, the content will initially be visible, otherwise collapsed. Default is 1.
{{{style}}}: Adds style parameters for the table that this template is based on.
{{{styleoverride}}}: Overrides ALL table style parameters. Not recommended unless you know what you are doing! Using this can break the template!
{{{titlestyleoverride}}}: Overrides ALL title style parameters. Not recommended unless you know what you are doing! Using this can break the title!
Examples
{{expand|{{KV Breakable}}}} renders as follows.
| Template:KV Breakable | 
{{expand|{{KV Breakable}}|noborder=1}} renders as follows.
| Template:KV Breakable | 
{{expand|color=yellow|title=Yellow|Yellow!}} renders as follows.
| Yellow! | 
:{{expand|Can be indented.}} renders as follows.
| Can be indented. | 
{{expand
|title=float{{=}}right
|float=right
|
The title alignment also uses {{param|float}} so that the button stays at the same position when toggling.
}}
| 
 The title alignment also uses {{{float}}} so that the button stays at the same position when toggling.  | 
See how this renders on the right.