Modèle:Équipements/Bonus : Différence entre versions
[version vérifiée] | [version vérifiée] |
Ligne 7 : | Ligne 7 : | ||
| key | | key | ||
| value | | 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 | + | |{{#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> | ||
Ligne 17 : | Ligne 17 : | ||
|{{#expr:{{{Up|9}}}+1}} | |{{#expr:{{{Up|9}}}+1}} | ||
|<div class="fondfenetre" style="color: white; width: 100%; border: 1px black solid;">+{{#var:tortue}}</div> | |<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 / | + | }}{{#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 | {{#forargs: Bonus | ||
| key | | key | ||
| value | | value | ||
− | |{{#ifeq:{{#var:key}}|{{{Emplacement{{#var:terre}}|}}}|<div style="background: #EADEB3; border: 1px solid black; width: 100%; grid-column: 1 / | + | |{{#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 | {{#loop: tortue | ||
|0 | |0 | ||
Ligne 34 : | Ligne 34 : | ||
|2= <!--ÉQUIPEMENTS +9 --> | |2= <!--ÉQUIPEMENTS +9 --> | ||
<div style="display: flex; flex-direction: row; gap: 2px; align-items: flex-start;"> | <div style="display: flex; flex-direction: row; gap: 2px; align-items: flex-start;"> | ||
− | <div style="display: grid; grid-template-columns: max-content; grid-auto-rows: | + | <div style="display: grid; grid-template-columns: max-content; grid-auto-rows: auto 32px 32px 32px 32px 32px 32px; gap: 2px;"> |
− | <div class="fondfenetre" style="border: 1px black solid; padding: 0 1px;">Amélioration</div> | + | <div class="fondfenetre" style="border: 1px black solid; padding: 0 1px;">Amélioration</div>{{#if:{{{Base|}}}|<div style="background: #EADEB3; border: 1px solid black;"><div style="visibility: hidden;">oui</div></div>|}}{{#vardefine:terre|1}} |
{{#forargs: Bonus | {{#forargs: Bonus | ||
| key | | key | ||
Ligne 43 : | Ligne 43 : | ||
</div> | </div> | ||
<div style="overflow: auto; flex-grow: 1;"> | <div style="overflow: auto; flex-grow: 1;"> | ||
− | <div style="display: grid; grid-template-columns: repeat({{#expr:{{{Up|9}}}+1}}, minmax({{#ifexpr:{{{Up|9}}}> 9 |60|75}}px, 1fr)); grid-auto-rows: | + | <div style="display: grid; grid-template-columns: repeat({{#expr:{{{Up|9}}}+1}}, minmax({{#ifexpr:{{{Up|9}}}> 9 |60|75}}px, 1fr)); grid-auto-rows: auto 32px 32px 32px 32px 32px 32px; gap: 2px;"> |
{{#loop: tortue | {{#loop: tortue | ||
|0 | |0 | ||
|{{#expr:{{{Up|9}}}+1}} | |{{#expr:{{{Up|9}}}+1}} | ||
|<div class="fondfenetre" style="border: 1px black solid;">+{{#var:tortue}}</div> | |<div class="fondfenetre" style="border: 1px black solid;">+{{#var:tortue}}</div> | ||
− | + | }}{{#if:{{{Base|}}}|<div style="background: #EADEB3; border: 1px solid black; grid-column: 1 / -1; font-weight: bold;">Bonus de base</div>|}}{{#vardefine:terre|1}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{#forargs: Bonus | {{#forargs: Bonus | ||
| key | | key |
Version du 4 avril 2022 à 19:38
Amélioration
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9