The wiki has been experiencing some malicious web activity, please bear with us.
Remember to make use of the Manual of Style and Code of Conduct during your stay.

 Actions

Template

Difference between revisions of "EventBox/Profile"

From Dragon Mania Legends Wiki

< Template:EventBox
m
m ({{#if:{{exists|File:}}| instead of FileExisting used - might solve the redlinks)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
-->{{#if:{{{special|}}}||
 
-->{{#if:{{{special|}}}||
 
<span class="_toggle event1">{{color|20B2AA|'''Banner'''}}</span><span class="_toggle inact1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact1 _toggler_show-event1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4 _toggler_show-inact5" style="display:none">{{color|536267|'''Banner'''}}</span><!--
 
<span class="_toggle event1">{{color|20B2AA|'''Banner'''}}</span><span class="_toggle inact1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact1 _toggler_show-event1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4 _toggler_show-inact5" style="display:none">{{color|536267|'''Banner'''}}</span><!--
-->{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Chain Breeding|Breeding Blitz|Collection|Faction|Relay|Boss Challenge=&nbsp;-&nbsp;<span class="_toggle event2" style="display:none">{{color|B900CC|'''{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar=Calendar|Chain Breeding|Breeding Blitz=Chain|Collection=Collection|Faction=Faction|Relay|Boss Challenge=Map}}'''}}</span><span class="_toggle inact2 _toggler_hide-event1 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact2 _toggler_show-event2 _toggler_show-inact1 _toggler_show-inact3 _toggler_show-inact4 _toggler_show-inact5">{{color|536267|'''{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar=Calendar|Chain Breeding|Breeding Blitz=Chain|Collection=Collection|Faction=Faction|Relay|Boss Challenge=Map}}'''}}</span>{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Chain Breeding|Breeding Blitz|Collection|Relay|Boss Challenge=||{{#if:{{{ad|}}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;|<br>}}}}}}<!--
+
-->{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Chain Breeding|Breeding Blitz|Collection|Faction|Relay|Boss Challenge=&nbsp;-&nbsp;<span class="_toggle event2" style="display:none">{{color|B900CC|'''{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar=Calendar|Chain Breeding|Breeding Blitz=Chain|Collection=Collection|Faction=Faction|Relay|Boss Challenge=Map}}'''}}</span><span class="_toggle inact2 _toggler_hide-event1 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact2 _toggler_show-event2 _toggler_show-inact1 _toggler_show-inact3 _toggler_show-inact4 _toggler_show-inact5">{{color|536267|'''{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar=Calendar|Chain Breeding|Breeding Blitz=Chain|Collection=Collection|Faction=Faction|Relay|Boss Challenge=Map}}'''}}</span>{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Chain Breeding|Breeding Blitz|Collection|Relay|Boss Challenge=||{{#if:{{{ad|}}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;|<br>}}}}}}<!--
 
-->{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Castle|Chain Breeding|Breeding Blitz|Collection|Solo|Relay|Boss Challenge=|#default={{#switch:{{#sub:{{PAGENAME}}|0|-11}}|The Great Dragon Race|Emerald Wars|Sugar Rush|Weekend Dragon Race=|#default={{#ifeq:{{{type|}}}|Faction||&nbsp;-&nbsp;}}<span class="_toggle event3" style="display:none">{{color|B900CC|'''Milestone'''}}</span><span class="_toggle inact3 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact3 _toggler_show-event3 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact4 _toggler_show-inact5">{{color|536267|'''Milestone'''}}</span>}}<!--
 
-->{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Calendar|Castle|Chain Breeding|Breeding Blitz|Collection|Solo|Relay|Boss Challenge=|#default={{#switch:{{#sub:{{PAGENAME}}|0|-11}}|The Great Dragon Race|Emerald Wars|Sugar Rush|Weekend Dragon Race=|#default={{#ifeq:{{{type|}}}|Faction||&nbsp;-&nbsp;}}<span class="_toggle event3" style="display:none">{{color|B900CC|'''Milestone'''}}</span><span class="_toggle inact3 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event4 _toggler_hide-event5 _toggler_hide-inact3 _toggler_show-event3 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact4 _toggler_show-inact5">{{color|536267|'''Milestone'''}}</span>}}<!--
-->{{#switch:{{#sub:{{PAGENAME}}|0|-11}}|Clan Siege|Emerald Wars=|#default={{#if:{{#ifeq:{{{type|}}}|Arcade|1|}}{{#ifeq:{{{type|}}}|Gem Spending|1|}}{{{ad|}}}|<br>|{{#if:{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}|<br>|&nbsp;-&nbsp;}}}}<span class="_toggle event4" style="display:none">{{color|A84609|'''Leaderboard'''}}</span><span class="_toggle inact4 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event5 _toggler_hide-inact4 _toggler_show-event4 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact5">{{color|536267|'''Leaderboard'''}}</span>}}}}<!--
+
-->{{#switch:{{#sub:{{PAGENAME}}|0|-11}}|Clan Siege|Emerald Wars=|#default={{#if:{{#ifeq:{{{type|}}}|Arcade|1|}}{{#ifeq:{{{type|}}}|Gem Spending|1|}}{{{ad|}}}|<br>|{{#if:{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|<br>|&nbsp;-&nbsp;}}}}<span class="_toggle event4" style="display:none">{{color|A84609|'''Leaderboard'''}}</span><span class="_toggle inact4 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event5 _toggler_hide-inact4 _toggler_show-event4 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact5">{{color|536267|'''Leaderboard'''}}</span>}}}}<!--
 
-->{{#if:{{{ad|}}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span><!--
 
-->{{#if:{{{ad|}}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span><!--
-->|{{#if:{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span><!--
+
-->|{{#if:{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span><!--
-->|{{#if:{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span>}}}}}}
+
-->|{{#if:{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}{{exists|File:{{{prize|}}} Dragon Event.jpg}}|&nbsp;-&nbsp;<span class="_toggle event5" style="display:none">{{color|5FC536|'''Promotion'''}}</span><span class="_toggle inact5 _toggler_hide-event1 _toggler_hide-event2 _toggler_hide-event3 _toggler_hide-event4 _toggler_hide-inact5 _toggler_show-event5 _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3 _toggler_show-inact4">{{color|536267|'''Promotion'''}}</span>}}}}}}
 
<hr style="margin-top:0px; margin-bottom:10px;"><div style="padding-bottom: 3pt">
 
<hr style="margin-top:0px; margin-bottom:10px;"><div style="padding-bottom: 3pt">
 
{{Toggle|{{#if:{{{banner|}}}|[[File:{{{banner}}}.jpg|260px]]<!--
 
{{Toggle|{{#if:{{{banner|}}}|[[File:{{{banner}}}.jpg|260px]]<!--
Line 51: Line 51:
 
----->|{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Feeding=1|Gold Collecting|Golden Gatherer|Gold Spending|Golden Opportunity=2|Food Gathering|Farming Fanatic|Dinnertime!=5|{{#if:{{{prize|}}}|{{#ifeq:{{{type|}}}|Hatching|4}}}}}}}}}}.jpg|260}}}}}}}}}}}}}}}}|event4}}}}<!--
 
----->|{{#switch:{{#if:{{{type|}}}|{{{type|}}}|{{#sub:{{PAGENAME}}|0|-11}}}}|Feeding=1|Gold Collecting|Golden Gatherer|Gold Spending|Golden Opportunity=2|Food Gathering|Farming Fanatic|Dinnertime!=5|{{#if:{{{prize|}}}|{{#ifeq:{{{type|}}}|Hatching|4}}}}}}}}}}.jpg|260}}}}}}}}}}}}}}}}|event4}}}}<!--
 
-->{{Toggle||{{#if:{{{ad|}}}|[[File:{{{ad|}}}.jpg|260px]]<!-- display one of the existing Ads/Promos
 
-->{{Toggle||{{#if:{{{ad|}}}|[[File:{{{ad|}}}.jpg|260px]]<!-- display one of the existing Ads/Promos
--->|{{#if:{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}|{{FileIfExisting|{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg|260}}<!--
+
--->|{{#if:{{exists|File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg}}|[[File:{{#replace:{{PAGENAME}}|/|.}} Promotion.jpg|260px]]<!--
 
no special ad file for this event, use one of the dragon promo images
 
no special ad file for this event, use one of the dragon promo images
---->|{{FileIfExisting|{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg|260}}<!--
+
---->|{{#if:{{exists|File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg}}|[[File:{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg|260px]]<!--
----->{{FileIfExisting|{{{prize|}}} Dragon Promotion ({{#sub:{{PAGENAME}}|0|-11}}).jpg|260}}<!--
+
----->|{{#if:{{exists|File:{{{prize|}}} Dragon Event.jpg}}|[[File:{{{prize|}}} Dragon Event.jpg|260px]] }} }} }}<!--
----->{{FileIfExisting|{{{prize|}}} Dragon Event.jpg|260}} }}<!--
 
 
--->}}|event5}}</div>
 
--->}}|event5}}</div>
 
}}}}</div><noinclude>[[Category:Infobox templates]]</noinclude>
 
}}}}</div><noinclude>[[Category:Infobox templates]]</noinclude>

Latest revision as of 11:52, 22 January 2020

Banner - Milestone - Leaderboard
Event Generic Banner.jpg
/*]]>*/