Modèle:Lvl : Différence entre versions
De EncyclopAtys
(→Exemples:) |
|||
Ligne 17 : | Ligne 17 : | ||
| 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> | | 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> | | 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> }} <!-- | + | | 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> | | 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> | ||
Ligne 23 : | Ligne 23 : | ||
| 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> | | 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> | | 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> }} | + | | 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> }} <!-- Regions |
+ | -->| Region = {{#switch: {{{lvl}}} | ||
+ | | 50 = <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;">1 x </span><span style="color: gold;">★</span>''' <big><big>➸</big></big> 5 x </span><span style="color: gold;">★</span>'''</div> | ||
+ | | 100 = <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;">1 x </span><span style="color: gold;">★</span>''' <big><big>➸</big></big> 5 x </span><span style="color: gold;">★</span>'''</div> | ||
+ | | 150 = <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;">1 x </span><span style="color: gold;">★</span>''' <big><big>➸</big></big> 5 x </span><span style="color: gold;">★</span>'''</div> | ||
+ | | 200 = <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;">1 x </span><span style="color: gold;">★</span>''' <big><big>➸</big></big> 5 x </span><span style="color: gold;">★</span>'''</div> | ||
+ | | 250 = <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;">1 x </span><span style="color: gold;">★</span>''' <big><big>➸</big></big> 5 x </span><span style="color: gold;">★</span>'''</div> | ||
+ | | #default = ☠ Region level error, it should be 50, 100, 150, 200 or 250 ☠}} | ||
}}</includeonly> | }}</includeonly> | ||
<!-- --> | <!-- --> | ||
Ligne 31 : | Ligne 38 : | ||
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 niveau, qui détermine la couleur du fond et le nombre d'étoiles | ||
− | *<code>Special</code> : optionnel, qui détermine les variantes. Il peur prendre les valeurs <code>Silan, Silan named, Slan boss, Named | + | *<code>Special</code> : optionnel, qui détermine les variantes. Il peur prendre les valeurs <code>Silan, Silan named, Slan boss, Named, Boss ou Region</code> (attention à la casse). |
==Usage== | ==Usage== | ||
<nowiki>{{lvl | lvl = level | Special= special }} </nowiki> | <nowiki>{{lvl | lvl = level | Special= special }} </nowiki> | ||
==Exemples: == | ==Exemples: == | ||
+ | ===Mobs=== | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Ligne 64 : | Ligne 72 : | ||
! Niveau !!Code !! Résultat | ! Niveau !!Code !! Résultat | ||
|- | |- | ||
− | | 50 || <nowiki>{{lvl |lvl = | + | | 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}} | ||
|} | |} | ||
− | |||
</noinclude> | </noinclude> |
Version du 28 juin 2020 à 07:38
Il reste actuellement encore 104 articles en préparation dans la catégorie «WIP»
Article en préparation. Laissez l'auteur le terminer avant de le modifier.
La dernière édition était de Dorothée le 2020-06-28.
La dernière édition était de Dorothée le 2020-06-28.
Documentation
Ce modèle utilise deux paramètres:
lvl
: le niveau, qui détermine la couleur du fond et le nombre d'étoilesSpecial
: optionnel, qui détermine les variantes. Il peur prendre les valeursSilan, Silan named, Slan boss, Named, Boss ou Region
(attention à la casse).
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
Exemple:
Niveau | Code | Résultat | |
---|---|---|---|
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 ☠ |