No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
left: 50%; | left: 50%; | ||
{{#ifexpr:{{{value|0}}}<0|linear-gradient(90deg, rgba(255,0,0,1) 100%, rgba(255,255,255,1) 0%);|linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,0,0,1) 100%);}} | |||
background: #3a8d3a; | background: #3a8d3a; | ||
border-radius: 5px; | border-radius: 5px; | ||
width: {{#expr: abs(50 * {{{value|0}}})}}%; | width: {{#expr: abs(50 * {{{value|0}}})}}%; | ||
{{#ifexpr:{{{value|0}}}<0| transform: translateX(-100%);|}}"> | {{#ifexpr:{{{value|0}}}<0|transform: translateX(-100%);|}}"> | ||
</div> | </div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 04:47, 15 December 2024
Usage:
{{Reputation_Table/Item|value=0.1}}