Template:ExpandBox/doc

From Valve Developer Community
< Template:ExpandBox
Revision as of 05:46, 30 April 2021 by Orinuse (talk | contribs) (screw it, adding in the alias of "nostarterlinebreak" - "nostartinglinebreak")
Jump to navigation Jump to search
Edit-copy.png
This is a documentation subpage for Template:ExpandBox.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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
}}

  • Sample
  • Enumeration
  • Worth
  • Hiding
<!-- nostartinglinebreak can be replaced with nostarterlinebreak -->{{ExpandBox | nostartinglinebreak=1 | noendlinebreak=1 |
* Sample
* Enumeration
* Worth
* Hiding
}}

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

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

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