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
(use new background color from template:gamedata)
 
(115 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<center>
+
<center style="padding:none; margin:none;">
<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|100%}}}; padding:none; margin:none;">
<p style="-moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px;-moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px;
+
<div style=" border: 1px solid {{{border|#ac7}}}; padding:1px; overflow:hidden; background:{{{backbg|#F9F9F9}}}; position:relative; height:{{{height|18}}}px;border-top-left-radius:4px; -moz-border-radius-topleft:4px; -webkit-border-top-left-radius:4px; border-bottom-right-radius:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-right-radius:4px;">
border-top:1px solid #eee; padding:0px; overflow:hidden; background:#fff"><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; border-top:1px solid #bd8; background:#bd8; float:right; -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; padding:0; margin:0;">&nbsp;</span><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|16}}}px;  
+
<div style="width:{{DF:Quality/rating|{{#switch:{{{1|{{DF:Current}}}}}|DF2012=v0.34|DF2010=v0.31|#default={{{1|{{DF:Current}}}}}}}}}%; height:100%; border-right: 1px solid {{{border|#ac7}}}; background:{{{barbg|{{{bg|#cce6b3}}}}}}; float:left; padding:0; margin:0; position:absolute; top: 0px; left: 0px;"></div>
background:-webkit-gradient(
+
<span style="height:100%; padding:0; margin:0; position:absolute; top:0px; left: 10px; font-size:12px; line-height:18px;   text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.75);"><small>[[DF:Quality|'''{{DF:Quality/rating|{{#switch:{{{1|{{DF:Current}}}}}|DF2010=v0.31|#default={{{1|{{DF:Current}}}}}}}}} out of 100 ''' quality rating for the {{{1|{{DF:Current}}}}} namespace (approximate)]]</small></span>
    linear,
+
</div></div></center><noinclude>
    left bottom,
+
{{DF:Quality/percent|{{DF:Current}}|Tattered}}% Tattered articles ({{PAGESINCAT:{{{1|{{DF:Current}}}}}:Tattered Quality Articles|R}})<br />
    right bottom,
+
{{DF:Quality/percent|{{DF:Current}}|Fine}}% Fine articles ({{PAGESINCAT:{{{1|{{DF:Current}}}}}:Fine Quality Articles|R}})<br />
    color-stop(0, #49f),
+
{{DF:Quality/percent|{{DF:Current}}|Superior}}% Superior articles ({{PAGESINCAT:{{{1|{{DF:Current}}}}}:Superior Quality Articles|R}})<br />
    color-stop(1, #bd8)
+
{{DF:Quality/percent|{{DF:Current}}|Exceptional}}% Exceptional articles ({{PAGESINCAT:{{{1|{{DF:Current}}}}}:Exceptional Quality Articles|R}})<br />
);border-top:1px solid #49f; 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;
+
{{DF:Quality/percent|{{DF:Current}}|Masterwork}}% Masterwork articles ({{PAGESINCAT:{{{1|{{DF:Current}}}}}:Masterwork Quality Articles|R}})<br />
background:-webkit-gradient(
+
{{NUMBEROFARTICLES|{{DF:Current}}}} Total rated articles
    linear,
+
 
    left bottom,
 
    right bottom,
 
    color-stop(0, #db8),
 
    color-stop(1, #49f)
 
);border-top:1px solid #db8;
 
float:left; -moz-border-radius-topleft: 6px; -webkit-border-top-left-radius: 6px;padding:0; margin:0;">&nbsp;</span></span></p></div></center>
 
<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:Human 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:Dwarven Quality Articles|R}}/({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}})) * 100 round 1}}% Masterwork article percentage<br />
 
{{#expr: (({{PAGESINCAT:Elven Quality Articles|R}} + {{PAGESINCAT:Human Quality Articles|R}} + {{PAGESINCAT:Dwarven Quality Articles|R}}))}} Total rated articles
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:33, 28 June 2022

<div style="width:Division by zero.%; height:100%; border-right: 1px solid #ac7; background:#cce6b3; float:left; padding:0; margin:0; position:absolute; top: 0px; left: 0px;">

Division by zero. out of 100 quality rating for the Main namespace (approximate)

Division by zero.% Tattered articles (0)
Division by zero.% Fine articles (0)
Division by zero.% Superior articles (0)
Division by zero.% Exceptional articles (0)
Division by zero.% Masterwork articles (0)
0 Total rated articles