Template:Expand: Difference between revisions
Jump to navigation
Jump to search
(Created as a variant of ExpandBox. Maybe making ExpandBox an instance of this is a thing.) |
(Made it indentable again! Removed default background if noborder=1. Removed {{{styleoverride}}} and {{{titlestyleoverride}}} because 1. no pages use it, 2. this code gets more complicated than needed 3. there is already {{{style}}} and {{{titlestyle}}} to override, they're just not as convenient to start with the style of a default table, in which case you shouldn't use this template.) |
||
(11 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{doc}}<!-- | ||
-->{| class="mw-collapsible mw-collapsed" style="background: | --><includeonly><onlyinclude><!-- | ||
|+ style="text-align:left; white-space:nowrap; font-weight:bold; color:{{{color|# | |||
|{{{1}}} | That first space makes this template indentable, see mw:Manual:Newlines_and_spaces#Automatic_new_line | ||
--> {| class="mw-collapsible {{#ifeq:{{{startcollapsed|1}}}|0||mw-collapsed}}" <!-- | |||
-->style="<!-- | |||
-->background:{{{bgcolor|{{#ifeq:{{{noborder|0}}}|0|rgba(0,0,0,0.05)|transparent}} }}};<!-- | |||
-->float:{{{float|no}}};<!-- | |||
-->margin-bottom:{{{margin_bottom|1em}}};<!-- | |||
-->margin-left:{{{margin_left|0}}};<!-- | |||
-->padding-right:0.5em;<!-- | |||
-->{{#ifeq:{{{noborder|0}}} | 0 | border:1px solid rgba(255,255,255,0.1); border-left:solid 1px {{{color|#8bb9e0}}}; padding-left:1em; | }}<!-- | |||
-->{{{style|}}}<!-- | |||
-->" | |||
|+ style="text-align:{{{float|left}}}; white-space:nowrap; font-weight:bold; color:{{{color|#ddd}}}; {{{titlestyle|}}}" | {{{title|}}} | |||
| {{{1}}} | |||
|}<!-- | |}<!-- | ||
--></ | --></onlyinclude></includeonly> | ||
Latest revision as of 21:35, 17 January 2025
The above documentation is transcluded from Template:Expand/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.