Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

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

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.

Template parameters

ParameterDescriptionTypeStatus
show1

no description

Stringoptional
hide2

no description

Stringoptional
class3

no description

Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.