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 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;"> |
{{#fornumargs: number | {{#fornumargs: number | ||
| value | | value |