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
m
 
(68 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><p style="{{{advStyle|}}}overflow:hidden; width:{{{stretch|35}}}%;">
{{#switch:{{#expr:floor({{{1}}}/100)}}
+
<span style="width:{{#expr:({{{1|50}}}/{{{2|100}}})*100}}%; height:{{{height|6}}}px; background:{{{3|#ff5}}}; float:left; padding:0; margin:0;">&nbsp;</span>
|100={{Raw Tile|■|0:0:1}}
+
<span style="
|6={{Raw Tile|■■■■■■|0:0:1}}
+
background:
|0=oops
+
-webkit linear, left bottom, right bottom
}}
+
);
{{#ifexpr: 1 > (({{{1}}}/100)-({{#expr:floor({{{1}}}/100)}}*2)) | {{Raw Tile|■|#bb0}} }}
+
float:left;padding:0; margin:0; text-align:right;">&nbsp;</span></p></includeonly><noinclude>{{documentation}}<noinclude>
</includeonly>
 
<noinclude>
 
{{PVm|650}}
 
 
 
 
 
<nowiki><span title="(pet value)">
 
{{Raw Tile|(■ * (floor (pet value / 100)))|0:0:1}}
 
{{Raw Tile|(■ * (1 if pet value / 100 = non-integer, 0 if not))|#bb0}}
 
{{Raw Tile|(■ * (100 - ((floor (pet value / 100)) + (1 if pet value / 100 = non-integer, 0 if not)))|6:0:1}}
 
</span></nowiki>
 
 
 
Pet value = x<br>
 
<nowiki>{{PVm|x}}</nowiki> = cool output
 
 
 
 
 
Ex:<br>
 
 
 
Pet value = 650 -> <nowiki>{{PVm|650}}</nowiki><br>
 
Pet value = 2500 -> <nowiki>{{PVm|2500}}</nowiki><br>
 
Pet value = 10000 -> <nowiki>{{PVm|10000}}</nowiki><br>
 
{| style="margin:1em 1em 1em 0;background:#F9F9F9;border:1px #AAA solid;border-collapse:collapse;" class="wikitable sortable"
 
|- style="background:#F2F2F2;text-align:center;"
 
!scope="col" style="border:1px #AAA solid;padding:0em;"|Name?
 
!scope="col" colspan="2" style="border:1px #AAA solid;padding:0em;"|Pet Value
 
|-
 
|style="border:1px #AAA solid;padding:0.2em;"|{{L|Alligator}}
 
|scope="row" style="border:1px #AAA solid;padding:0.2em;"|650
 
|style="border:1px #AAA solid;padding:0em;font-size: 50%;font-family: 'Century', monospace; background: black;text-align:center;"|<span title="650">{{Raw Tile|■■■■■■|6:0:1}}{{Raw Tile|■|#bb0}}{{Raw Tile|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■|0:0:1}}</span>
 
|-
 
|style="border:1px #AAA solid;padding:0.2em;"|{{L|Giant_desert_scorpion|Giant desert scorpion}}
 
|scope="row" style="border:1px #AAA solid;padding:0.2em;"|2500
 
|style="border:1px #AAA solid;padding:0em;font-size: 50%;font-family: 'Century', monospace; background: black;text-align:center;"|<span title="2500">{{Raw Tile|■■■■■■■■■■■■■■■■■■■■■■■■■|6:0:1}}{{Raw Tile|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■|0:0:1}}</span>
 
|-
 
|style="border:1px #AAA solid;padding:0.2em;"|{{L|Dragon}}
 
|scope="row" style="border:1px #AAA solid;padding:0.2em;"|10000
 
|style="border:1px #AAA solid;padding:0em;font-size: 50%;font-family: 'Century', monospace; background: black;text-align:center;"|<span title="10000">{{Raw Tile|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■|6:0:1}}</span>
 
|}
 
100 tiles, each representing 100 pet value.<br>
 
{{Raw Tile|■|0:0:1}} = not filled<br>
 
{{Raw Tile|■|#bb0}} = not completely filled<br>
 
{{Raw Tile|■|6:0:1}} = completely filled</noinclude>
 

Latest revision as of 14:41, 25 July 2011