Template:Progession: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Changed color of progress bar to match aesthetic of wiki.) |
||
| Line 4: | Line 4: | ||
| | | | ||
{|style="border:1px solid grey; height:10px; width:100%; border-spacing:1px;" | {|style="border:1px solid grey; height:10px; width:100%; border-spacing:1px;" | ||
{{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background:# | {{#ifeq:{{#if:{{{1|}}}|{{{1}}}|0}}|0| | {{!}}style="background:#009f7a; width: {{#ifexpr:({{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}<1)|1%|{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}round 1}}|0}}%}}"{{!}} }} | ||
{{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}|100|| {{!}}style="background: #e2e2e2;" {{!}} }} | {{#ifeq:{{#if:{{{1|}}}|{{#expr:100*{{{1}}}/{{{2|{{{total|100}}}}}}}}|0}}|100|| {{!}}style="background: #e2e2e2;" {{!}} }} | ||
|} | |} | ||
Latest revision as of 20:09, 3 May 2022
Usage
Explained on MediaWiki.
You can use this for progression bars (its main usage on Super Fighting Wiki is for roadmaps)
Example:
{{Progression|##}}
Fill in the "##" with a number up to 100. No need for a percentage sign - it'll just work.