No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<div style="width: 100%; height: 20px; background: | <div style="width: 100%; height: 20px; background: transparent; border-radius: 5px; position: relative; border: 1px solid #000;"> | ||
<!-- | <!-- Dynamic bar based on the value --> | ||
<div style="height: 100%; | <div style="height: 100%; | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 50%; | left: 50%; | ||
width: {{#expr: abs( | background: #3a8d3a; | ||
transform: translateX({{{value|0}}} * 50%) | border-radius: 5px; | ||
width: {{#expr: abs(50 * {{{value|0}}})}}%; | |||
transform: translateX({{{value|0}}} * 50%);"> | |||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 04:26, 15 December 2024
Usage:
{{Reputation_Table/Item|value=0.1}}