Template:PercentageBox: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "<span style="position: relative;width:100px;height:21px;border: 2px solid black; background: {{{5|white}}};margin: 0;display: inline-block; color:{{{4|black}}};"> <span style="position: absolute; width:{{{2|50%}}};height:100%;background: {{{1|aqua}}};margin: 0;display: inline-block;"></span> <span style="position: absolute; left: 0; top: 0; width:100px;height:21px;text-align:center;">'''{{{3|50%}}}'''</span></span> <noinclude> <div style="background: #ECFCF4;border: 1px...")
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="position: relative;width:100px;height:21px;border: 2px solid black; background: {{{5|white}}};margin: 0;display: inline-block; color:{{{4|black}}};">
<span style="vertical-align: middle;text-align:initial;position: relative;width:100px;height:21px;border: 2px solid black;text-size-adjust: auto; background: {{{5|white}}};margin: 0;display: inline-block; color:{{{4|black}}};"><span style="position: absolute; width:{{{2|50%}}};max-width: 100%;height:100%;background: {{{1|aqua}}};margin: 0;display: inline-block;"></span><span style="position: absolute; left: 0; top: 0; width:100px;height:21px;text-align:center;">'''{{{3|{{{2|50%}}}}}}'''</span></span><noinclude>
<span style="position: absolute; width:{{{2|50%}}};height:100%;background: {{{1|aqua}}};margin: 0;display: inline-block;"></span>
<span style="position: absolute; left: 0; top: 0; width:100px;height:21px;text-align:center;">'''{{{3|50%}}}'''</span></span>
<noinclude>
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">

Latest revision as of 19:38, 7 September 2023

50%

Template documentation

Example usage:
{{PercentageBox|aqua|50%|50%}}

Will result in: 50%

{{PercentageBox|lime|50%|TEST}}

Will result in: TEST

{{PercentageBox|orange|50%|50%|white|lightgrey}}

Will result in: 50%