v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Main page progress bar"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<center>
 
<center>
<div style="width:{{{width|75%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * 1) +({{PAGESINCAT:Human Quality Articles|R}} * 50) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 100))/(({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})))}}) round 0}} out of 100'''</big> overall wiki quality rating <small>(estimate)</small></p>
+
<div style="width:{{{width|95%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * 0) +({{PAGESINCAT:Human Quality Articles|R}} * 50) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 100))/(({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})))}}) round 0}} out of 100'''</big> overall wiki quality rating <small>(estimate)</small></p>
 
<p style="-moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px;-moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px;
 
<p style="-moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px;-moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px;
 
border:1px solid #bbb; padding:2px; overflow:hidden;"><span style="width:{{#expr: ({{PAGESINCAT:Dwarven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;">&nbsp;</span><span style="background:#bd8"><span style="width:{{#expr: ({{PAGESINCAT:Human Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background:#49f;
 
border:1px solid #bbb; padding:2px; overflow:hidden;"><span style="width:{{#expr: ({{PAGESINCAT:Dwarven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;">&nbsp;</span><span style="background:#bd8"><span style="width:{{#expr: ({{PAGESINCAT:Human Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background:#49f;
Line 7: Line 7:
 
     left bottom,
 
     left bottom,
 
     right bottom,
 
     right bottom,
     color-stop(0, #ff8),
+
     color-stop(0, #49f),
    color-stop(.75, #eea),
 
 
     color-stop(1, #bd8)
 
     color-stop(1, #bd8)
 
);float:right;padding:0; margin:0;">&nbsp;</span><span style="width:{{#expr: ({{PAGESINCAT:Elven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background: #db8;
 
);float:right;padding:0; margin:0;">&nbsp;</span><span style="width:{{#expr: ({{PAGESINCAT:Elven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}%; height:{{{height|16}}}px; background: #db8;
Line 15: Line 14:
 
     left bottom,
 
     left bottom,
 
     right bottom,
 
     right bottom,
    color-stop(0, #a33),
 
 
     color-stop(.25, #db8),
 
     color-stop(.25, #db8),
     color-stop(1, #ff8)
+
    color-stop(.5, #ff8),
 +
    color-stop(.75, #db8),
 +
     color-stop(1, #49f)
 
);
 
);
 
  float:right; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;padding:0; margin:0;">&nbsp;</span></span></p></div></center>
 
  float:right; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;padding:0; margin:0;">&nbsp;</span></span></p></div></center>
 
<noinclude>
 
<noinclude>
{{#expr: ({{PAGESINCAT:Elven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Stub rated articles ({{PAGESINCAT:Elven Quality Articles|R}})<br />
+
{{#expr: ({{PAGESINCAT:Elven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Stub article percentage<br />
{{#expr: ({{PAGESINCAT:Human Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Fine rated articles ({{PAGESINCAT:Human Quality Articles|R}})<br />
+
{{#expr: ({{PAGESINCAT:Human Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Fine article percentage<br />
{{#expr: ({{PAGESINCAT:Dwarven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Exceptional rated articles ({{PAGESINCAT:Dwarven Quality Articles|R}})<br />
+
{{#expr: ({{PAGESINCAT:Dwarven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Exceptional article percentage<br />
 
{{#expr: (({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}}))}} Total rated articles
 
{{#expr: (({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}}))}} Total rated articles
 
</noinclude>
 
</noinclude>

Revision as of 10:50, 25 April 2010

Expression error: Unexpected < operator. out of 100 overall wiki quality rating (estimate)

<span style="width:Division by zero.%; height:16px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;"> <span style="width:Division by zero.%; height:16px; background:#49f; background:-webkit-gradient( linear, left bottom, right bottom, color-stop(0, #49f), color-stop(1, #bd8) );float:right;padding:0; margin:0;"> <span style="width:Division by zero.%; height:16px; background: #db8; background:-webkit-gradient( linear, left bottom, right bottom, color-stop(.25, #db8), color-stop(.5, #ff8), color-stop(.75, #db8), color-stop(1, #49f) ); float:right; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;padding:0; margin:0;"> 

Division by zero.% Stub article percentage
Division by zero.% Fine article percentage
Division by zero.% Exceptional article percentage
0 Total rated articles