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

[version vérifiée][version vérifiée]
Ligne 1 : Ligne 1 :
 +
{{#switch:{{{size|1}}}
 +
|1=
 
<div style="display: flex; flex-direction: row;">
 
<div style="display: flex; flex-direction: row;">
 
<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;">
Ligne 30 : Ligne 32 :
 
</div>
 
</div>
 
</div>
 
</div>
 +
|2=
 +
<div style="display: flex; flex-direction: row;">
 +
<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>{{#if:{{{Base|}}}|<div style="background: #EADEB3; border: 1px solid black; width: 100%;"><div style="visibility: hidden;">oui</div></div>|}}{{#vardefine:terre|1}}
 +
{{#forargs: Bonus
 +
| key
 +
| value
 +
|{{#ifeq:{{#var:key}}|{{{Emplacement{{#var:terre}}|}}}|{{#vardefine:terre|{{#expr:{{#var:terre}}+1}}}}<div style="background: #EADEB3; border: 1px solid black; width: 100%;"><div style="visibility: hidden;">oui</div></div>||}}<div id="soulignement" style="{{#if:{{{Espace{{#var:key}}|}}}|height: {{#expr:20*{{{Espace{{#var:key}}}}}}}px; |}}border: 1px solid black; width: 100%; font-weight: bold;">{{#var:value}}</div>
 +
}}
 +
</div>
 +
<div style="width: 100%; overflow: auto;">
 +
<div style="margin: 0 1px 5px 1px;">
 +
<div style="width: 100%; display: grid; grid-template-columns: repeat({{#expr:{{{Up|9}}}+1}}, minmax({{#if:{{{Serpent|}}}|75|60}}px, 1fr)); justify-items: center; column-gap: 4px; row-gap: 2px;">
 +
{{#loop: tortue
 +
|0
 +
|{{#expr:{{{Up|9}}}+1}}
 +
|<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+{{#var:tortue}}</div>
 +
}}{{#if:{{{Base|}}}|<div style="background: #EADEB3; border: 1px solid black; width: 100%; grid-column: 1 / {{#expr:2+{{{Up|9}}}}}; font-weight: bold;">Bonus de base</div>|}}{{#vardefine:terre|1}}
 +
{{#forargs: Bonus
 +
| key
 +
| value
 +
|{{#ifeq:{{#var:key}}|{{{Emplacement{{#var:terre}}|}}}|<div style="background: #EADEB3; border: 1px solid black; width: 100%; grid-column: 1 / {{#expr:2+{{{Up|9}}}}}; font-weight: bold;">Bonus supplémentaires : {{#var:terre}}<sup>{{#ifeq:{{#var:terre}}|1|er|e}}</sup> emplacement</div>{{#vardefine:terre|{{#expr:{{#var:terre}}+1}}}}|}}
 +
{{#loop: tortue
 +
|0
 +
|{{#expr:{{{Up|9}}}+1}}
 +
|<div style="{{#if:{{{Espace{{#var:key}}|}}}|height: {{#expr:20*{{{Espace{{#var:key}}}}}}}px; |}}display: flex; border: 1px solid black; width: 100%;"><div style="margin: auto;">{{{{{#expr:{{#var:tortue}}+1+({{#var:key}}-1)*({{{Up|9}}}+1)}}|}}}</div></div>
 +
}}
 +
}}
 +
</div>
 +
</div>
 +
</div>
 +
</div>
 +
}}
 
<noinclude>[[Catégorie:Nouveaux modèles]]</noinclude>
 
<noinclude>[[Catégorie:Nouveaux modèles]]</noinclude>

Version du 6 décembre 2021 à 20:24

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