Modèle:Lvl : Différence entre versions

De EncyclopAtys

Ligne 25 : Ligne 25 :
 
  | 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 }} ) }}&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div> }}    <!--                Regions
 
  | 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 }} ) }}&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div> }}    <!--                Regions
 
-->| Region = {{#switch:  {{{lvl}}}  
 
-->| 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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''&nbsp;<big><big>➸</big></big>&nbsp;5&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>
+
  | 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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>&nbsp;<big>➸</big>&nbsp;<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;">5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''&nbsp;<big><big>➸</big></big>&nbsp;5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>&nbsp;<big>➸</big>&nbsp;<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;">5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''&nbsp;<big><big>➸</big></big>&nbsp;5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>&nbsp;<big>➸</big>&nbsp;<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;">5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''&nbsp;<big><big>➸</big></big>&nbsp;5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>&nbsp;<big>➸</big>&nbsp;<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;">5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''&nbsp;<big><big>➸</big></big>&nbsp;5&nbsp;x&nbsp;</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&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>&nbsp;<big>➸</big>&nbsp;<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;">5&nbsp;x&nbsp;</span><span style="color: gold;">★</span>'''</div>
 
| #default = &#9760; Region level error, it should be 50, 100, 150, 200 or 250 &#9760;}}  
 
| #default = &#9760; Region level error, it should be 50, 100, 150, 200 or 250 &#9760;}}  
 
}}</includeonly>
 
}}</includeonly>

Version du 28 juin 2020 à 07:49



Important.png
Under Construction Panel.png !!! En travaux !!! Under Construction Panel.png
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.

Documentation

Ce modèle utilise deux paramètres:

  • lvl : le niveau, qui détermine la couleur du fond et le nombre d'étoiles
  • Special : optionnel, qui détermine les variantes. Il peur prendre les valeurs Silan, 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