Template:Collapse top/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>TheFrz
mNo edit summary
>GKPlight
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
{{Template shortcut|Cot}}
{{Template shortcut|Cot}}


The {{tlx|collapse top}} template (or {{tlx|cot}}), and its paired template {{tlx|collapse bottom}} (or {{tlx|cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{tlx|collapse}} can be used instead.
The {{tlx|collapse top}} template (or {{tlx|cot}}), and its paired template {{tlx|collapse bottom}} (or {{tlx|cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{tlx|collapse}} can be used instead.
==Parameters==
This template takes the following parameters, all of which are optional
{| class="wikitable"
! Parameter
! Description
|-
| expand
|
|-
| border
|
|-
| margin
|
|-
| width
|
|-
| bg-header
|
|-
| left
|
|-
| padding-header
|
|-
| 1 or header
|
|-
| padding-content
|
|-
| bg-content
|
|}


==Usage==
==Usage==
Place {{tlx|collapse top}} (or {{tlx|cot}}), and {{tlx|collapse bottom}} (or {{tlx|cob}}), around the text to be collapsed. For example:
Place {{tlx|collapse top}} (or {{tlx|cot}}), and {{tlx|collapse bottom}} (or {{tlx|cob}}), around the text to be collapsed. For example:


<pre>{{collapse top|This is the title text}}
<pre>{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}}
Sample contents text
Sample contents text
{{collapse bottom}}</pre>
{{collapse bottom}}</pre>
produces:
produces:
{{collapse top|This is the title text}}
{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}}
Sample contents text
Sample contents text
{{collapse bottom}}
{{collapse bottom}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
{{Documentation categories|
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories and interwikis go here. -->
[[Category:Formatting templates]]
[[Category:Formatting templates]]
}}</includeonly>
}}

Latest revision as of 22:56, 6 February 2021

This subpage provides documentation for Template:Collapse top.

Shortcut

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}}
Sample contents text
{{collapse bottom}}

produces:

This is the title text [Expand]

Sample contents text