Template:ExpandBox: Difference between revisions
Jump to navigation
Jump to search
(No longer floats by default, removed clr at its end. Should open/close smoother now. Removed {{{noendlinebreak}}}, I'll fix the 3 pages using it. Invented more intuitive parameter {{{title}}}, but keeping {{{2}}} for backwards compatibility.) |
(Fixed indented ExpandBoxes like ":{{ExpandBox|\n...}}" not collapsing any content and {{{1}}} landing below it (unless every line of {{{1}}} has the same indent) by re-adding a leading newline... :( So we still can't indent ExpandBoxes.) |
||
Line 2: | Line 2: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div class="mw-collapsible {{#ifeq:{{{startcollapsed|1}}}|0||mw-collapsed}}" data-expandtext="{{{expandtext|Expand}}}" data-collapsetext="{{{collapsetext|Collapse}}}" style="border:1px rgba(255,255,255,0.2) solid; overflow:auto; float:{{{side|none}}}; display: table-cell; {{{style|}}}"><!-- | --> | ||
<div class="mw-collapsible {{#ifeq:{{{startcollapsed|1}}}|0||mw-collapsed}}" data-expandtext="{{{expandtext|Expand}}}" data-collapsetext="{{{collapsetext|Collapse}}}" style="border:1px rgba(255,255,255,0.2) solid; overflow:auto; float:{{{side|none}}}; display: table-cell; {{{style|}}}"><!-- | |||
-->'''{{{title|{{{2|}}}}}} '''<!-- | -->'''{{{title|{{{2|}}}}}} '''<!-- | ||
--><div class="mw-collapsible-content" style="max-width:83em; padding:0 0.5em"><!-- | --><div class="mw-collapsible-content" style="max-width:83em; padding:0 0.5em"><!-- |
Revision as of 22:04, 17 May 2022
The above documentation is transcluded from Template:ExpandBox/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.