|
|
Line 1: |
Line 1: |
− | <includeonly>{{ | + | <noinclude>{| style = 'border-spacing: 0; border: 1px solid black; border-top: none; width: 24em; margin: 0 auto' | |
− | | + | </noinclude>|- |
− | {{#ifexpr: {{{current|0}}} - {{{max|100}}} > 0 |
| + | | style = 'border-top: 1px solid black; padding: 0.2em 0.5em; line-height: 1.2; width: 100%' |[[{{{1|None}}}]] |
− | {{{max|100}}} |
| + | | style = 'font-size: 70%; line-height: 1.2; text-align: right' | <strong>{{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}% </strong> |
− | {{{current|0}}}
| + | | colspan = '4' style = 'padding: 0.2em 0.25em' |<div style='width: 98%; min-width: 12em; border: 1px solid #888; background: #ddd'><div style='font-size: 70%; line-height: 1.2; height: 1.2em; width: {{#expr: trunc (100 * {{{2|7777}}} / {{{3|10000}}}) }}% ; background: {{#ifeq: {{{2|7777}}} | {{{3|10000}}} | #99ff55 | #fb9 }}'>{{{2|7777}}} / {{{3|10000}}} ({{#expr: {{{3|10000}}} - {{{2|7777}}} }})</div></div><noinclude> |
− | }}
| + | |}</noinclude><NOINCLUDE>[[Category: Template]] {{DEFAULTSORT:{{PAGENAME}}}}</noinclude> |
− | }}{{
| |
− | | |
− | {{{progression |
| |
− | {{#ifexpr: ({{#var:lpbCurrent}} - {{{min|0}}} >= 0) and ({{{max|100}}} - {{{min|0}}} > 0) |
| |
− | {{#expr: (({{#var:lpbCurrent}} - {{{min|0}}}) / ({{{max|100}}} - {{{min|0}}})) * 100 round 1}}% |
| |
− | 0%
| |
− | }}
| |
− | }}}
| |
− | }}{{
| |
− | | |
− | {{{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> | |