Actions

Template

Difference between revisions of "Percent"

From NEC Retro

(Created page with "<includeonly>{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{{min|}}}|{{{max|}}}|1|{{#vardefine:min|{{{min|0}}}}}{{#vardefine:max|{{{max|100}}}}}{{#vardefine:value|{{{value|0}}}}}{{#expr:({{#var:value}}-{{#var:min}})/({{#var:max}}-{{#var:min}})}}}}</includeonly><noinclude>
  
 
I don't know what to call this. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 04:23, 24 February 2022 (EST)
 
I don't know what to call this. -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 04:23, 24 February 2022 (EST)
  
<pre>{{ColourPercentBG
+
<pre>{{Percent
 
|min=10
 
|min=10
 
|max=20
 
|max=20
Line 9: Line 9:
 
}}</pre>
 
}}</pre>
  
{{ColourPercentBG
+
{{Percent
 
|min=10
 
|min=10
 
|max=20
 
|max=20

Latest revision as of 07:02, 24 February 2022


I don't know what to call this. -Black Squirrel (talk) 04:23, 24 February 2022 (EST)

{{Percent
|min=10
|max=20
|value=15
}}

0.5