Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Collapse: Difference between revisions

Template page
cat
actual dark mode fixes, not just skin-invert
 
(36 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{| class="collapsible collapsed" style="width:{{{width|100%}}}; margin:{{{margin|auto}}}; clear:{{{clear|both}}}; padding:1px; border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#aaa}}}; background:{{{background-c|#fff}}}; font-size:{{{header-fs|{{{font-size|88%}}}}}};"
<onlyinclude>
!colspan="0" style="padding-left:{{#ifeq:{{{header-align}}}|center|6.4|1}}em; padding-right:.4em; text-align:{{{header-align|center}}}; background-color:{{{header-c|#e0e0e0}}}"|{{{title}}}
{|class="mw-collapsible mw-{{{{{|safesubst:}}}#ifeq:{{{expand|<includeonly>no</includeonly>}}}|no||un}}collapsed {{{class|}}}" style="<!--
-->clear:{{{clear|both}}};<!--
-->margin:{{{margin|2px auto}}};<!--
-->background:{{{background-c|var(--background-color-base, #FFF)}}};<!--
-->color:{{{color|inherit}}};<!--
-->border:{{{border-w|1px}}} {{{border-s|solid}}} {{{border-c|#AAA}}};<!--
-->padding:1px;<!--
-->width:{{{width|100%}}}<!--
-->"
|-
|-
|style="text-align:{{{align|left}}}; font-size:{{{font-size|88%}}};"|
!scope="col" style="<!--
{{{1}}}
-->font-size:{{{header-fs|{{{font-size|88%}}}}}};<!--
|}<noinclude>
-->background:{{{header-c|var(--background-color-neutral, #eaecf0)}}};<!--
 
-->border:none;<!--
 
-->color:{{{header-fc|inherit}}};<!--
----
-->padding:0 .2em;<!--
'''{{int:usage}}:''' <nowiki>{{</nowiki>collapsed|title=''title''|''content''}}
-->text-align:{{{header-align|center}}}<!--
* Note: If the ''content'' includes an equal sign, use <nowiki>{{</nowiki>collapsed|title=''title''|1=''content''}} or replace the equal signs with <code>&amp;#61;</code> or <code>{{tl|1==}}</code>.
-->"| {{{{{|safesubst:}}}#if:{{{title|}}}|{{{title|}}}|{{PAGENAME}}}}
 
|-
;Optional parameters<nowiki>:</nowiki>
|class="mw-collapsible-content" style="<!--
* <code>background-c</code> = background color {{grey|(default: #fff)}}
-->font-size:{{{font-size|88%}}};<!--
* <code>border-c</code> = border color {{grey|(default: #aaa)}}
-->border:none;<!--
* <code>border-w</code> = border width {{grey|(default: 1px)}}
-->padding:0;<!--
* <code>border-s</code> = border style {{grey|(default: solid)}}
-->{{{{{|safesubst:}}}#if:{{{align|}}}|text-align:{{{align|}}}}}<!--
* <code>header-c</code> = header color {{grey|(default: #e0e0e0)}}
-->"|<includeonly>{{{1}}}</includeonly><noinclude>{{Lorem Ipsum}}</noinclude>
* <code>font-size</code> = size of header and body text {{grey|(default: 88%)}}
|}<includeonly>{{{{{|safesubst:}}}#if:{{{1|}}}||[[Category:Pages using "Collapse" template without content]]}}</includeonly></onlyinclude>
* <code>header-fs</code> = size of header text {{grey|(default: 88% or '<tt>font-size</tt>' if set)}}
{{Documentation}}
* <code>width</code> = width of box {{grey|(default: 100%)}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
View source for additional parameters.
<!--
The title is shifted slightly to the left due to the show/hide button. This can be corrected by declaring '<tt>header-align</tt>' equal to '<tt>center</tt>' (even though that's already the default).
-->
 
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:Collapsible templates|{{PAGENAME}}]]
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.