Difference between revisions of "RatingsGraph/DrawPoint"

From Sega Retro

 
(2 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: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:{{#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>
  
aa
+
{{#vardefine:name|WWF Attitude}}{{#vardefine:format|DC}}{{#vardefine:pointsize|5}}
{{#vardefine:name|Daytona USA}}{{#vardefine:format|SAT}}{{#vardefine:pointsize|5}}
+
{{RatingsGraph}}
{{RatingsGraph|startdate=1995-01-01|enddate=1998-01-01}}
+
{{#var:lowestdate}} {{#var:highestdate}}
bbb
 
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:13, 3 March 2024
























1999-10-20 2000-01-18