Template:Toggle
From Dragon Mania Legends (DML) Wiki
Template documentation |
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this template's documentation. (About template documentation) |
This page is a candidate for deletion. The reason provided:
None
Check if anything links here and the page history before deleting. Last edited 22 July 2023 at 14:55.
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 |