Template:ExpandBox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added examples.)
m (added '<br clear="all">' at the very end of the template; ExpandBox shouldn't interfere with text flow weirdly anymore)
Line 64: Line 64:
| left        = left
| left        = left
| right      = right
| right      = right
| #default    = left}}; display: inline-block;">{{#If:{{{2|}}}|'''{{{2}}}'''|}}<div class="mw-collapsible-content" style="display: none;"><div style="padding-right:6em;max-width:83em;">{{{1}}}</div></div></div>ᅠ</includeonly>
| #default    = left}}; display: inline-block;">{{#If:{{{2|}}}|'''{{{2}}}'''|}}<div class="mw-collapsible-content" style="display: none;"><div style="padding-right:6em;max-width:83em;">{{{1}}}</div></div></div>ᅠ<br clear="all"></includeonly>

Revision as of 11:30, 23 April 2021

This template is intended for very long lists that aren't significant enough to warrant their own page, but also end up making pages ridiculously long. Works fine even if used multiple times on a page. (Also, won't interfere with TOCs.)

Example usage
Wikitext Result
{{ExpandBox |
* Sample
* Enumeration
* Worth
* Hiding
}}

{{ExpandBox | expandtext=Show | collapsetext=Hide |
* Sample
* Enumeration
* Worth
* Hiding
}}

{{ExpandBox | side=right |
* Sample
* Enumeration
* Worth
* Hiding
}}

{{ExpandBox |
* Sample
* Enumeration
* Worth
* Hiding
| Example for an ExpandBox
}}
Example for an ExpandBox