Difference between revisions of "Template:Collapse top"

From RobotX
Jump to navigation Jump to search
Wikimedia Commons>4nn1l2
m (Changed protection level for "Template:Collapse top": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)))
m (Text replacement - "<languages/>" to "")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="margin-left:{{{indent|0}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section -->
+
<noinclude>
{| <!-- Template:Collapse top --> class="mw-collapsible {{{{{|safesubst:}}}#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{{{{|safesubst:}}}#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;"
+
 
|-
+
</noinclude>{{#switch:
! style="background: {{{bg|#{{main other|EEF|CFC}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{{{{|safesubst:}}}#if:{{{left|}}}|left|center}}; {{{{{|safesubst:}}}#if:{{{fc|}}}|color: {{{fc}}};|}}" | <span style="font-size:115%">{{{1|{{{title|{{{reason|{{{header|{{{heading|Extended content}}} }}} }}} }}} }}}</span> 
+
| =
{{{{{|safesubst:}}}#if:{{{warning|{{{2|}}}}}}
+
<div style="display:{{{display|block}}}; margin-{{dir|{{pagelang}}|right|left}}:{{{indent|0px}}}; {{{extrastyle|}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section-->
|{{{{{|safesubst:}}}!}}-
+
<table class="navbox mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="background:{{{bg1|transparent}}}; text-align:{{dir|{{pagelang}}|right|left}}; border:{{{border|1px}}} solid {{{b-color|silver}}}; margin-top:0.2em; {{#if:{{{width|}}}|width:{{{width}}};}}">
{{{{{|safesubst:}}}!}} style="text-align:center; font-style:italic;" {{{{{|safesubst:}}}!}} {{{2|The following is a closed debate. '''Please do not modify it.''' }}} }}
+
<tr>
|-
+
<th style="background-color:{{{bg|#F8FCFF}}}; text-align:{{#if:{{{left|}}}|{{dir|{{pagelang}}|right|left}}|center}}; font-size:112%; color:{{{fc|black}}}">{{{1|{{{title|{{{reason|{{{header|{{{heading| Extended content}}} }}} }}} }}} }}}
| style="border: solid {{{border2|1px Silver}}}; padding: {{{padding|0.6em}}}; background: {{{bg2|White}}};" {{{{{|safesubst:}}}!}}<noinclude>
+
{{#if:{{{warning|{{{2|}}}}}}
{{lorem ipsum|3}}
+
|</th>
 +
  </tr><tr>
 +
  <td style="text-align:center; font-style:italic">{{{2| The following is a closed debate. {{strongbad| Please do not modify it.}} }}}</td>
 +
|</th>
 +
}}
 +
</tr><tr>
 +
<td style="border:solid {{{border2|1px silver}}}; padding:{{{padding|8px}}}; background-color:{{{bg2|white}}}; font-size:112%">
 +
| #default=
 +
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Collapse top|noshift=1}}
 +
}}<noinclude>
 +
<div style="width:100%; text-align:center">'' The following content has been placed in a collapsed box for improved usability.''</div>
 
{{Collapse bottom}}
 
{{Collapse bottom}}
{{Documentation}}
+
{{Documentation|content=
{{Collapse top/TemplateData}}
+
 
 +
Use with {{tl|Collapse bottom}}, putting the content to be collapsed between the two templates.
 +
 
 +
This template has many parameters ''that should be documented here''.
 +
For now, see the documentation for [[w:Template:Collapse top|the equivalent template on enwiki]].
 +
 
 +
}}
 +
[[Category:Formatting templates{{#translation:}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:50, 21 December 2019


Template documentation

Use with {{Collapse bottom}}, putting the content to be collapsed between the two templates.

This template has many parameters that should be documented here. For now, see the documentation for the equivalent template on enwiki.