Difference between revisions of "Template:Progressbar"

From Game Logs
Jump to: navigation, search
(Created page with "<includeonly>{{#ifexpr: {{{Length|0}}} > 0 |{{#ifexpr: {{{Marks|0}}} > 0 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 1 |{{#ifexpr: {{{Marks|0}}} > 1 |{{{M...")
 
(cleanup?)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{Length|0}}} > 0 |{{#ifexpr: {{{Marks|0}}} > 0 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 1 |{{#ifexpr: {{{Marks|0}}} > 1 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 2 |{{#ifexpr: {{{Marks|0}}} > 2 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 3 |{{#ifexpr: {{{Marks|0}}} > 3 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 4 |{{#ifexpr: {{{Marks|0}}} > 4 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 5 |{{#ifexpr: {{{Marks|0}}} > 5 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 6 |{{#ifexpr: {{{Marks|0}}} > 6 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 7 |{{#ifexpr: {{{Marks|0}}} > 7 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 8 |{{#ifexpr: {{{Marks|0}}} > 8 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 9 |{{#ifexpr: {{{Marks|0}}} > 9 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 10 |{{#ifexpr: {{{Marks|0}}} > 10 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 11 |{{#ifexpr: {{{Marks|0}}} > 11 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 12 |{{#ifexpr: {{{Marks|0}}} > 12 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 13 |{{#ifexpr: {{{Marks|0}}} > 13 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 14 |{{#ifexpr: {{{Marks|0}}} > 14 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 15 |{{#ifexpr: {{{Marks|0}}} > 15 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 16 |{{#ifexpr: {{{Marks|0}}} > 16 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 17 |{{#ifexpr: {{{Marks|0}}} > 17 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 18 |{{#ifexpr: {{{Marks|0}}} > 18 |{{{Mark|■}}}|{{{Segment|□}}}}}}}{{#ifexpr: {{{Length|0}}} > 19 |{{#ifexpr: {{{Marks|0}}} > 19 |{{{Mark|■}}}|{{{Segment|□}}}}}}}</includeonly>
+
<includeonly>{{ #UR-compress:
 +
 
 +
{{ #vardefine: Mark | {{{Mark|⬛}}} }}
 +
{{ #vardefine: Segment | {{{Segment|⬜}}} }}
 +
 
 +
{{#ifexpr: {{{Length|0}}} > 0 | {{#ifexpr: {{{Marks|0}}} > 0 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 1 | {{#ifexpr: {{{Marks|0}}} > 1 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 2 | {{#ifexpr: {{{Marks|0}}} > 2 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 3 | {{#ifexpr: {{{Marks|0}}} > 3 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 4 | {{#ifexpr: {{{Marks|0}}} > 4 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 5 | {{#ifexpr: {{{Marks|0}}} > 5 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 6 | {{#ifexpr: {{{Marks|0}}} > 6 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 7 | {{#ifexpr: {{{Marks|0}}} > 7 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 8 | {{#ifexpr: {{{Marks|0}}} > 8 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 9 | {{#ifexpr: {{{Marks|0}}} > 9 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 10 | {{#ifexpr: {{{Marks|0}}} > 10 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 11 | {{#ifexpr: {{{Marks|0}}} > 11 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 12 | {{#ifexpr: {{{Marks|0}}} > 12 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 13 | {{#ifexpr: {{{Marks|0}}} > 13 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 14 | {{#ifexpr: {{{Marks|0}}} > 14 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 15 | {{#ifexpr: {{{Marks|0}}} > 15 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 16 | {{#ifexpr: {{{Marks|0}}} > 16 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 17 | {{#ifexpr: {{{Marks|0}}} > 17 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 18 | {{#ifexpr: {{{Marks|0}}} > 18 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
{{#ifexpr: {{{Length|0}}} > 19 | {{#ifexpr: {{{Marks|0}}} > 19 | {{#var: Mark}} | {{#var: Segment}}}}}}
 +
 
 +
}}</includeonly>
 
<noinclude>
 
<noinclude>
 
[[Category:Appearance]]
 
[[Category:Appearance]]

Latest revision as of 14:55, 25 February 2018

Bar of marks to note your progress/skills/whatever...
Usage:

 {{Progressbar|
   Length=total length (max 20)|
   Marks=marked length|
   Segment=unmarked segment|
   Mark=marked segment}}
 

Examples:

{{Progressbar|Length=5|Marks=3}}

⬛ ⬛ ⬛ ⬜ ⬜

{{Progressbar|Length=8|Marks=6|Segment=0|Mark=1}}

1 1 1 1 1 1 0 0

{{Progressbar|
Length=15|
Marks=10|
Segment=<div style="float:left; margin:-3px; border-style: solid; border-width: 1px; border-color: #111; border-radius: 50%; background:#fff; padding: 0px; width: 10px; height: 10px;"> </div>|
Mark=<div style="float:left; margin:-3px; border-style: solid; border-width: 1px; border-color: #111; border-radius: 50%; background:#b73; padding: 0px; width: 10px; height: 10px;"> </div>}}