|
|
(100 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <includeonly>{{ | + | <Table style = 'width: 75em; border-spacing: 1; border: 1px solid black; border-top: none'> |
− | | + | <tr> |
− | {{#ifexpr: {{{current|0}}} - {{{max|100}}} > 0 |
| + | <td > |
− | {{{max|100}}} |
| + | <td style = "text-align: left; width: 100%; padding: 0.2em 0.25em; line-height: 1.2">[[{{{1}}}]] / [[{{{2}}}]] |
− | {{{current|0}}}
| + | <td style = "padding: 0.2em 0.25em; line-height: 1.2; text-align: left"> |
− | }}
| + | <div style='min-width: 12em'>{{{3|7777}}} / {{{4|10000}}} ({{#expr: {{{4|10000}}} - {{{3|7777}}} }})</div> |
− | }}{{
| + | <td rowspan ='4' style = "min-width: 12em; line-height: 1.2; text-align: center"><strong>{{#expr: trunc (100 * {{{3|7777}}} / {{{4|10000}}}) }}% </strong> |
− | | + | <div style='width: 98%; border: 1px solid #888; background: #ddd'> |
− | {{{progression |
| + | <div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc (100 * {{{3|7777}}} / {{{4|10000}}}) }}%; background: {{#ifeq: {{{3|7777}}} | {{{4|10000}}} | #99ff55 | #fb9 }}'></div></div> |
− | {{#ifexpr: ({{#var:lpbCurrent}} - {{{min|0}}} >= 0) and ({{{max|100}}} - {{{min|0}}} > 0) |
| + | </tr> |
− | {{#expr: (({{#var:lpbCurrent}} - {{{min|0}}}) / ({{{max|100}}} - {{{min|0}}})) * 100 round 1}}% |
| + | </table> |
− | 0%
| + | <NOINCLUDE>[[Category: Template]] {{DEFAULTSORT:{{PAGENAME}}}}</noinclude> |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{tooltip-display-mode |
| |
− | {{#if: {{#var:pb-tooltip-display-mode}} |
| |
− | {{#var:pb-tooltip-display-mode}} |
| |
− | percentage
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{#switch: {{#var:lpbTooltipDisplayMode}} |
| |
− | percentage = {{formatnum:{{#var:lpbProgression}}}} |
| |
− | current = {{formatnum:{{{current|0}}}}} |
| |
− | remaining = {{formatnum:{{#expr: {{{max|100}}} - {{{current|0}}}}}}} |
| |
− | ratio = {{formatnum:{{{current|0}}}}} / {{formatnum:{{{max|100}}}}} |
| |
− | }}{{{tooltip-text |
| |
− | {{#if: {{#var:pb-tooltip-text}} |
| |
− | {{#var:pb-tooltip-text}} |
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{bar-display-mode |
| |
− | {{#if: {{#var:pb-bar-display-mode}} |
| |
− | {{#var:pb-bar-display-mode}} |
| |
− | percentage
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{#switch: {{#var:lpbBarDisplayMode}} |
| |
− | percentage = {{formatnum:{{#var:lpbProgression}}}} |
| |
− | current = {{formatnum:{{{current|0}}}}} |
| |
− | remaining = {{formatnum:{{#expr: {{{max|0}}} - {{{current|0}}}}}}} |
| |
− | ratio = {{formatnum:{{{current|0}}}}} / {{formatnum:{{{max|100}}}}} |
| |
− | }}{{{bar-text |
| |
− | {{#if: {{#var:pb-bar-text}} |
| |
− | {{#var:pb-bar-text}} |
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{bar-background |
| |
− | {{#if: {{#var:pb-bar-background}} |
| |
− | {{#var:pb-bar-background}} |
| |
− | #AAD5FF
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{bar-custom-style |
| |
− | {{#if: {{#var:pb-bar-custom-style}} |
| |
− | {{#var:pb-bar-custom-style}} |
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{box-background |
| |
− | {{#if: {{#var:pb-box-background}} |
| |
− | {{#var:pb-box-background}} |
| |
− | white
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{box-border |
| |
− | {{#if: {{#var:pb-box-border}} |
| |
− | {{#var:pb-box-border}} |
| |
− | 1px solid black
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{box-margin |
| |
− | {{#if: {{#var:pb-box-margin}} |
| |
− | {{#var:pb-box-margin}} |
| |
− | 1px
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{box-padding |
| |
− | {{#if: {{#var:pb-box-padding}} |
| |
− | {{#var:pb-box-padding}} |
| |
− | 1px
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{box-width |
| |
− | {{#if: {{#var:pb-box-width}} |
| |
− | {{#var:pb-box-width}} |
| |
− | 100%
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{box-custom-style |
| |
− | {{#if: {{#var:pb-box-custom-style}} |
| |
− | {{#var:pb-box-custom-style}} |
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{text-color |
| |
− | {{#if: {{#var:pb-text-color}} |
| |
− | {{#var:pb-text-color}} |
| |
− | black
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{text-size |
| |
− | {{#if: {{#var:pb-text-size}} |
| |
− | {{#var:pb-text-size}} |
| |
− | small
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | {{{text-weight |
| |
− | {{#if: {{#var:pb-text-weight}} |
| |
− | {{#var:pb-text-weight}} |
| |
− | bold
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | #if: {{{title|}}} | <span style="font-size:{{#var:lpbTextSize}};font-weight:{{#var:lpbTextWeight}}">{{{title|}}}</span> |
| |
− | }}<div role="progressbar" aria-valuemin="{{{min|0}}}" aria-valuemax="{{{max|100}}}" aria-valuenow="{{{current|{{{progression|0}}}}}}" aria-valuetext="{{#var:lpbBarText}}" title="{{#var:lpbTooltipText}}" style="background:{{#var:lpbBoxBackground}};border:{{#var:lpbBoxBorder}};margin:{{#var:lpbBoxMargin}};padding:{{#var:lpbBoxPadding}};width:{{#var:lpbBoxWidth}};color:{{#var:lpbTextColor}};font-size:{{#var:lpbTextSize}};font-weight:{{#var:lpbTextWeight}};line-height:1.25em;{{#var:lpbBoxCustomStyle}}"><div style="margin:0;padding:0;position:relative;"><div style="margin:0;padding:0;width:{{#var:lpbProgression}};background:{{#var:lpbBarBackground}};height:1.25em;{{#var:lpbBarCustomStyle}}"> </div><div style="margin:0;padding:0;width:100%;position:absolute;top:0;z-index:1;background-color:transparent;text-align:center;">{{#var:lpbBarText}}</div></div></div></includeonly><noinclude>{{Progress bar evolved}}
| |
− | [[Category:Template]] | |
− | </noinclude> | |