Difference between revisions of "RatingsGraph/DrawPoint"

From Sega Retro

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:x|{{#expr:(({{#time:U|{{{date|0}}}}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:graphwidth}}}}}}
{{#vardefine:y|{{#expr:{{#var:graphheight}} * ({{{score|}}}/100)}}}}
+
{{#vardefine:y|{{#expr:{{#var:graphheight}} - ({{#var:graphheight}} * ({{{score|}}}/100))}}}}
</div>{{#ifeq:{{#len:{{#var:x}}}}|15|<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>
+
</div>{{#ifeq:{{#len:{{#var:x}}}}|15|<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>
  
 
aa
 
aa
{{#vardefine:name|Daytona USA}}{{#vardefine:format|SAT}}{{#vardefine:pointsize|5}}
+
{{#vardefine:name|WWF Attitude}}{{#vardefine:format|DC}}{{#vardefine:pointsize|5}}
{{RatingsGraph|startdate=1995-01-01|enddate=1998-01-01}}
+
{{RatingsGraph|startdate=1999-10-01|enddate=2000-02-01}}
 
bbb
 
bbb
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 18:00, 1 March 2024


aa























bbb