Difference between revisions of "Template:ExpandBox"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude>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.) </noinclude> | <noinclude>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.) </noinclude> | ||
− | <div class="mw-collapsible mw-collapsed" data-expandtext="{{{expandtext|Expand | + | <div class="mw-collapsible mw-collapsed" data-expandtext="{{#If:{{{expandtext|}}}|{{{expandtext}}}|Expand}}" data-collapsetext="{{#If:{{{collapsetext|}}}|{{{collapsetext}}}|Collapse}}" style="border:1px grey solid; overflow:auto; float:{{#switch:{{lc:{{{side}}}}} |
| left = left | | left = left | ||
| right = right | | right = right | ||
− | | #default = left}}; display: inline-block;">{{{2|}}}<div class="mw-collapsible-content" style="display: none;"><div style="padding-right:6em;max-width:83em;">{{{1}}}</div></div></div>ᅠ | + | | #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>ᅠ |
Latest revision as of 19:13, 25 July 2020
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.)
ᅠ