Jump to content

User:Daedalus969/sandbox2: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Tighten up code a bit; remove annoying auto-generated <pre> tags; ready for release
Sandbox2 has served its use; no point in keeping this content here.
Tag: Blanking
 
Line 1: Line 1:
<includeonly>
<div>
{{#if:{{{comment1|}}}|<div style="width: {{#iferror:{{#ifexpr:{{#invoke:String|sub|{{{width|100%}}}|-1}}|{{{width|100%}}}px}}|{{{width|100%}}}|{{{width|100%}}}px}}; text-align: center;">{{{comment1}}}&nbsp;&nbsp;{{#ifeq:{{{percent}}}|yes|{{#if:{{{percentpref|}}}|{{{percentpref}}}|(}}{{Percentage|{{{current}}}|{{{goal|100}}}|{{{percentdec|0}}}}}{{#if:{{{percentpref|}}}||)}}}}</div>}}<div id="Main_progress_bar_appearance_and_calculation" style="width: {{#iferror:{{#ifexpr:{{#invoke:String|sub|{{{width|100%}}}|-1}}|{{{width|100%}}}px}}|{{{width|100%}}}|{{{width|100%}}}px}}; display: inline-block;">
<div style="width:100%; margin-top: 5px;">
<div style="background: {{{background1|transparent}}}; border:3px solid {{{bordercolor|blue}}}; {{#ifeq:{{{moz}}}|yes| {{border-radius|{{{mozsize|110}}}px}}}} text-align: right; padding: 3px; position: relative;">
<div style="border: 1px solid transparent; position: relative; height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;">
<div style="background: {{{background2|#2222EE}}}; width: {{#ifexpr:{{#expr:({{{1|{{{current|0}}}}}}/{{{2|{{{goal|100}}}}}})*100}}>=100|100|{{#expr:({{{1|{{{current|0}}}}}}/{{{2|{{{goal|100}}}}}})*100}}}}%; height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; {{#ifeq:{{{moz}}}|yes| {{border-radius|{{{mozsize|110}}}px}}}} position: absolute;"></div>
<div style="text-align: justify; -ms-text-justify: distribute-all-lines; text-justify: distribute-all-lines; width: 100%; height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; position: absolute;">
{{#ifeq:{{{grad}}}|yes|<div style="vertical-align: top; display: inline-block; *display: inline; width: {{{gradwidth|10}}}px; height: 100%; background-color: transparent;"></div>{{forCount
|call=1x
|start=1|stop={{#expr:{{{grads|7}}}}}|by=1
|parameter=2
|pc1n=1|pc1v=<span></span>

<div style="vertical-align: top; display: inline-block; *display: inline; width: {{{gradwidth|10}}}px; height: 100%; background-color: {{{gradcolor|black}}};"></div>}}
<div style="vertical-align: top; display: inline-block; *display: inline; width: {{{gradwidth|10}}}px; height: 100%; background-color: transparent;"></div>}}<span style="width: 100%; display: inline-block; font-size: 0; line-height: 0;"></span><div id="goal_value_marker" style="position: absolute; right: 10px; top: 0px; line-height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;">{{#ifeq:{{{display}}}|yes|{{#ifexpr:{{{1|{{{current|0}}}}}}>={{{2|{{{goal|100}}}}}}||{{#ifexpr:{{{1|{{{current|0}}}}}}>={{#expr:({{{2|{{{goal|100}}}}}}*.99) round 0}}||<span style="color: {{{fontcolor2|red}}}; display: inline-block">'''{{{2|{{{goal|100}}}}}}'''</span>}}}}}}</div>
</div>
<div style="background: transparent; width: {{#ifexpr:{{#expr:({{{1|{{{current|0}}}}}}/{{{2|{{{goal|100}}}}}})*100}}>=100|100|{{#expr:({{{1|{{{current|0}}}}}}/{{{2|{{{goal|100}}}}}})*100}}}}%; height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; line-height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px; {{#ifeq:{{{moz}}}|yes| {{border-radius|{{{mozsize|110}}}px}}}} position: absolute;"><span style="color: {{{fontcolor1|red}}}; position: relative; margin-right: 10px; height: {{#if:{{{1|{{{current|0}}}}}}|{{{height|50}}}|{{#expr:{{{height|50}}}+1}}}}px;">{{{1|{{{current|0}}}}}}</span></div>
</div>
</div>
</div>
</div>
{{#if:{{{comment2|}}}|<div style="width: {{#iferror:{{#ifexpr:{{#invoke:String|sub|{{{width|100%}}}|-1}}|{{{width|100%}}}px}}|{{{width|100%}}}|{{{width|100%}}}px}}; text-align: center;">{{{comment2}}}</div>}}
</div>
</includeonly><noinclude>
<noinclude>
{{User:Daedalus969/sandbox2|current=52|moz=yes|grad=yes|display=yes|comment1=comment 1|comment2=comment 2}}
{{User:Daedalus969/sandbox2|current=598 |goal=702 |comment1=Plan A, Strata 950 |width=100% |height=20 |display=yes |background2=yellow| bordercolor=black |fontcolor1=red|percent=yes}}
{{User:Daedalus969/sandbox2|current=624 |goal=624 |comment1=Plan B, Schramm T130 |width=100% |height=20 |display=yes |background2=green| bordercolor=black |fontcolor1=white|percent=yes}}
{{User:Daedalus969/sandbox2|current=372 |goal=597|comment1=Plan C, RIG-421 |width=100% |height=20 |display=yes |background2=yellow| bordercolor=black |fontcolor1=red|percent=yes}}
{{User:Daedalus969/sandbox2|current=2 |goal=65 |comment1=Rescue plans suspended, after no more than 2 bodies were found |width=100%|height=20 |display=yes |background2=red| bordercolor=black |fontcolor1=black|percent=yes}}
{{User:Daedalus969/sandbox2|current=598 |goal=702 |comment1=Plan A, Strata 950 |width=100% |height=20 |display=yes |background2=green| bordercolor=black |fontcolor1=white|percent=yes}}
{{User:Daedalus969/sandbox2|current=624 |goal=624 |comment1='''Plan B, Schramm T130''' |width=100% |height=20 |display=yes |background2=green| bordercolor=black |fontcolor1=white|percent=yes}}
{{User:Daedalus969/sandbox2|current=372 |goal=597|comment1=Plan C, RIG-421 |width=100% |height=20 |display=yes |background2=green| bordercolor=black |fontcolor1=white|percent=yes}}
{{User:Daedalus969/sandbox2
|current={{NUMBEROF|ARTICLES|en}}
|goal=4000000
|height=35
|width=300
|comment1={{Purge}} Help us reach 4,000,000 articles.
|display=yes
|align=left
|fontcolor1=black
|fontcolor2=black
|background2=#0015FF
|percent=yes
|percentdec=2}}
{{User:Daedalus969/sandbox2
|current={{NUMBEROF|ADMINS|en}}
|goal=2000
|height=35
|width=300
|comment1={{Purge}} 2,000 administrators
|display=yes
|align=left
|fontcolor1=black
|fontcolor2=black
|background2=#00FFFF
|percent=yes
|percentdec=2}}
{{User:Daedalus969/sandbox2
|current={{NUMBEROF|USERS|en}}
|goal=20000000
|height=35
|width=300
|comment1={{Purge}} 20 million users
|display=yes
|align=left
|fontcolor1=black
|fontcolor2=black
|background2=#0072FF
|percent=yes
|percentdec=2}}
{{User:Daedalus969/sandbox2
|current={{NUMBEROF|EDITS|en}}
|goal=700000000
|height=35
|width=300
|comment1={{Purge}} All users contribute 700 million times.
|display=yes
|align=left
|fontcolor1=black
|fontcolor2=black
|background2=#00EEFF
|percent=yes
|percentdec=2}}
{{User:Daedalus969/sandbox2
|current={{NUMBEROF|ACTIVEUSERS|en}}
|goal=150000
|height=35
|width=300
|comment1={{Purge}} 150000 active users
|display=yes
|align=left
|fontcolor1=black
|fontcolor2=black
|background2=#0011FF
|percent=yes
|percentdec=2}}
</noinclude>

Latest revision as of 06:48, 8 July 2018