Template:Collapse top: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(Source: https://Wikitech.Wikimedia.org/wiki/Template:Collapse_top)
 
(Cleanup)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{<noinclude></noinclude>{{!}}<!--Template:Collapse top-->class="navbox mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="text-align:left; border:{{{border|1px}}} solid silver; margin-top:0.2em"
{{{!}}<!--Template:Collapse top-->class="navbox mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="text-align:left; border:{{{border|1px}}} solid silver; margin-top:0.2em"
{{!}}-
!style="background-color:{{{bg|#CFC}}}"{{!}}{{{1|Extended content}}}
!style="background-color:{{{bg|#CFC}}}"{{!}}{{{1|Extended content}}}
{{!}}-
{{!}}-
{{!}}style="text-align:center"{{!}}''The following content has been placed in a collapsed box for improved usability.''
{{!}}style=text-align:center{{!}}''The following content has been placed in a collapsed box for improved usability.''
{{!}}-
{{!}}-
{{!}}style="border:solid 1px silver; padding:8px; background-color:white"{{!}}<noinclude>
{{!}}style="border:solid 1px silver; padding:8px; background-color:white"{{!}}<noinclude>
Line 13: Line 12:
<pre>
<pre>
{{Collapse top|Optional title}}
{{Collapse top|Optional title}}
Example content
Example content inside a collapsible box with a green title bar
{{Collapse bottom}}
{{Collapse bottom}}</pre>
</pre>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 22:32, 5 May 2022

Usage
{{Collapse top|Optional title}}
Example content inside a collapsible box with a green title bar
{{Collapse bottom}}