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

 Actions

Template

Leaderboard: Difference between revisions

From Dragon Mania Legends (DML) Wiki

imported>Cryscryb2
m (Set 100% width for mobile and max-width 700 for desktop, add scrollable wrapper for very small mobile.)
m (making the last 2 rows optional (parameters 11-14))
Line 1: Line 1:
<div class="scroll-all">
<includeonly><div class="scroll-all">
{|class="leaderboard-table" style="border-spacing: 0px 8px; border-collapse: separate; vertical-align:middle; width:100%; max-width:700px; height: 371px; color: white; font: 20px Grobold, sans-serif; text-shadow: none; background: #dfdfdf; text-shadow: 1px 1px #222222; line-height:1.6em"
{|class="leaderboard-table" style="border-spacing: 0px 8px; border-collapse: separate; vertical-align:middle; width:100%; max-width:700px; color: white; font: 20px Grobold, sans-serif; text-shadow: none; background: #dfdfdf; text-shadow: 1px 1px #222222; line-height:2.2em"
|- border-bottom: 8px solid #dfdfdf;
|- border-bottom: 8px solid #dfdfdf;
!style="width: 25%; background: #595959; text-align:center;"|{{{1|1-5}}}
!style="width: 25%; background: #595959; text-align:center;"|{{{1|1-5}}}
Line 16: Line 16:
!style="width: 25%; background: #595959; text-align:center;"|{{{9|101-250}}}
!style="width: 25%; background: #595959; text-align:center;"|{{{9|101-250}}}
|style="width: 75%; background: #a8a8a8; text-indent:15px;"|{{{10|{{i|Gems}} 10 &nbsp;&nbsp;{{i|Food}} 37,500 &nbsp;&nbsp;&nbsp;{{i|Gold}} 300,000}}}
|style="width: 75%; background: #a8a8a8; text-indent:15px;"|{{{10|{{i|Gems}} 10 &nbsp;&nbsp;{{i|Food}} 37,500 &nbsp;&nbsp;&nbsp;{{i|Gold}} 300,000}}}
|-
{{!}}-
!style="width: 25%; background: #595959; text-align:center;"|{{{11|251-500}}}
{{#if:{{{11|}}}<!--- check if we have more entries
|style="width: 75%; background: #a8a8a8; text-indent:15px;"|{{{12|{{i|Gems}} 3 &nbsp;&nbsp;&nbsp;{{i|Food}} 15,000}}}
-->|!style="width: 25%; background: #595959; text-align:center;"{{!}}{{{11|251-500}}}
|-
{{!}}style="width: 75%; background: #a8a8a8; text-indent:15px;"{{!}}{{{12|{{i|Gems}} 3 &nbsp;&nbsp;&nbsp;{{i|Food}} 15,000}}}
!style="width: 25%; background: #595959; text-align:center;"|{{{13|501-2000}}}
{{#if:{{{13|}}}<!--- check if we have more entries
|style="width: 75%; background: #a8a8a8; text-indent:15px;"|{{{14|{{i|Gems}} 1}}}
-->|{{!}}-
|}</div><!--- use {{leaderboard|[Ranks1]|[rewards1]|...}}; unnamed parameters 1-14 !!
!style="width: 25%; background: #595959; text-align:center;"{{!}}{{{13|501-2000}}}
example:
{{!}}style="width: 75%; background: #a8a8a8; text-indent:15px;"{{!}}{{{14|{{i|Gems}} 1}}}
{{leaderboard|1-5|{{i|Dragon Egg|i}} [[Butterfly Dragon]]|6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000|251-500|{{i|Gems}} 3 {{i|Food}} 15,000|501-2000|{{i|Gems}} 1}}
}} }}
-------
|}</div></includeonly><noinclude>
{{leaderboard|1-5||6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000|251-500|{{i|Gems}} 3 {{i|Food}} 15,000|501-2000|{{i|Gems}} 1|egg=Butterfly}}
use <code><nowiki>{{leaderboard|[Ranks1]|[rewards1]|...}}</nowiki></code> with the unnamed parameters 1-14 !!
---><noinclude>[[Category:Infobox templates]]</noinclude>
==Examples==
<nowiki>{{leaderboard
|1-5|{{i|Dragon Egg|i}} [[Butterfly Dragon]]
|6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
|251-500|{{i|Gems}} 3 {{i|Food}} 15,000
|501-2000|{{i|Gems}} 1
}}</nowiki>
{{leaderboard
|1-5|{{i|Dragon Egg|i}} [[Butterfly Dragon]]
|6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
|251-500|{{i|Gems}} 3 {{i|Food}} 15,000
|501-2000|{{i|Gems}} 1
}}
 
 
<nowiki>{{leaderboard
|1-5|
|6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
|251-500|{{i|Gems}} 3 {{i|Food}} 15,000
|501-2000|{{i|Gems}} 1
|egg=Butterfly
}}</nowiki>
{{leaderboard
|1-5|
|6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
|11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
|21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
|101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
|251-500|{{i|Gems}} 3 {{i|Food}} 15,000
|501-2000|{{i|Gems}} 1
|egg=Butterfly}}
 
 
<nowiki>{{Leaderboard
| 1 | [[File:Premium Sigil Chest.png|30px]] x5
| 2-3|[[File:Premium Sigil Chest.png|30px]] x3
| 4-10|[[File:Basic Sigil Chest.png|30px]] x3
|11-25|[[File:Basic Sigil Chest.png|30px]] x2
|26-50|[[File:Basic Sigil Chest.png|30px]]
}}</nowiki>
{{Leaderboard
| 1 | [[File:Premium Sigil Chest.png|30px]] x5
| 2-3|[[File:Premium Sigil Chest.png|30px]] x3
| 4-10|[[File:Basic Sigil Chest.png|30px]] x3
|11-25|[[File:Basic Sigil Chest.png|30px]] x2
|26-50|[[File:Basic Sigil Chest.png|30px]]
}}
[[Category:Infobox templates]]</noinclude>

Revision as of 03:43, 23 February 2021

use {{leaderboard|[Ranks1]|[rewards1]|...}} with the unnamed parameters 1-14 !!

Examples

{{leaderboard
 |1-5|{{i|Dragon Egg|i}} [[Butterfly Dragon]]
 |6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
 |11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
 |21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
 |101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
 |251-500|{{i|Gems}} 3 {{i|Food}} 15,000
 |501-2000|{{i|Gems}} 1
 }}
1-5 Dragon Egg Icon.png Butterfly Dragon
6-10 Gems Icon.png 150 Food Icon.png 750,000 Gold Icon.png 2.25 M
11-20 Gems Icon.png 75 Food Icon.png 375,000 Gold Icon.png 1.12 M
21-100 Gems Icon.png 20 Food Icon.png 150,000 Gold Icon.png 525,000
101-250 Gems Icon.png 10 Food Icon.png 37,500 Gold Icon.png 300,000
251-500 Gems Icon.png 3 Food Icon.png 15,000
501-2000 Gems Icon.png 1


{{leaderboard
 |1-5|
 |6-10|{{i|Gems}} 150 {{i|Food}} 750,000 {{i|Gold}} 2.25 M
 |11-20|{{i|Gems}} 75 {{i|Food}} 375,000 {{i|Gold}} 1.12 M
 |21-100|{{i|Gems}} 20 {{i|Food}} 150,000 {{i|Gold}} 525,000
 |101-250|{{i|Gems}} 10 {{i|Food}} 37,500 {{i|Gold}} 300,000
 |251-500|{{i|Gems}} 3 {{i|Food}} 15,000
 |501-2000|{{i|Gems}} 1
 |egg=Butterfly
 }}
1-5 Dragon Egg Icon.png Butterfly Dragon
6-10 Gems Icon.png 150 Food Icon.png 750,000 Gold Icon.png 2.25 M
11-20 Gems Icon.png 75 Food Icon.png 375,000 Gold Icon.png 1.12 M
21-100 Gems Icon.png 20 Food Icon.png 150,000 Gold Icon.png 525,000
101-250 Gems Icon.png 10 Food Icon.png 37,500 Gold Icon.png 300,000
251-500 Gems Icon.png 3 Food Icon.png 15,000
501-2000 Gems Icon.png 1


{{Leaderboard
 | 1 | [[File:Premium Sigil Chest.png|30px]] x5
 | 2-3|[[File:Premium Sigil Chest.png|30px]] x3
 | 4-10|[[File:Basic Sigil Chest.png|30px]] x3
 |11-25|[[File:Basic Sigil Chest.png|30px]] x2
 |26-50|[[File:Basic Sigil Chest.png|30px]]
 }}
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.