Template:Collapse top/doc: Difference between revisions

Jump to navigation Jump to search
→‎Usage: tweaks
w:en>SMcCandlish
(clarification & cleanup)
w:en>SMcCandlish
(→‎Usage: tweaks)
Line 8: Line 8:


== Usage ==
== Usage ==
Place {{#ifeq: {{BASEPAGENAME}} | Collapse top | this template | {{tl|collapse top}} }} and {{#ifeq: {{BASEPAGENAME}} | Collapse bottom | this template | {{tl|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:


<pre>{{Collapse top|This is the title text}}
<pre>{{Collapse top|title=This is the title text}}
{{lorem ipsum}}
{{lorem ipsum}}
{{Collapse bottom}}</pre>
{{Collapse bottom}}</pre>
produces
produces
{{Collapse top|This is the title text}}
{{Collapse top|title=This is the title text}}
{{lorem ipsum}}
{{lorem ipsum}}
{{Collapse bottom}}
{{Collapse bottom}}
Anonymous user

Navigation menu