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:PVm"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (width 0%?)
m (let's try this instead.)
Line 1: Line 1:
 
<includeonly><p style="{{{advStyle|}}}overflow:hidden; width:{{{stretch|35}}}%;">
 
<includeonly><p style="{{{advStyle|}}}overflow:hidden; width:{{{stretch|35}}}%;">
 
<span style="width:{{#expr:({{{1|50}}}/{{{2|100}}})*100}}%; height:{{{height|6}}}px; background:{{{3|#ff5}}}; float:left; padding:0; margin:0;">&nbsp;</span>
 
<span style="width:{{#expr:({{{1|50}}}/{{{2|100}}})*100}}%; height:{{{height|6}}}px; background:{{{3|#ff5}}}; float:left; padding:0; margin:0;">&nbsp;</span>
<span style="{{#ifexpr: 0 > ((trunc({{{1|50}}}/(({{{2|100}}})^0.5))) - ({{{1|50}}}/(({{{2|100}}})^0.5)))|width:1%; |width:0%;}}height:{{{height|6}}}px; background:{{{4|#dd0}}};
+
<span style="{{#ifexpr: ({{{1|50}}}/({{{2|100}}}/10)) <> (trunc({{{1|50}}}/({{{2|100}}}/10)))|width:1%; |width:0%;}}height:{{{height|6}}}px; background:{{{4|#dd0}}};
 
background:-webkit linear, left bottom, right bottom
 
background:-webkit linear, left bottom, right bottom
 
);
 
);
 
  float:left;padding:0; margin:0; text-align:right;">&nbsp;</span></p></includeonly><noinclude>{{documentation}}<noinclude>
 
  float:left;padding:0; margin:0; text-align:right;">&nbsp;</span></p></includeonly><noinclude>{{documentation}}<noinclude>

Revision as of 22:38, 28 April 2011