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"
Jump to navigation
Jump to search
m (let's try this instead.) |
m |
||
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;"> </span> | <span style="width:{{#expr:({{{1|50}}}/{{{2|100}}})*100}}%; height:{{{height|6}}}px; background:{{{3|#ff5}}}; float:left; padding:0; margin:0;"> </span> | ||
− | <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}}}; | + | <span style="{{#ifexpr: ({{{1|50}}}/({{{2|100}}}/10)) <> (trunc({{{1|50}}}/({{{2|100}}}/10)))|width:({{{1|50}}}/({{{2|100}}}/10)) - (trunc({{{1|50}}}/({{{2|100}}}/10)))%; |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;"> </span></p></includeonly><noinclude>{{documentation}}<noinclude> | float:left;padding:0; margin:0; text-align:right;"> </span></p></includeonly><noinclude>{{documentation}}<noinclude> |
Revision as of 00:39, 7 May 2011
(view - edit - history - purge) Documentation
Usage
Input value -> a (default 50)
Max value -> b (default 100)
Filled square color -> y (default #ff5)
Half-filled square color -> z (default #dd0)
Other parameters include advStyle (default empty), height (default 6) and stretch (default 35).
{{PVm|a|b|y|z}}
Input | Output (On black background) |
---|---|
{{PVm}} |
|
{{PVm|25|100|#fff|#ddd|height=12}} |
|
{{PVm}} {{PVm|3550|10000|advStyle=height:6px;}} {{PVm|1550|10000|advStyle=height:12px;}} |
|
{{PVm|45|100|#000|#f00|height=15}} |
|