Template:AMP/Component: Difference between revisions

Template page
m (remove image margin)
(hide percent if not provided)
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
}}
}}
</div>
</div>
<div>
<div style="display: flex; flex-direction: column; align-items: middle;">
<p style="margin: 0px;"><big>{{{name}}}</big></p>
<p style="margin: 0px;">{{{name}}}</p>
<p style="margin: 0px;">'''{{{pct}}}%'''</p>
{{#if: {{{pct|}}}|<p style="margin: 0px;"><small>'''{{{pct}}}%''' {{#ifeq: {{{pct}}}|3
| → <span style="color: #AAFFAA;">6%</span>
|{{#ifeq: {{{pct}}}|6
| → <span style="color: #AAFFAA;">10%</span>
|{{#ifeq: {{{pct}}}|10
| → <span style="color: #AAFFAA;">16%</span>
|{{#ifeq: {{{pct}}}|15
| → <span style="color: #AAFFAA;">20%</span>
|{{#ifeq: {{{pct}}}|20
| → 20%
|{{#ifeq: {{{pct}}}|32
| → <span style="color: #FFAAAA;">27%</span>
|{{#ifeq: {{{pct}}}|38
| → <span style="color: #FFAAAA;">32%</span>
}}}}}}}}}}}}}}</small></p>}}
</div>
</div>
</div>
</div>

Latest revision as of 16:59, 3 August 2024

{{{name}}}