Difference between revisions of "RatingsGraph/DrawPoint"

From Sega Retro

(Created page with "<includeonly><div style="display:none;"> {{#vardefine:x|{{#expr:(({{#time:U|{{{score|0}}}}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:gr...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div style="display:none;">
 
<includeonly><div style="display:none;">
 +
{{#vardefine:x|{{#expr:(({{#time:U|{{{date|0}}}}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:graphwidth}}}}}}
 +
{{#vardefine:y|{{#expr:{{#var:graphheight}} - ({{#var:graphheight}} * ({{{score|}}}/100))}}}}
 +
</div>{{#ifeq:{{#len:{{#time:U|{{{date|0}}}}}}}|9|<div title="{{{title|}}} ({{{date|}}})" style="background-color: #F00; position:relative; width: {{#var:pointsize}}px; height:{{#var:pointsize}}px; margin-left:-{{#var:pointsize}}px; margin-top:-{{#var:pointsize}}px; left: {{#var:x}}px; top: {{#var:y}}px;"></div>|}}</includeonly><noinclude>
  
{{#vardefine:x|{{#expr:(({{#time:U|{{{score|0}}}}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:graphwidth}}}}}}
+
{{#vardefine:name|WWF Attitude}}{{#vardefine:format|DC}}{{#vardefine:pointsize|5}}
{{#vardefine:y|{{#expr:{{#var:graphheight}} * ({{{score|}}}/100)}}}}
+
{{RatingsGraph}}
 
+
{{#var:lowestdate}} {{#var:highestdate}}
</div><div title="{{{title|}}}" style="background-color: #F00; position:relative; width: {{#var:pointsize}}px; height:{{#var:pointsize}}px; margin-left:-{{#var:pointsize}}px; margin-top:-{{#var:pointsize}}px; left: {{#var:x}}px; top: -{{#var:y}}px;"></div></includeonly><noinclude>[[Category:Templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 12:13, 3 March 2024
























1999-10-20 2000-01-18