Template:Reputation Table/Item: Difference between revisions

Template page
No edit summary
No edit summary
Line 13: Line 13:
top: 0;  
top: 0;  
left: 50%;
left: 50%;
background:{{#ifexpr:{{{value|0}}}<0|linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(255,255,255,1) 100%);|linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(0,255,0,1) 100%);}}
background:{{#ifexpr:{{{value|0}}}<0|
linear-gradient(90deg, rgba({{#expr: round(abs({{{value|0}}}) * 255)}} ,0,0,1) 0%, rgba(255,255,255,1) 100%);
|
linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(0,255,0,1) 100%);
}}
border-radius: 5px;
border-radius: 5px;
width: {{#expr: abs(50 * {{{value|0}}})}}%;
width: {{#expr: abs(50 * {{{value|0}}})}}%;

Revision as of 04:57, 15 December 2024

Usage:

{{Reputation_Table/Item|value=0.1}}