Jump to content

Template:Progress meter: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
reduce
→‎top: make sure the td is aligned to the right; use proper ids(ids don't have spaces in them)
Line 3: Line 3:
{{!}} align="center" {{!}} {{{comment1}}}  {{#ifeq:{{{percent}}}|yes|{{#if:{{{percentpref|}}}|{{{percentpref}}}|(}}{{Percentage|{{{current}}}|{{{goal|100}}}|{{{percentdec|0}}}}}{{#if:{{{percentpref|}}}||)}}}}
{{!}} align="center" {{!}} {{{comment1}}}  {{#ifeq:{{{percent}}}|yes|{{#if:{{{percentpref|}}}|{{{percentpref}}}|(}}{{Percentage|{{{current}}}|{{{goal|100}}}|{{{percentdec|0}}}}}{{#if:{{{percentpref|}}}||)}}}}
{{!}}}
{{!}}}
}}<div id="Main progress bar appearance and calculation" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 5px">
}}<div id="Main_progress_bar_appearance_and_calculation" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 5px">
{| style="background: {{{background1|transparent}}}; border:3px solid {{{bordercolor|blue}}}; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;{{#ifeq:{{{moz}}}|yes| {{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
{| style="background: {{{background1|transparent}}}; border:3px solid {{{bordercolor|blue}}}; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;{{#ifeq:{{{moz}}}|yes| {{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
|
|
Line 13: Line 13:
{{!}} align="center" {{!}} {{{comment2}}}
{{!}} align="center" {{!}} {{{comment2}}}
{{!}}}
{{!}}}
}}</div></div>{{#ifeq:{{{grad}}}|yes|<div id="10% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
}}</div></div>{{#ifeq:{{{grad}}}|yes|<div id="10%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 21: Line 21:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="20% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="20%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 29: Line 29:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="30% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="30%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 37: Line 37:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="40% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="40%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 45: Line 45:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="50% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="50%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 53: Line 53:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="60% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="60%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 61: Line 61:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="70% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="70%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 69: Line 69:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="80% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="80%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 77: Line 77:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div><div id="90% grad mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{!}}}</div></div><div id="90%_grad_mark" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top:2px">
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{{!}} style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{#ifexpr:{{{height|50}}}=60|{{#expr:{{{height|50}}}+17}}|{{#expr:{{{height|50}}}+18}}}}|{{#expr:{{{height|50}}}+7}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} align:right"
{{!}}
{{!}}
Line 85: Line 85:
{{!}}}
{{!}}}
{{!}}}
{{!}}}
{{!}}}</div></div>}}<div id="Current value marker" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 8px">
{{!}}}</div></div>}}<div id="Current_value_marker" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 8px">
{| style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; {{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
{| style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; {{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
|
|
Line 91: Line 91:
| {{#ifeq:{{{display}}}|yes|&nbsp;<font color={{{fontcolor1|red}}}>'''{{{current}}}'''</font>&nbsp;&nbsp;&nbsp;&nbsp;}}
| {{#ifeq:{{{display}}}|yes|&nbsp;<font color={{{fontcolor1|red}}}>'''{{{current}}}'''</font>&nbsp;&nbsp;&nbsp;&nbsp;}}
|}
|}
|}</div></div><div id="goal value marker" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 11px">
|}</div></div><div id="goal_value_marker" style="position:relative; width:{{{width|1000px}}}"><div style="position:absolute; width:100%; top: 11px">
{| style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
{| style="background: transparent; border:2px clear; width:100%; height:{{#if:{{{1|{{{current|}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;{{#ifeq:{{{moz}}}|yes|{{border-radius|{{{mozsize|110}}}px}}}} text-align:right"
| {{#ifeq:{{{display}}}|yes|{{#ifexpr:{{{current}}}>={{{2|{{{goal|100}}}}}}||{{#ifexpr:{{{current}}}>={{#expr:({{{2|{{{goal|100}}}}}}*.99) round 0}}|<font color={{{fontcolor2|red}}}>'''{{{2|{{{goal|100}}}}}}'''</font>|<font color={{{fontcolor2|red}}}>'''{{{2|{{{goal|100}}}}}}'''</font>&nbsp;&nbsp;&nbsp;&nbsp;}}}}}}
| style="text-align: right;" | {{#ifeq:{{{display}}}|yes|{{#ifexpr:{{{current}}}>={{{2|{{{goal|100}}}}}}||{{#ifexpr:{{{current}}}>={{#expr:({{{2|{{{goal|100}}}}}}*.99) round 0}}|<font color={{{fontcolor2|red}}}>'''{{{2|{{{goal|100}}}}}}'''</font>|<font color={{{fontcolor2|red}}}>'''{{{2|{{{goal|100}}}}}}'''</font>&nbsp;&nbsp;&nbsp;&nbsp;}}}}}}
|}</div></div><br/>
|}</div></div><br/>
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 21:19, 7 July 2018