Template:Collapse top/doc: Difference between revisions
Template page
More actions
m linkfix |
m syntaxhighlight lang="wikitext" |
||
| Line 93: | Line 93: | ||
== Examples == | == Examples == | ||
=== Simple === | === Simple === | ||
< | <syntaxhighlight lang="wikitext">{{Collapse top|This is the title text}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{Collapse bottom}}</ | {{Collapse bottom}}</syntaxhighlight> | ||
{{Collapse top|This is the title text}} | {{Collapse top|This is the title text}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{Collapse bottom}} | {{Collapse bottom}} | ||
=== Changing background color === | === Changing background color === | ||
< | <syntaxhighlight lang="wikitext">{{Collapse top|bg=#F0F2F5}} or {{cot|bg=#F0F2F5}}</syntaxhighlight> | ||
{{cot|bg=#F0F2F5}} | {{cot|bg=#F0F2F5}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
=== Changing border color === | === Changing border color === | ||
< | <syntaxhighlight lang="wikitext">{{cot|b-color=#ff0000}}</syntaxhighlight> | ||
{{cot|b-color=#ff0000}} | {{cot|b-color=#ff0000}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
=== Adding extra padding === | === Adding extra padding === | ||
< | <syntaxhighlight lang="wikitext">{{cot|padding=40px}}</syntaxhighlight> | ||
{{cot|padding=40px}} | {{cot|padding=40px}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
=== Adding a warning line === | === Adding a warning line === | ||
< | <syntaxhighlight lang="wikitext">{{cot|default warning|warning=1}}</syntaxhighlight> | ||
{{cot|default warning|warning=1}} | {{cot|default warning|warning=1}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
< | <syntaxhighlight lang="wikitext">{{cot|custom warning|this is a custom warning line}}</syntaxhighlight> | ||
{{cot|custom warning|this is a custom warning line}} | {{cot|custom warning|this is a custom warning line}} | ||
{{lorem ipsum}} | {{lorem ipsum}} | ||
{{cob}} | {{cob}} | ||
=== Archiving a section === | === Archiving a section === | ||
< | <syntaxhighlight lang="wikitext">{{cot}} | ||
==section header== | ==section header== | ||
text | text | ||
{{cob}}</ | {{cob}}</syntaxhighlight> | ||
rewritten as | rewritten as | ||
< | <syntaxhighlight lang="wikitext">{{cot|section header}} | ||
text | text | ||
{{cob}}</ | {{cob}}</syntaxhighlight> | ||
{{cot|section header}} | {{cot|section header}} | ||
text | text | ||