Template:ExpandBox/doc: Difference between revisions
Jump to navigation
Jump to search
m (param rename) |
(Added example text before and after each ExpandBox to visualize text alignment and split starterlinebreak and noendlinebreak into two examples.) |
||
Line 4: | Line 4: | ||
{| class="standard-table" style="width:100%;" | {| class="standard-table" style="width:100%;" | ||
|+ Example usage | |+ Example usage | ||
! style="width: | ! Parameter | ||
! style="width: | ! style="width:42%;" | Wikitext | ||
! style="width:42%;" | Result | |||
|- | |- | ||
| <pre>{{ExpandBox | | | None | ||
| <pre>Previous text. | |||
{{ExpandBox | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
* Worth | * Worth | ||
* Hiding | * Hiding | ||
}}</pre> | }} | ||
| {{ExpandBox | | Subsequent text.</pre> | ||
| Previous text. | |||
{{ExpandBox | | |||
* Sample | |||
* Enumeration | |||
* Worth | |||
* Hiding | |||
}} | |||
Subsequent text. | |||
|- | |||
| <code>starterlinebreak</code> | |||
| <pre>Previous text. | |||
{{ExpandBox | starterlinebreak=1 | | |||
* Sample | |||
* Enumeration | |||
* Worth | |||
* Hiding | |||
}} | |||
Subsequent text.</pre>{{Note | <code>starterlinebreak</code> can be replaced with <code>startinglinebreak</code>.}} | |||
| Previous text. | |||
{{ExpandBox | starterlinebreak=1 | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 19: | Line 42: | ||
* Hiding | * Hiding | ||
}} | }} | ||
Subsequent text. | |||
|- | |- | ||
| < | | <code>noendlinebreak</code> | ||
| <pre>Previous text. | |||
{{ExpandBox | noendlinebreak=1 | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
* Worth | * Worth | ||
* Hiding | * Hiding | ||
}}</pre> | }} | ||
| | Subsequent text.</pre> | ||
| Previous text. | |||
{{ExpandBox | noendlinebreak=1 | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 32: | Line 60: | ||
* Hiding | * Hiding | ||
}} | }} | ||
Subsequent text. | |||
|- | |- | ||
| <pre>{{ExpandBox | expandtext=Show | collapsetext=Hide | | | <code>expandtext</code><br><code>collapsetext</code> | ||
| <pre>Previous text. | |||
{{ExpandBox | expandtext=Show | collapsetext=Hide | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
* Worth | * Worth | ||
* Hiding | * Hiding | ||
}}</pre> | }} | ||
| {{ExpandBox | expandtext=Show | collapsetext=Hide | | Subsequent text.</pre> | ||
| Previous text. | |||
{{ExpandBox | expandtext=Show | collapsetext=Hide | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 45: | Line 78: | ||
* Hiding | * Hiding | ||
}} | }} | ||
Subsequent text. | |||
|- | |- | ||
| <pre>{{ExpandBox | side=right | | | <code>side</code> | ||
| <pre>Previous text. | |||
{{ExpandBox | side=right | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
* Worth | * Worth | ||
* Hiding | * Hiding | ||
}}</pre> | }} | ||
| {{ExpandBox | side=right | | Subsequent text.</pre> | ||
| Previous text. | |||
{{ExpandBox | side=right | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 58: | Line 96: | ||
* Hiding | * Hiding | ||
}} | }} | ||
Subsequent text. | |||
|- | |- | ||
| <pre>{{ExpandBox | | | The second unnamed parameter is the title. | ||
| <pre>Previous text. | |||
{{ExpandBox | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 65: | Line 106: | ||
* Hiding | * Hiding | ||
| Example for an ExpandBox | | Example for an ExpandBox | ||
}}</pre> | }} | ||
| {{ExpandBox | | Subsequent text.</pre> | ||
| Previous text. | |||
{{ExpandBox | | |||
* Sample | * Sample | ||
* Enumeration | * Enumeration | ||
Line 73: | Line 116: | ||
| Example for an ExpandBox | | Example for an ExpandBox | ||
}} | }} | ||
Subsequent text. | |||
|} | |} | ||
Revision as of 10:46, 7 May 2021

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.
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.)
Parameter | Wikitext | Result |
---|---|---|
None | Previous text. {{ExpandBox | * Sample * Enumeration * Worth * Hiding }} Subsequent text. |
Previous text.
Subsequent text. |
starterlinebreak
|
Previous text. {{ExpandBox | starterlinebreak=1 | * Sample * Enumeration * Worth * Hiding }} Subsequent text. ![]() starterlinebreak can be replaced with startinglinebreak . |
Previous text.
Subsequent text. |
noendlinebreak
|
Previous text. {{ExpandBox | noendlinebreak=1 | * Sample * Enumeration * Worth * Hiding }} Subsequent text. |
Previous text.
Subsequent text. |
expandtext collapsetext
|
Previous text. {{ExpandBox | expandtext=Show | collapsetext=Hide | * Sample * Enumeration * Worth * Hiding }} Subsequent text. |
Previous text.
Subsequent text. |
side
|
Previous text. {{ExpandBox | side=right | * Sample * Enumeration * Worth * Hiding }} Subsequent text. |
Previous text.
Subsequent text. |
The second unnamed parameter is the title. | Previous text. {{ExpandBox | * Sample * Enumeration * Worth * Hiding | Example for an ExpandBox }} Subsequent text. |
Previous text.
Example for an ExpandBox
Subsequent text. |