Template:AMP/Component: Difference between revisions

Template page
m (remove image margin)
(test linked shape stabilizer form)
Line 1: Line 1:
{{#ifeq: {{{pct}}}|3
|{{#vardefine: ls|6}} {{#vardefine: c|#AAFFAA}}
|{{#ifeq: {{{pct}}}|6
|{{#vardefine: ls|10}} {{#vardefine: c|#AAFFAA}}
|{{#ifeq: {{{pct}}}|10
|{{#vardefine: ls|16}} {{#vardefine: c|#AAFFAA}}
|{{#ifeq: {{{pct}}}|15
|{{#vardefine: ls|20}} {{#vardefine: c|#AAFFAA}}
|{{#ifeq: {{{pct}}}|20
|{{#vardefine: ls|20}}
|{{#ifeq: {{{pct}}}|32
|{{#vardefine: ls|27}} {{#vardefine: c|#FFAAAA}}
|{{#ifeq: {{{pct}}}|38
|{{#vardefine: ls|32}} {{#vardefine: c|#FFAAAA}}
}}}}}}}}}}}}}}
<div style="display: flex; align-items: center; gap: 10px;">
<div style="display: flex; align-items: center; gap: 10px;">
<div style="width: 64px; height: 64px">
<div style="width: 64px; height: 64px">
Line 7: Line 22:
<div>
<div>
<p style="margin: 0px;"><big>{{{name}}}</big></p>
<p style="margin: 0px;"><big>{{{name}}}</big></p>
<p style="margin: 0px;">'''{{{pct}}}%'''</p>
<p style="margin: 0px;">'''{{{pct}}}%'''
{{#if: {{#var: ls}}|{{#var: ls}}|no}}</p>
</div>
</div>
</div>
</div>

Revision as of 16:15, 23 July 2024

{{{name}}}

{{{pct}}}% {{#var: ls}}