Modèle:Lvl : Différence entre versions

De EncyclopAtys

(Annulation des modifications 55394 de Dorothée (discussion))
Ligne 1 : Ligne 1 :
 
<includeonly> <!-- {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} , {{{Special}}}            (debug)                      -->{{#switch:{{{Special|}}}<!--                  In Silan
 
<includeonly> <!-- {{#expr: floor({{#expr: {{{lvl}}} div 50}})}} , {{{Special}}}            (debug)                      -->{{#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 }} )}} &nbsp;x&nbsp;</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 }} )}} &nbsp;x&nbsp;</span><span style="color: gold;"></span>'''</div><!--  
 
-->| 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 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><!--
+
-->| 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}})}}<!--  

Version du 28 juin 2020 à 16:04


Important.png
Under Construction Panel.png !!! En travaux !!! Under Construction Panel.png
Il reste actuellement encore 95 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 peut prendre les valeurs Silan, Silan named, Silan boss, Named, Boss, Region ou Region Silan (attention à la casse).

This model use two parameters:

  • lvl : the level, which determines the background color and the number of stars
  • Special : optional, which determines the variants. It can have the values Silan, Silan named, Silan boss, Named, Boss, Region or Region Silan (case sensitive).

Este modelo utiliza dos parámetros:

  • lvl : el nivel, que determina el color de fondo y el número de estrellas
  • Especial : opcional, que determina las variantes. Puede tomar los valores Silan, Silan named, Silan boss, Named, Boss, Region o Region Silan (distingue entre mayúsculas y minúsculas).

Dieses Modell verwendet zwei Parameter:

  • lvl : die Ebene, die die Hintergrundfarbe und die Anzahl der Sterne bestimmt
  • Special : Optional, welches die Varianten bestimmt. Es kann die Werte Silan, Silan named, Silan boss, Named, Boss, Region oder Region Silan (Achtung groß-und Kleinschreibung) annehmen.

Этот шаблон использует два параметра:

  • lvl: уровень, который определяет цвет фона и количество звезд
  • Special: необязательный, который определяет варианты. Он может принимать значения Silan, Silan named, Silan boss, Silan boss, Named, Boss, Region или Region Silan (обратите внимание на регистр).

Usage ⋅ Verwendung ⋅ Utilizar ⋅ Ипользование

{{lvl | lvl =  level | Special= special }} 

Exemples ⋅ Beispiele ⋅ Examples ⋅ Ejemplos ⋅ Примеры:

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