Modèle:Gallery : Différence entre versions
[version vérifiée] | [version vérifiée] |
Ligne 1 : | Ligne 1 : | ||
{{#switch:{{{style}}} | {{#switch:{{{style}}} | ||
|1= | |1= | ||
− | <div {{#ifeq:{{{MinCol|3}}}|1||class="grid{{{MinCol|3}}}"}} style="display: grid; grid-template-columns: {{#if:{{{Trompette|}}}|repeat(auto-fit, minmax({{#if:{{{tailleCell|}}}|{{{tailleCell}}}|170}}px, 1fr))|repeat(auto-fill, {{#if:{{{tailleCell|}}}|{{{tailleCell}}}|170}}px)}}; justify-content:left; grid-gap: {{#if:{{{Gap|}}}|{{{Gap}}}|5}}px;"> | + | <div {{#ifeq:{{{MinCol|3}}}|1||class="grid{{{MinCol|3}}}"}} style="display: grid; grid-template-columns: {{#if:{{{Trompette|}}}|repeat(auto-fit, minmax({{#if:{{{tailleCell|}}}|{{{tailleCell}}}|170}}px, 1fr))|repeat(auto-fill, {{#if:{{{tailleCell|}}}|{{{tailleCell}}}|170}}px)}}; justify-content: left; grid-gap: {{#if:{{{Gap|}}}|{{{Gap}}}|5}}px; text-align: center;"> |
{{#fornumargs: number | {{#fornumargs: number | ||
| value | | value | ||
− | |{{#ifeq:{{#var:value}}|||<div | + | |{{#ifeq:{{#var:value}}|||<div style="padding:5px; border: 1px solid #2f1d1f; display: flex;"> |
+ | <div style="margin: auto;">{{#var:value}}</div> | ||
+ | </div>}} | ||
}} | }} | ||
</div> | </div> |