Template:Percentagebar: Difference between revisions

From FasciPedia
Jump to navigation Jump to search
No edit summary
Tag: Reverted
m (Text replacement - "{{Documentation}}" to "{{Doc}}")
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div style="position:relative; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{digits|{{{width|100}}}}}{{#if:{{str endswith|{{{width}}}|%}}|%|px}}; max-width: 100%; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{#invoke:String|replace|source={{{1|50}}}|pattern=[a-zA-Z]+|plain=false}})}}%; height: 1.5em;"></div><div style="position: absolute; font-weight: {{{weight|normal}}}; width:100%; height: 1.5em; text-align: {{{align|center}}}; color: {{{color|#000}}};">{{{2|{{formatnum:{{{1|50}}}}}%}}}</div></div><noinclude>
<div style="margin:auto; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{{width|600}}}px; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{{width|600}}}*{{{1|50}}}/100)}}px; height: 1.5em;"></div><div style="position: absolute; font-weight: bold; width: {{{width|100}}}px; height: 1.5em; text-align: center; z-index: 10; color: {{{color|#000}}};">{{{2|{{formatnum:{{{1|50}}}}}}}}%</div></div><noinclude>
{{Documentation}}
{{Doc}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Latest revision as of 23:29, 28 February 2024

50%

[edit] [purge] Documentation

Template:Documentation subpage

Usage


Other