Template:Percentagebar: Difference between revisions

From FasciPedia
Jump to navigation Jump to search
(Created page with "<div style="margin:auto; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{{width|800}}}px; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{{width|800}}}*{{{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: {{{...")
Β 
No edit summary
Tag: Reverted
Line 1: Line 1:
<div style="margin:auto; border: {{{border-width|1px}}} solid {{{border-color|#000}}}; background-color: {{{background-color|#fff}}}; width: {{{width|800}}}px; height: 1.5em;"><div style="position: absolute; background-color:{{{c|#{{{hex|{{{3|DBDBDB}}}}}}}}}; width: {{#expr:floor({{{width|800}}}*{{{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>
<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>
{{Documentation}}
{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Revision as of 23:56, 26 August 2022

<div style="position: absolute; background-color:#DBDBDB; width: Expression error: Unrecognized punctuation character "{".%; height: 1.5em;">
50%
[[{{fullurl:Template:Documentation/docname|action=edit&preload=Template:Documentation/preload}} create]] Template documentation