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|45%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * 1) +({{PAGESINCAT:Human Quality Articles|R}} * 3) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 5))/({{NUMBEROFARTICLES}}))}}) round 1}} out of 5'''</big> current wiki quality rating <small>(estimate)</small></p>
+
<div style="width:{{{width|45%}}};"><p><big>'''{{#expr:({{#expr: ((({{PAGESINCAT:Elven Quality Articles|R}} * 1) +({{PAGESINCAT:Human Quality Articles|R}} * 3) + ({{PAGESINCAT:Dwarven Quality Articles|R}} * 5))/({{NUMBEROFARTICLES}}))}}) round 2}} out of 5'''</big> current 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}}%; height:{{{height|8}}}px; background:#db8; float:left; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;">&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}}%; height:{{{height|8}}}px; background:#49f; float:left;">&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}}%; height:{{{height|8}}}px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px;">&nbsp;</span></p></div></center>
 
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}}%; height:{{{height|8}}}px; background:#db8; float:left; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;">&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}}%; height:{{{height|8}}}px; background:#49f; float:left;">&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}}%; height:{{{height|8}}}px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px;">&nbsp;</span></p></div></center>

Revision as of 00:55, 25 April 2010

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

<span style="width:Division by zero.%; height:8px; background:#db8; float:left; -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;"> <span style="width:Division by zero.%; height:8px; background:#49f; float:left;"> <span style="width:Division by zero.%; height:8px; background:#bd8; float:right; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px;">