Template:Expand: Difference between revisions
Jump to navigation
Jump to search
(Added thin grey borders all around. Added {{{startcollapsed}}} parameter.) |
(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.) |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{doc}}<!-- | ||
-->{| class="mw-collapsible {{#ifeq:{{{startcollapsed|1}}}|0||mw-collapsed}}" style="<!-- | --><includeonly><onlyinclude><!-- | ||
-->background:rgba(0,0,0,0.05);<!-- | |||
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}}};<!-- | -->float:{{{float|no}}};<!-- | ||
-->margin-bottom: | -->margin-bottom:{{{margin_bottom|1em}}};<!-- | ||
-->margin-left:{{{margin_left|0}}};<!-- | |||
-->padding-right:0.5em;<!-- | -->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; | }}<!-- | |||
-->{{#ifeq:{{{noborder|0}}}|0|border:1px solid rgba(255,255,255,0.1); border-left:solid 1px {{{color|#8bb9e0}}};padding-left:1em;|}}<!-- | |||
-->{{{style|}}}<!-- | -->{{{style|}}}<!-- | ||
-->" | -->" | ||
|+ style="text-align:{{{float|left}}}; white-space:nowrap; font-weight:bold; color:{{{color|#ddd}}}| {{{title|}}} | |+ style="text-align:{{{float|left}}}; white-space:nowrap; font-weight:bold; color:{{{color|#ddd}}}; {{{titlestyle|}}}" | {{{title|}}} | ||
|{{{1}}} | | {{{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.