From Valve Developer Community

Template Documentation
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.
Warning:It can become difficult to tell where the expanded text ends if the background colors are identical!
{{{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|{{:Main Page/{{uselang}}}}}}
renders as follows.
Welcome to the Valve Developer Community. Whether you're building a triple-A commercial project or a modification for Half-Life 2, you'll want to sign up as a Valve developer today. It's free to join and is open to anyone working with the Source engine and its software development kit.
Sign up to become part of the community!
Our knowledge base of technical information about using the engine and all of the related tools is posted on a community-driven web site called a wiki. Sign up as a developer to contribute.
Looking for Source 2 documentation in general? Visit the page by clicking on the button or the text above. Otherwise, you can check out the following Source 2 games with its Workshop Tools below:
The engine under the hood of Half-Life 2 can make your game a success. Let Source™ do the heavy lifting so that your team can focus on building great games.
If you're interested in building a product using Source or Source 2, talk to us about options for distribution on Steam.
|
{{expand|{{:Main Page/{{uselang}}}}|noborder=1}}
renders as follows.
Welcome to the Valve Developer Community. Whether you're building a triple-A commercial project or a modification for Half-Life 2, you'll want to sign up as a Valve developer today. It's free to join and is open to anyone working with the Source engine and its software development kit.
Sign up to become part of the community!
Our knowledge base of technical information about using the engine and all of the related tools is posted on a community-driven web site called a wiki. Sign up as a developer to contribute.
Looking for Source 2 documentation in general? Visit the page by clicking on the button or the text above. Otherwise, you can check out the following Source 2 games with its Workshop Tools below:
The engine under the hood of Half-Life 2 can make your game a success. Let Source™ do the heavy lifting so that your team can focus on building great games.
If you're interested in building a product using Source or Source 2, talk to us about options for distribution on Steam.
|
{{expand|color=yellow|title=Yellow|Yellow!}}
renders as follows.
:{{expand|Can be indented.}}
renders as follows.
{{expand
|title=float{{=}}right
|float=right
|
The title alignment also uses {{param|float}} so that the button stays at the same position when toggling.
}}
float=right
The title alignment also uses {{{float}}} so that the button stays at the same position when toggling.
|
See how this renders on the right.