«قالب:Tabber»: الفرق بين المراجعتين

[مراجعة منقحة][مراجعة منقحة]
ط (نقل Afkary صفحة قالب:Tab إلى قالب:Tabber دون ترك تحويلة)
سطر ٧: سطر ٧:
 
     </div>
 
     </div>
 
}}
 
}}
 +
</div>
 +
}}
 +
 +
{{#switch: {{{ver|1}}}
 +
|1=
 +
{{LoadJavascript|Script=tabber}}
 +
<div class="tabber-container">
 +
<div style="display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; {{#if:{{{noBg|}}}||background: rgba(0,0,0,.1);  border: 1px black solid;}} padding: 5px; {{#if:{{{Center|}}}|justify-content: center; width: fit-content;}}{{#if:{{{Cadre|}}}|border-bottom: 1px black;}}{{#if:{{{Center2|}}}|margin: 0 auto;}}">
 +
{{#forargs: Bo
 +
| key
 +
| value
 +
|<div id="{{anchorencode:{{#var:value}}}}" class="button {{#ifeq:{{#var:key}}|{{{numActive|1}}}|tabber-active}}" data-position="{{#expr:{{#var:key}}-1}}">{{#var:value}}</div>
 +
}}
 +
</div>
 +
<div class="tabber-texte" style="{{#if:{{{Cadre|}}}|border: 1px black solid; padding: 5px;|padding-top: 10px;}} {{#if:{{{noOverflow|}}}||overflow-x: auto;}}">
 +
{{#forargs: Co
 +
| key
 +
| value
 +
|<div class="tabber-noactive {{#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>
 +
</div>
 +
|2=
 +
{{LoadJavascript|Script=tabber}}
 +
<div class="tabber-container">
 +
<div style="display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; padding: 5px; justify-content: center; width: fit-content; margin: 0 auto;">
 +
{{#forargs: Bo
 +
| key
 +
| value
 +
|<div id="{{anchorencode:{{#var:value}}}}" class="button {{#ifeq:{{#var:key}}|{{{numActive|1}}}|tabber-active}}" data-position="{{#expr:{{#var:key}}-1}}">{{#var:value}}</div>
 +
}}
 +
</div>
 +
<div class="tabber-texte" style="padding-top: 10px;">
 +
{{#forargs: Co
 +
| key
 +
| value
 +
|<div {{#if:{{{category{{#var:key}}|}}}|data-category="{{{category{{#var:key}}|}}}"}} class="tabber-noactive {{#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>
 
</div>
 
}}
 
}}

مراجعة ٢٣:٢٤، ٨ سبتمبر ٢٠٢٢