Template:Progession: Difference between revisions
Jump to navigation
Jump to search
m (Brief explanation on the Progression template.) |
m (Changed color of progress bar to match aesthetic of wiki.) |
||
| (3 intermediate revisions by the same user not shown) | |||
| 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;" {{!}} }} | ||
|} | |} | ||
| Line 13: | Line 13: | ||
You can use this for progression bars (its main usage on Super Fighting Wiki is for roadmaps) | You can use this for progression bars (its main usage on Super Fighting Wiki is for roadmaps) | ||
Example: | |||
<pre> | <pre> | ||
{{Progression|##}} | {{Progression|##}} | ||
</pre> | </pre> | ||
Fill in the "##" with a number up to 100. No need for a percentage sign - it'll just work. | |||
[[Category:Universal]][[Category:Templates]] | [[Category:Universal]][[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
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.