|
|
(54 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <noinclude>
| | |
| <!-- Template documentation -->
| |
| '''Usage:'''
| |
| <pre>
| |
| {{Reputation_Table/Item|value=0.1}}
| |
| </pre>
| |
| </noinclude>
| |
| <includeonly>
| |
| <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%;
| |
| position: absolute;
| |
| top: 0;
| |
| 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;
| |
| border-radius: 5px;
| |
| width: {{#expr: abs(50 * {{{value|0}}})}}%;
| |
| {{#ifexpr:{{{value|0}}}<0|transform: translateX(-100%);|}}">
| |
| </div>
| |
| </div>
| |
| </includeonly>
| |