Modèle:Équipements/Liste : Différence entre versions

[version vérifiée][version vérifiée]
Ligne 2 : Ligne 2 :
 
<div style="display: grid; grid-template-columns: max-content; justify-items: center; column-gap: 4px; row-gap: 2px; margin-right: 3px; align-self: start;">
 
<div style="display: grid; grid-template-columns: max-content; justify-items: center; column-gap: 4px; row-gap: 2px; margin-right: 3px; align-self: start;">
 
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">Amélioration</div>
 
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">Amélioration</div>
{{#forargs: Bonus
+
<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{{Bonus1|[[Valeur d'attaque|VA]]}}}</div>{{#if:{{{Bonus2|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{{Bonus2}}}</div>{{#if:{{{Bonus3|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{{Bonus3}}}</div>{{#if:{{{Bonus4|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{{Bonus4}}}</div>{{#if:{{{Bonus5|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{{Bonus5}}}</div>{{#vardefine:nombreBonus|5}}|{{#vardefine:nombreBonus|4}}}}|{{#vardefine:nombreBonus|3}}}}|{{#vardefine:nombreBonus|2}}}}|{{#vardefine:nombreBonus|1}}}}
| key
+
<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 35px; line-height: 35px;">[[Yangs]] [[Image:Yang1.png|link=Yangs]]</div>{{#if:{{{Objet1|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 35px; line-height: 35px;">{{{Objet1}}}</div>{{#if:{{{Objet2|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 35px; line-height: 35px;">{{{Objet2}}}</div>{{#if:{{{Objet3|}}}|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 35px; line-height: 35px;">{{{Objet3}}}</div>{{#vardefine:nombreObjet|3}}|{{#vardefine:nombreObjet|2}}}}|{{#vardefine:nombreObjet|1}}}}|{{#vardefine:nombreObjet|0}}}}
| value
 
|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 32px; line-height: 32px;">{{#var:value}}</div>
 
}}
 
{{#forargs: Objet
 
| keyObj
 
| value
 
|<div id="soulignement" style="border: 1px solid black; width: 100%; font-weight: bold; height: 35px; line-height: 35px;">{{#var:value}}</div>
 
}}
 
 
</div>
 
</div>
 
<div style="width: 100%; overflow: auto;">
 
<div style="width: 100%; overflow: auto;">
 
<div style="margin: 0 1px 5px 1px;">
 
<div style="margin: 0 1px 5px 1px;">
 
<div style="width: 100%; display: grid; grid-template-columns: repeat({{#expr:{{{Up|9}}}+1}}, minmax({{#ifexpr:{{{Up|9}}}> 9 |60|75}}px, 1fr)); justify-items: center; column-gap: 4px; row-gap: 2px;">
 
<div style="width: 100%; display: grid; grid-template-columns: repeat({{#expr:{{{Up|9}}}+1}}, minmax({{#ifexpr:{{{Up|9}}}> 9 |60|75}}px, 1fr)); justify-items: center; column-gap: 4px; row-gap: 2px;">
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+0</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+1</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+2</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+3</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+4</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+5</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+6</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+7</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+8</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+9</div>{{#ifexpr:{{{Up|9}}}=15
 +
|<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+10</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+11</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+12</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+13</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+14</div>
 +
<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+15</div>}}
 
{{#loop: tortue
 
{{#loop: tortue
 
  |0
 
  |0
  |{{#expr:{{{Up|9}}}+1}}
+
  |{{#expr:{{#var:nombreBonus}}-1}}
|<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+{{#var:tortue}}</div>
 
}}
 
{{#forargs: Bonus
 
| key
 
| value
 
 
  |
 
  |
{{#loop: tortue
+
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:1+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:2+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:3+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:4+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:5+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:6+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:7+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:8+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:9+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
 +
<div style="margin: auto;">{{{{{#expr:10+({{{Up|9}}}+1)*{{#var:tortue}}}}|}}}</div>
 +
</div>
 +
}} {{#vardefine:totalBonus|{{#expr:{{#var:nombreBonus}}*({{{Up|9}}}+1)}}}}
 +
{{#loop: moutarde
 
  |0
 
  |0
  |{{#expr:{{{Up|9}}}+1}}
+
  |{{#expr:{{#var:nombreObjet}}-1}}
 
  |
 
  |
<div style="display: flex; border: 1px solid black; width: 100%; height: 32px;">
+
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
<div style="margin: auto;">{{{{{#expr:{{#var:tortue}}+1+({{#var:key}}-1)*({{{Up|9}}}+1)}}|}}}</div>
+
<div style="margin: auto;"></div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+1+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+2+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+3+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+4+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+5+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+6+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+7+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+8+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 +
</div>
 +
<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 +
<div style="margin: auto;">{{{{{#expr:{{#var:totalBonus}}+9+{{{Up|9}}}*{{#var:moutarde}}}}|}}}</div>
 
</div>
 
</div>
}}
 
}}
 
{{#loop: tourbillon
 
|0
 
|{{#var:keyObj}}
 
{{#loop: tortue
 
|0
 
|{{#expr:{{{Up|9}}}}}
 
|<div style="display: flex; border: 1px solid black; width: 100%; height: 35px;">
 
<div style="margin: auto;">{{{{{#expr:2*({{{Up|9}}}+1)}}+1+{{#var:tourbillon}}|}}}</div>
 
</div>
 
}}
 
 
}}
 
}}

Version du 11 décembre 2021 à 18:38

Amélioration
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9