Modèle:FiltreModule : Différence entre versions

[version vérifiée][version vérifiée]
Ligne 1 : Ligne 1 :
 
{{#switch:{{{Type|}}}
 
{{#switch:{{{Type|}}}
 
|Text=
 
|Text=
{{FiltreÉlément
+
{{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}}}}
|Élément=input
 
|id={{{id}}}
 
|type=text
 
|placeholder={{{placeholder|}}}
 
|Nom={{{Nom|}}}
 
}}
 
 
|Range=
 
|Range=
 
<div style="font-weight: bold;">{{{name}}}</div>
 
<div style="font-weight: bold;">{{{name}}}</div>
 
<div style="display: flex; align-items: center; gap: 3px 0;">
 
<div style="display: flex; align-items: center; gap: 3px 0;">
{{Input|id={{{id}}}-min|name=levelMin|type=number|min=1|max={{{maxLevel|135}}}|value=1|style=margin-right: 0;|labelStyle=display: block; padding-left: 0;|data=filter+level|data2=value+min}}
+
{{Input|id={{{id}}}-min|name={{{id}}}Min|type=number|min=1|max={{{maxLevel|135}}}|value=1|style=margin-right: 0;|labelStyle=display: block; padding-left: 0;|data=filter+{{{id}}}|data2=value+min}}
 
<div style="font-family: system-ui; padding: 0 10px;">&mdash;</div>
 
<div style="font-family: system-ui; padding: 0 10px;">&mdash;</div>
{{Input|id={{{id}}}-max|name=levelMax|type=number|min=1|max={{{maxLevel|135}}}|value={{{maxLevel|135}}}|labelStyle=display: block; padding-left: 0;|data=filter+level|data2=value+max}}
+
{{Input|id={{{id}}}-max|name={{{id}}}Max|type=number|min=1|max={{{maxLevel|135}}}|value={{{maxLevel|135}}}|labelStyle=display: block; padding-left: 0;|data=filter+{{{id}}}|data2=value+max}}
 
</div>
 
</div>
 
|Checkbox=
 
|Checkbox=

Version du 21 décembre 2024 à 00:30