Modèle:Lvl : Différence entre versions
De EncyclopAtys
(→Exemples:) |
|||
(58 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | <includeonly> <!-- {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} , {{{Special}}} | + | <includeonly> <!-- {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} , {{{Special}}} (debug) -->{{#switch:{{{Special|}}}<!-- In Silan |
− | {{#switch:{{{Special|}}}<!-- In Silan | + | -->| Silan = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6eaa87;height:16px; width:48px; text-align:center;text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: {{{lvl}}} div 10 }} )}} x </span><span style="color: gold;">✹</span>'''</div><!-- |
− | -->| Silan = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6eaa87;height:16px; width:48px; text-align:center;text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: {{{lvl}}} div 10 }} )}} x </span><span style="color: gold;"> | + | -->| Silan named = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6eaa87;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div><!-- |
− | + | -->| Silan boss= <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6eaa87;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div><!-- | |
− | |||
<!-- Named | <!-- Named | ||
− | -->| Named = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} | + | -->| Named = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}}<!-- |
− | + | --> | 1 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6e6ee1;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div><!-- | |
− | + | -->| 2 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffffac;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div><!-- | |
− | + | -->| 3 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffb464;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div><!-- | |
− | + | -->| 4 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #c83232;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div><!-- | |
− | + | -->| 5 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #963296;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;"> ✹</span>'''</div> }} <!-- | |
− | <!-- Boss | + | --><!-- Boss |
− | -->| Boss = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} | + | -->| Boss = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}}<!-- |
− | + | -->| 1 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6e6ee1; height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div><!-- | |
− | + | -->| 2 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffffac; height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div><!-- | |
− | + | -->| 3 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffb464; height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div><!-- | |
− | + | -->| 4 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #c83232; height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div><!-- | |
− | + | -->| 5 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #963296;height:16px; width:48px; text-align:center; text-shadow: 1px 1px white;">'''<span style="color: black;">✹ ✹</span>'''</div> }}<!-- Out of Silan, regular mobs | |
− | -->| #default = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} | + | -->| #default = {{#switch: {{#expr: floor({{#expr: {{{lvl}}} div 50}})}}<!-- |
− | + | -->| 0 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6e6ee1; height:16px; width:48px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: ( {{{lvl}}} mod 50 ) div 10 }} ) }} x </span><span style="color: gold;">✹</span>'''</div><!-- | |
− | + | -->| 1 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffffac; height:16px; width:48px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: ( {{{lvl}}} mod 50 ) div 10 }} ) }} x </span><span style="color: gold;">✹</span>'''</div><!-- | |
− | + | -->| 2 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffb464; height:16px; width:48px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: ( {{{lvl}}} mod 50 ) div 10 }} ) }} x </span><span style="color: gold;">✹</span>'''</div><!-- | |
− | + | -->| 3 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #c83232; height:16px; width:48px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: ( {{{lvl}}} mod 50 ) div 10 }} ) }} x </span><span style="color: gold;">✹</span>'''</div><!-- | |
− | + | --> | 4 = <div style="border:0px;padding: 1px 1px 3px 1px; background-color: #963296; height:16px; width:48px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: white;">{{#expr: ceil( {{#expr: ( {{{lvl}}} mod 50 ) div 10 }} ) }} x </span><span style="color: gold;">✹</span>'''</div>}}<!-- | |
− | }} | + | -->| Region = {{#switch: {{{lvl}}}<!-- Regions |
− | <!-- | + | -->| 50 =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6e6ee1; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★</span>'''</div></td></tr></table><!-- |
− | + | -->| 100 =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffffac; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★★</span>'''</div></td></tr></table><!-- | |
− | {{ | + | -->| 150 =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #ffb464; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★★★</span>'''</div></td></tr></table><!-- |
+ | -->| 200 =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #c83232; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★★★★</span>'''</div></td></tr></table><!-- | ||
+ | -->| 250 =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #963296; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★★★★★</span>'''</div></td></tr></table><!-- | ||
+ | -->| #default =<big>☠</big> Region level error, it should be 50, 100, 150, 200 or 250 <big>☠</big>}} <!-- Region Silan | ||
+ | -->| Region Silan =<table style="background-color:rgba(0, 0, 0, 0);"><tr><td><div style="border:0px;padding: 1px 1px 3px 1px; background-color: #6eaa87; height:16px; width:72px; text-align:center; text-shadow: 1px 1px black;">'''<span style="color: gold;">★</span>'''</div></td></tr></table>}}</includeonly><!-- | ||
+ | --><noinclude>{{Trad | ||
+ | |DE = Template:Lvl |DEs= 4 | ||
+ | |EN = Template:Lvl |ENs= 4 | ||
+ | |ES = Template:Lvl |ESs= 4 | ||
+ | |FR = Template:Lvl |FRs= 0 | ||
+ | |RU = Template:Lvl |RUs= 4 | ||
+ | |H = | ||
+ | |palette= | ||
+ | |ref= | ||
+ | |com= | ||
+ | }} | ||
==Documentation== | ==Documentation== | ||
Ce modèle utilise deux paramètres: | Ce modèle utilise deux paramètres: | ||
− | *<code>lvl</code> : le niveau, qui détermine la couleur du fond et le nombre d'étoiles | + | *<code>lvl</code> : le [[aide:niveau|niveau]], qui détermine la couleur du fond et le nombre d'étoiles ( lvl =couleur +(#✹ - 1)x10) |
− | *<code>Special</code> : optionnel, qui détermine les variantes. Il | + | *<code>Special</code> : optionnel, qui détermine les variantes. Il peut prendre les valeurs <code>Silan, Silan named, Silan boss, Named, Boss, Region ou Region Silan</code> (attention à la casse). |
+ | *Le caractère "<big>✹</big>" a éte choisi pour éviter toute confusion avec les "<big>☆</big>" que l'on trouve en jeu, et qui ont un sens différent. | ||
+ | |||
==Usage== | ==Usage== | ||
<nowiki>{{lvl | lvl = level | Special= special }} </nowiki> | <nowiki>{{lvl | lvl = level | Special= special }} </nowiki> | ||
− | ==Exemples | + | |
+ | ==Exemples == | ||
+ | ===Mobs=== | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Ligne 57 : | Ligne 75 : | ||
| <nowiki>{{lvl |lvl = 270|Special=Boss}}</nowiki> || {{lvl |lvl = 270|Special=Boss}} | | <nowiki>{{lvl |lvl = 270|Special=Boss}}</nowiki> || {{lvl |lvl = 270|Special=Boss}} | ||
|} | |} | ||
− | === | + | ===[[aide:Niveau|Niveau]]x de régions=== |
− | |||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Niveau !!Code !! Résultat | ! Niveau !!Code !! Résultat | ||
|- | |- | ||
− | | 50 || <nowiki>{{lvl | | + | | 50 || <nowiki>{{lvl |Special=Region Silan}}</nowiki> || {{lvl |Special=Region Silan}} |
+ | |- | ||
+ | | 50 || <nowiki>{{lvl |lvl = 50|Special=Region}}</nowiki> || {{lvl |lvl = 50|Special=Region}} | ||
|- | |- | ||
− | | 100 || <nowiki>{{lvl |lvl = | + | | 100 || <nowiki>{{lvl |lvl = 100|Special=Region}}</nowiki> || {{lvl |lvl = 100|Special=Region}} |
|- | |- | ||
− | | | + | | 150 || <nowiki>{{lvl |lvl = 150|Special=Region}}</nowiki> || {{lvl |lvl = 150|Special=Region}} |
+ | |- | ||
+ | | 200 || <nowiki>{{lvl |lvl = 200|Special=Region}}</nowiki> || {{lvl |lvl = 200|Special=Region}} | ||
+ | |- | ||
+ | | 250 || <nowiki>{{lvl |lvl = 250|Special=Region}}</nowiki> || {{lvl |lvl = 250|Special=Region}} | ||
+ | |- | ||
+ | | 153 || <nowiki>{{lvl |lvl = 153|Special=Region}}</nowiki> || {{lvl |lvl = 153|Special=Region}} | ||
|} | |} | ||
− | + | <br /> | |
− | + | <br /> | |
+ | ---- | ||
+ | <references/> | ||
+ | ---- | ||
+ | {{clear}}{{last version link|Modèle:Lvl}} | ||
+ | [[Category:Modèles]]</noinclude> |
Version actuelle datée du 29 mai 2022 à 18:30
Documentation
Ce modèle utilise deux paramètres:
lvl
: le niveau, qui détermine la couleur du fond et le nombre d'étoiles ( lvl =couleur +(#✹ - 1)x10)Special
: optionnel, qui détermine les variantes. Il peut prendre les valeursSilan, Silan named, Silan boss, Named, Boss, Region ou Region Silan
(attention à la casse).- Le caractère "✹" a éte choisi pour éviter toute confusion avec les "☆" que l'on trouve en jeu, et qui ont un sens différent.
Usage
{{lvl | lvl = level | Special= special }}
Exemples
Mobs
Code | Résultat |
---|---|
{{lvl |lvl = 35|Special=Silan}} | 4 x ✹
|
{{lvl |lvl = 45|Special=Silan boss}} | ✹ ✹
|
{{lvl |lvl = 45}} | 5 x ✹
|
{{lvl |lvl = 75}} | 3 x ✹
|
{{lvl |lvl = 110}} | 1 x ✹
|
{{lvl |lvl = 163}} | 2 x ✹
|
{{lvl |lvl = 224}} | 3 x ✹
|
{{lvl |lvl = 160|Special=Named}} | ✹
|
{{lvl |lvl = 270|Special=Boss}} | ✹ ✹
|
Niveaux de régions
Niveau | Code | Résultat | |
---|---|---|---|
50 | {{lvl |Special=Region Silan}} |
| |
50 | {{lvl |lvl = 50|Special=Region}} |
| |
100 | {{lvl |lvl = 100|Special=Region}} |
| |
150 | {{lvl |lvl = 150|Special=Region}} |
| |
200 | {{lvl |lvl = 200|Special=Region}} |
| |
250 | {{lvl |lvl = 250|Special=Region}} |
| |
153 | {{lvl |lvl = 153|Special=Region}} | ☠ Region level error, it should be 50, 100, 150, 200 or 250 ☠ |
Dernière version 2022-05-29•ᐒ