Template:Collapse top/doc: Difference between revisions
Remove warning about contents not appearing in mobile view, that is no longer true since an edit on 3 July 2015. Update transclusion count.
w:en>GoingBatty m (typo(s) fixed: For example → For example, (13) using AWB (11376)) |
w:en>Zyxw (Remove warning about contents not appearing in mobile view, that is no longer true since an edit on 3 July 2015. Update transclusion count.) |
||
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]]) --> | |||
{{High-use| | {{High-use|23,000+}} | ||
{{used in system|in [[MediaWiki:Protect-text]]}} | {{used in system|in [[MediaWiki:Protect-text]]}} | ||
{{Template shortcut|Cot|Cob}} | {{Template shortcut|Cot|Cob}} | ||
Line 44: | Line 43: | ||
== Examples == | == Examples == | ||
*Adding a box title (if omitted, default is 'Extended content') - <code><nowiki>{{cot|This is the title text}}</nowiki></code> | * Adding a box title (if omitted, default is 'Extended content') - <code><nowiki>{{cot|This is the title text}}</nowiki></code> | ||
{{cot|This is the title text}} | {{cot|This is the title text}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Adding a standard warning line - <code><nowiki>{{cot|This is the title text|warning=true}}</nowiki></code> | * Adding a standard warning line - <code><nowiki>{{cot|This is the title text|warning=true}}</nowiki></code> | ||
{{cot|This is the title text|warning=true}} | {{cot|This is the title text|warning=true}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Adding a custom warning line - <code><nowiki>{{cot|This is the title text|This is a custom warning line}}</nowiki></code> | * Adding a custom warning line - <code><nowiki>{{cot|This is the title text|This is a custom warning line}}</nowiki></code> | ||
{{cot|This is the title text|This is a custom warning line}} | {{cot|This is the title text|This is a custom warning line}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Aligning box title along left margin - <code><nowiki>{{collapse top|left=true}} or {{cot|left=true}}</nowiki></code> | * Aligning box title along left margin - <code><nowiki>{{collapse top|left=true}} or {{cot|left=true}}</nowiki></code> | ||
{{cot|left=true}} | {{cot|left=true}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Changing background color - <code><nowiki>{{collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}}</nowiki></code> | * Changing background color - <code><nowiki>{{collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}}</nowiki></code> | ||
{{cot|bg=#F0F2F5}} | {{cot|bg=#F0F2F5}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Adding extra padding - <code><nowiki>{{cot|padding=40px}}</nowiki></code> | * Adding extra padding - <code><nowiki>{{cot|padding=40px}}</nowiki></code> | ||
{{cot|padding=40px}} | {{cot|padding=40px}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
*Archiving a section: the markup below: | * Archiving a section: the markup below: | ||
<pre>{{cot}} | <pre>{{cot}} | ||
==Section header== | ==Section header== | ||
Line 95: | Line 94: | ||
* {{#ifeq: {{BASEPAGENAME}} | Collapse top || {{tl|collapse top}} }} | * {{#ifeq: {{BASEPAGENAME}} | Collapse top || {{tl|collapse top}} }} | ||
* {{#ifeq: {{BASEPAGENAME}} | Collapse bottom || {{tl|collapse bottom}} }} | * {{#ifeq: {{BASEPAGENAME}} | Collapse bottom || {{tl|collapse bottom}} }} | ||
* {{tl|discussion top}} | * {{tl|discussion top}} and {{tl|discussion bottom}} | ||
* {{tl|hidden archive top}} | * {{tl|hidden archive top}} and {{tl|hidden archive bottom}} | ||
* {{tl|hidden begin}} and {{tl|hidden end}} | |||
* {{tl|hidden}} | |||
* {{tl|collapsible list}} | |||
{{Warchivenav|state=uncollapsed}} | {{Warchivenav|state=uncollapsed}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Archival templates | [[Category:Archival templates]] | ||
[[Category:Collapse templates | [[Category:Collapse templates]] | ||
}}</includeonly> | }}</includeonly> |