Modèle:Tabber : Différence entre versions
Ligne 14 : | Ligne 14 : | ||
| key | | key | ||
| value | | value | ||
− | |<div class=" | + | |<div class="{{#ifeq:{{#var:key}}|{{{numActive|1}}}|tabber-active}}">{{#if:{{{Pourcentage{{#var:key}}|}}}|<div style="text-align: center; padding-bottom: 5px; font-weight: bold; border-bottom: 1px black solid; margin-bottom: 10px;">Pourcentage de réussite : {{{Pourcentage{{#var:key}}|}}}</div>}}{{#ifexpr:{{#if:{{{Fabrication|}}}|1|0}} or {{#if:{{{Fabrication{{#var:key}}|}}}|1|0}}|<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(324px, 1fr)); justify-items: center; gap: 5px;">{{#var:value}}</div>|{{#var:value}}}} |
</div> | </div> | ||
}} | }} | ||
Ligne 33 : | Ligne 33 : | ||
| key | | key | ||
| value | | value | ||
− | |<div {{#if:{{{category{{#var:key}}|}}}|data-category="{{{category{{#var:key}}|}}}"}} class=" | + | |<div {{#if:{{{category{{#var:key}}|}}}|data-category="{{{category{{#var:key}}|}}}"}} class="{{#ifeq:{{#var:key}}|{{{numActive|1}}}|tabber-active}} {{#if:{{{noSizing{{#var:key}}|}}}||image-sizing}}">{{#if:{{{noList{{#var:key}}|}}}|{{#var:value}}|<div {{#if:{{{oneColumn{{#var:key}}|}}}||class="grid2"}} style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); justify-content: left; grid-gap: 5px;">{{#var:value}}</div>}}</div> |
}} | }} | ||
</div> | </div> |
Version du 2 octobre 2022 à 12:11
Utilisé dans le modèle Modèle:Objets