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

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

Version du 10 février 2022 à 18:09

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