Difference between revisions of "RatingsGraph/DrawGridlines"

From Sega Retro

(Created page with "<includeonly><div style="display:none;>{{#vardefine:startyear|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|0|4}}}} {{#vardefine:endyear|{{#sub:{{{startdate|{{#var:lowestdate}}}}...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div style="display:none;>{{#vardefine:startyear|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|0|4}}}}
+
<includeonly><div style="display:none;>{{#vardefine:startyear|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|0|4}}}}{{
{{#vardefine:endyear|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|0|4}}}}{{#vardefine:i|{{#var:startyear}}}}</div>
+
#vardefine:endyear|{{#sub:{{{enddate|{{#var:highestdate}}}}}|0|4}}}}{{
{{#while:
+
#vardefine:startmonth|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|5|2}}}}{{
| {{#ifexpr:{{#var:i}} <= {{#expr:{{#var:endyear}}+1}}|true}}
+
#vardefine:endmonth|{{#sub:{{{enddate|{{#var:highestdate}}}}}|5|2}}}}{{
| {{#vardefine:j|1}}{{#while:
+
#vardefine:i|{{#var:startyear}}}}</div><div style="display:block; height:{{#var:pointsize}}px;">{{#while:
   | {{#ifexpr:{{#var:j}} <= 12|true}}
+
| {{#ifexpr:{{#var:i}} <= {{#var:endyear}}|true}}
 +
| {{#ifeq:{{#var:i}}|{{#var:startyear}}|{{#vardefine:j|{{#var:startmonth}}}}|{{#vardefine:j|1}}}}{{#while:
 +
   | {{#ifexpr:{{#var:j}} <= {{#ifeq:{{#var:i}}|{{#var:endyear}}|{{#var:endmonth}}|12}}|true}}
 
   | {{#vardefine:abcdef|{{#time:U|{{#var:i}}-{{#var:j}}-01}}}}{{
 
   | {{#vardefine:abcdef|{{#time:U|{{#var:i}}-{{#var:j}}-01}}}}{{
 
       #vardefine:linex|{{#expr:(({{#var:abcdef}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:graphwidth}}}}}}{{#ifexpr:{{#var:abcdef}} >= {{#time:U|{{#var:lowestdate}}}}|{{DrawLine
 
       #vardefine:linex|{{#expr:(({{#var:abcdef}}-{{#var:starttime}})/{{#ifeq:{{#var:totaltime}}|0|1|{{#var:totaltime}}}})*{{#var:graphwidth}}}}}}{{#ifexpr:{{#var:abcdef}} >= {{#time:U|{{#var:lowestdate}}}}|{{DrawLine
Line 14: Line 16:
 
     }}}}{{incvar|j}}
 
     }}}}{{incvar|j}}
 
}}{{incvar|i}}
 
}}{{incvar|i}}
}}</includeonly><noinclude>
+
}}</div></includeonly><noinclude>
{{#vardefine:name|Daytona USA}}{{#vardefine:format|SAT}}{{#vardefine:pointsize|5}}
+
{{#vardefine:name|WWF Attitude}}{{#vardefine:format|DC}}{{#vardefine:pointsize|5}}
 
{{RatingsGraph}}
 
{{RatingsGraph}}
{{#var:lowestdate}}  
+
{{#var:lowestdate}}  {{#var:highestdate}}
 +
 
 +
{{#vardefine:name|Shinobi Legions}}{{#vardefine:format|SAT}}{{#vardefine:pointsize|5}}
 +
{{RatingsGraph}}
 +
{{#var:lowestdate}}  {{#var:highestdate}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 14:30, 6 March 2024
























1999-10-20 2000-01-18













































1995-06-08 1996-06-01