Template:Toggle/doc
From Dragon Mania Legends (DML) Wiki
< Template:ToggleDocumentation subpage |
---|
View this documentation's related template: Template:Toggle |
Example(s)
{{toggle|content1|content2}}
gives:
content1
Or inspecting page source shows:
<div class="_toggle">content1</div> <div class="_toggle" style="display:none;">content2</div>
{{toggle|content1|content2|myClass}}
gives (inspect source to see hidden parts of result):
content1
Or inspecting page source shows:
<div class="_toggle">content1</div> <div class="_toggle myClass" style="display:none;">content2</div>
See Also
{{DragonSwitcher}}
, the primary template that uses this one.
Wraps an HTML div around some content and applies a _toggle class to it. Primarily used by the {DragonSwitcher} template to switch between dragon images.
Parameter | Description | Type | Status | |
---|---|---|---|---|
show | 1 | no description | String | optional |
hide | 2 | no description | String | optional |
class | 3 | no description | String | optional |