Modèle:FiltreModule : Différence entre versions
[version vérifiée] | [version vérifiée] |
(10 révisions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
{{#switch:{{{Type|}}} | {{#switch:{{{Type|}}} | ||
|Text= | |Text= | ||
− | {{ | + | {{Input|id=filter-name|name=filterName|style=grid-area: 1 / -1; width: 100%; height: 100%; padding: 3px 20px 3px 46px; margin: 0; border-radius: 999px 0 0 999px;|labelStyle=height: 100%; flex-grow: 1; padding: 0; margin: 0; display: grid; align-items: center;|placeholder={{{placeholder|}}}|text={{Svg|style=grid-area: 1 / -1; z-index: 10; padding-left: 12px;|height=24|viewBox=0 -960 960 960|width=24|data=search}}}} |
− | | | ||
− | | | ||
− | | | ||
− | |placeholder={{{placeholder|}}} | ||
− | | | ||
− | }} | ||
|Range= | |Range= | ||
− | {{ | + | <div style="font-weight: bold;">{{{name}}}</div> |
− | + | <div style="display: flex; align-items: center; gap: 3px 0;"> | |
− | |id={{{id}}}- | + | {{Input|id={{{id}}}-min|name={{{id}}}Min|type=number|min=1|max={{{maxLevel|135}}}|value=1|style=margin-right: 0; width: 70px;|labelStyle=display: block; padding-left: 0;|data=filter+{{{id}}}|data2=value+min}} |
− | | | + | <div style="font-family: system-ui; padding: 0 10px;">—</div> |
− | + | {{Input|id={{{id}}}-max|name={{{id}}}Max|type=number|min=1|max={{{maxLevel|135}}}|value={{{maxLevel|135}}}|style=width: 70px;|labelStyle=display: block; padding-left: 0;|data=filter+{{{id}}}|data2=value+max}} | |
− | |||
− | {{ | ||
− | |||
− | |id={{{id}}}- | ||
− | | | ||
− | |min= | ||
− | |max={{{ | ||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | }} | ||
</div> | </div> | ||
− | |||
|Checkbox= | |Checkbox= | ||
− | + | <div style="font-weight: bold;">{{{name}}}</div> | |
− | + | <div class="label-hover" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));"> | |
− | + | {{#if:{{{text1|}}}| | |
− | |||
− | |||
− | <div | ||
− | {{#if:{{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{FiltreÉlément | {{FiltreÉlément | ||
|Élément=checkbox | |Élément=checkbox | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value1}}} | |value={{{value1}}} | ||
− | | | + | |textAfter={{{text1}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text2|}}}| | }} {{#if:{{{text2|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value2}}} | |value={{{value2}}} | ||
− | | | + | |textAfter={{{text2}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text3|}}}| | }} {{#if:{{{text3|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value3}}} | |value={{{value3}}} | ||
− | | | + | |textAfter={{{text3}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text4|}}}| | }} {{#if:{{{text4|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value4}}} | |value={{{value4}}} | ||
− | | | + | |textAfter={{{text4}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text5|}}}| | }} {{#if:{{{text5|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value5}}} | |value={{{value5}}} | ||
− | | | + | |textAfter={{{text5}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text6|}}}| | }} {{#if:{{{text6|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value6}}} | |value={{{value6}}} | ||
− | | | + | |textAfter={{{text6}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text7|}}}| | }} {{#if:{{{text7|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value7}}} | |value={{{value7}}} | ||
− | | | + | |textAfter={{{text7}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text8|}}}| | }} {{#if:{{{text8|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value8}}} | |value={{{value8}}} | ||
− | | | + | |textAfter={{{text8}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text9|}}}| | }} {{#if:{{{text9|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value9}}} | |value={{{value9}}} | ||
− | | | + | |textAfter={{{text9}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} {{#if:{{{text10|}}}| | }} {{#if:{{{text10|}}}| | ||
{{FiltreÉlément | {{FiltreÉlément | ||
− | |Élément= | + | |Élément=checkbox |
|id={{{id}}} | |id={{{id}}} | ||
|value={{{value10}}} | |value={{{value10}}} | ||
− | | | + | |textAfter={{{text10}}}{{#if:{{{span|}}}|{{{span}}}}} |
}} | }} | ||
}} | }} | ||
+ | </div> | ||
}} | }} | ||
<noinclude>[[Catégorie:Nouveaux modèles]]</noinclude> | <noinclude>[[Catégorie:Nouveaux modèles]]</noinclude> |