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}}}}...") |
|||
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: | + | #vardefine:endyear|{{#sub:{{{enddate|{{#var:highestdate}}}}}|0|4}}}}{{ |
− | {{#while: | + | #vardefine:startmonth|{{#sub:{{{startdate|{{#var:lowestdate}}}}}|5|2}}}}{{ |
− | | {{#ifexpr:{{#var:i}} <= {{# | + | #vardefine:endmonth|{{#sub:{{{enddate|{{#var:highestdate}}}}}|5|2}}}}{{ |
− | | {{#vardefine:j|1}}{{#while: | + | #vardefine:i|{{#var:startyear}}}}</div>{{#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 15: | Line 17: | ||
}}{{incvar|i}} | }}{{incvar|i}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | {{#vardefine:name| | + | {{#vardefine:name|WWF Attitude}}{{#vardefine:format|DC}}{{#vardefine:pointsize|5}} |
{{RatingsGraph}} | {{RatingsGraph}} | ||
− | {{#var:lowestdate}} | + | {{#var:lowestdate}} {{#var:highestdate}} |
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 14:00, 6 March 2024
1999-10-20 2000-01-18