Template:AMP/Component: Difference between revisions

Template page
(test linked shape stabilizer form)
(hide percent if not provided)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{{pct}}}|3
<div style="display: flex; align-items: center; gap: 10px;">
|{{#vardefine: ls|6}} {{#vardefine: c|#AAFFAA}}
<div style="width: 64px; height: 64px">
{{#ifexist: File:Icon {{{name}}}.png
|<p style="margin: 0px;">[[File:Icon {{{name}}}.png|border|frameless|64x64px]]</p>
}}
</div>
<div style="display: flex; flex-direction: column; align-items: middle;">
<p style="margin: 0px;">{{{name}}}</p>
{{#if: {{{pct|}}}|<p style="margin: 0px;"><small>'''{{{pct}}}%''' {{#ifeq: {{{pct}}}|3
| → <span style="color: #AAFFAA;">6%</span>
|{{#ifeq: {{{pct}}}|6
|{{#ifeq: {{{pct}}}|6
|{{#vardefine: ls|10}} {{#vardefine: c|#AAFFAA}}
| → <span style="color: #AAFFAA;">10%</span>
|{{#ifeq: {{{pct}}}|10
|{{#ifeq: {{{pct}}}|10
|{{#vardefine: ls|16}} {{#vardefine: c|#AAFFAA}}
| → <span style="color: #AAFFAA;">16%</span>
|{{#ifeq: {{{pct}}}|15
|{{#ifeq: {{{pct}}}|15
|{{#vardefine: ls|20}} {{#vardefine: c|#AAFFAA}}
| → <span style="color: #AAFFAA;">20%</span>
|{{#ifeq: {{{pct}}}|20
|{{#ifeq: {{{pct}}}|20
|{{#vardefine: ls|20}}
| 20%
|{{#ifeq: {{{pct}}}|32
|{{#ifeq: {{{pct}}}|32
|{{#vardefine: ls|27}} {{#vardefine: c|#FFAAAA}}
| → <span style="color: #FFAAAA;">27%</span>
|{{#ifeq: {{{pct}}}|38
|{{#ifeq: {{{pct}}}|38
|{{#vardefine: ls|32}} {{#vardefine: c|#FFAAAA}}
| <span style="color: #FFAAAA;">32%</span>
}}}}}}}}}}}}}}
}}}}}}}}}}}}}}</small></p>}}
<div style="display: flex; align-items: center; gap: 10px;">
<div style="width: 64px; height: 64px">
{{#ifexist: File:Icon {{{name}}}.png
|<p style="margin: 0px;">[[File:Icon {{{name}}}.png|border|frameless|64x64px]]</p>
}}
</div>
<div>
<p style="margin: 0px;"><big>{{{name}}}</big></p>
<p style="margin: 0px;">'''{{{pct}}}%'''
{{#if: {{#var: ls}}|{{#var: ls}}|no}}</p>
</div>
</div>
</div>
</div>

Latest revision as of 16:59, 3 August 2024

{{{name}}}