Template:CollapseBlock: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div class="toccolours mw-collapsible mw-collapsed">
<includeonly><div class="toccolours mw-collapsible mw-collapsed">
'''{{{1|Collapsible content}}}'''
'''{{{title|{{{1|Collapsible content}}}}}}'''
<div class="mw-collapsible-content" style="border-top:1px solid gray;padding:.5em 0;">{{{2|}}}</div>
<div class="mw-collapsible-content" style="border-top:1px solid gray;padding:.5em 0;">{{{content|{{{2|}}}}}}</div>
</div>
</div>
</includeonly><noinclude>
</includeonly><noinclude>
Line 12: Line 12:


{{CollapseBlock|Block title|Block content}}
{{CollapseBlock|Block title|Block content}}
Alternately, the parameters can be invoked with the names <tt>title</tt> and <tt>content</tt>.


[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 20:21, 18 June 2019

Renders a block with that can be expanded or collapsed.

Usage

{{CollapseBlock|Block title|Block content}}

This results in:

Block title

Block content


Alternately, the parameters can be invoked with the names title and content.