Difference between revisions of "Template:Collapse top"
Jump to navigation
Jump to search
>Shirayuki (move TemplateData to /doc) |
>Shirayuki (prepare for translation) |
||
Line 24: | Line 24: | ||
The {{tlx|collapse top}} template, and its paired template {{tlx|collapse bottom}}, are used for placing a collapse box around a talk page discussion. | The {{tlx|collapse top}} template, and its paired template {{tlx|collapse bottom}}, are used for placing a collapse box around a talk page discussion. | ||
<translate> | |||
== Usage == | == Usage == | ||
</translate> | |||
Place {{tlx|collapse top}} and {{tlx|collapse bottom}} around the text to be collapsed. For example: | Place {{tlx|collapse top}} and {{tlx|collapse bottom}} around the text to be collapsed. For example: | ||
Line 37: | Line 39: | ||
{{tlx|collapse bottom}} should always be placed on its own line. | {{tlx|collapse bottom}} should always be placed on its own line. | ||
<translate> | |||
== Parameters == | == Parameters == | ||
</translate> | |||
This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. <code style="color: #006400;">1em</code> not <code style="color: #8B0000;">1 em</code>. | This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. <code style="color: #006400;">1em</code> not <code style="color: #8B0000;">1 em</code>. | ||
Line 55: | Line 59: | ||
;{{para|indent}}: Indents the box from the left of the page. Defaults to no indentation. Each <code>:</code> in talk page markup is approximately equivalent to <code>1.6em</code> of indent (e.g., to match <code>::::</code> indentation level, use {{para|indent|6.4em}}. You can also use a percentage value. Pixel-based values should be avoided (see {{para|width}}, above, for why). | ;{{para|indent}}: Indents the box from the left of the page. Defaults to no indentation. Each <code>:</code> in talk page markup is approximately equivalent to <code>1.6em</code> of indent (e.g., to match <code>::::</code> indentation level, use {{para|indent|6.4em}}. You can also use a percentage value. Pixel-based values should be avoided (see {{para|width}}, above, for why). | ||
<translate> | |||
== Examples == | == Examples == | ||
</translate> | |||
* Adding a box title (if omitted, default is 'Extended content') – <code><nowiki>{{collapse top|This is the title text}}</nowiki></code> | * Adding a box title (if omitted, default is 'Extended content') – <code><nowiki>{{collapse top|This is the title text}}</nowiki></code> | ||
{{collapse top|This is the title text}} | {{collapse top|This is the title text}} | ||
Line 97: | Line 103: | ||
{{Collapse top/doc}} | {{Collapse top/doc}} | ||
<translate> | |||
== See also == | == See also == | ||
</translate> | |||
* {{tl|collapse bottom}} | * {{tl|collapse bottom}} | ||
* {{tl|hidden archive top}} and {{tl|hidden archive bottom}} | * {{tl|hidden archive top}} and {{tl|hidden archive bottom}} |
Revision as of 13:02, 2 May 2020
<languages />
Extended content |
---|
<translate> The following content has been placed in a collapsed box for improved usability.</translate>
|
Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]]