Template:Expand/doc: Difference between revisions
m (Added Category:Layout Container) |
m (Updated parameters.) |
||
Line 4: | Line 4: | ||
=== Parameters === | === Parameters === | ||
{{inline note|bold=0|name={{param|1}}|The | {{inline note|bold=0|name={{param|1}}|The content to expand or hide.}} | ||
{{inline note|bold=0|name={{param|float}}|Set to <code>left</code> or <code>right</code> if floating is desired.}} | {{inline note|bold=0|name={{param|float}}|Set to <code>left</code> or <code>right</code> if floating is desired.}} | ||
{{inline note|bold=0|name={{param|title}}|An optional title shown next to the expand button.}} | {{inline note|bold=0|name={{param|title}}|An optional title shown next to the expand button.}} | ||
{{inline note|bold=0|name={{param|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!}}}} | {{inline note|bold=0|name={{param|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!}}}} | ||
{{inline note|bold=0|name={{param|color}}|The color of the left border and title, if used.}} | {{inline note|bold=0|name={{param|color}}|The color of the left border and title, if used.}} | ||
{{inline note|bold=0|name={{param|startcollapsed}}|If set to 0, the content will initially be visible, otherwise collapsed. Default is 1.}} | |||
{{inline note|bold=0|name={{param|style}}|Override style parameters for the table that this template is based on.}} | {{inline note|bold=0|name={{param|style}}|Override style parameters for the table that this template is based on.}} | ||
Revision as of 22:23, 17 May 2022

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Usage
Parameters
left
or right
if floating is desired.
Examples
{{expand|{{:Main Page}}}}
renders as follows.
Welcome to the
Valve Developer Community
13,091 articles documenting the development process.
Whether you're building 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.
|
|
© 2005–2025 Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. See the Terms of Use for details
About Valve Developer Community · Privacy Policy · Third Party Legal Notices
{{expand|{{:Main Page}}|noborder=1}}
renders as follows.
Welcome to the
Valve Developer Community
13,091 articles documenting the development process.
Whether you're building 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.
|
|
© 2005–2025 Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. See the Terms of Use for details
About Valve Developer Community · Privacy Policy · Third Party Legal Notices
{{expand|color=yellow|title=Yellow|Yellow!}}
renders as follows.
Yellow! |
{{expand|style=margin-left:2em|Artificial indent.}}
renders as follows.
Artificial indent. |
{{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.