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 2: Line 2:
 
<div style="width:{{{width|45%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * .5) +({{PAGESINCAT:Human Quality Articles|R}} * 3) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 5))/(({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})))}}) round 2}} out of 5'''</big> overall wiki quality rating <small>(estimate)</small></p>
 
<div style="width:{{{width|45%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * .5) +({{PAGESINCAT:Human Quality Articles|R}} * 3) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 5))/(({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})))}}) round 2}} out of 5'''</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 #888; padding:1px; overflow:hidden;"><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|8}}}px; background:#db8; float:left; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;padding:0; margin:0;">&nbsp;</span><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|8}}}px; background:#49f; float:left;padding:0; margin:0;">&nbsp;</span><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|8}}}px; background:#bd8; float:left; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;">&nbsp;</span></p></div></center>
+
border:1px solid #eee; padding:0px; overflow:hidden; background:#ea7"><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|8}}}px;
 +
background:-webkit-gradient(
 +
    linear,
 +
    left bottom,
 +
    right bottom,
 +
    color-stop(0.5, #db8),
 +
    color-stop(1, #49f)
 +
);
 +
float:left; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;padding:0; margin:0;">&nbsp;</span><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|8}}}px;  
 +
background:-webkit-gradient(
 +
    linear,
 +
    left bottom,
 +
    right bottom,
 +
    color-stop(.5, #49f),
 +
    color-stop(1, #bd8)
 +
);
 +
; float:left;padding:0; margin:0;">&nbsp;</span><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|8}}}px; background:#bd8; float:left; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;">&nbsp;</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}}% Fine article percentage<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}}% Fine article percentage<br />

Revision as of 09:08, 25 April 2010

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

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

float
left;padding:0; margin:0;"> <span style="width:Division by zero.%; height:8px; background:#bd8; float:left; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; padding:0; margin:0;"> 

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