Difference between revisions of "WCCFHeatmap"
From Sega Retro
(Created page with "<includeonly>{{#vardefine:hmwidth|{{{width|200}}}}}{{#vardefine:tilesize|{{#expr:{{#var:hmwidth}}/6}}}}{{#vardefine:data|{{{2|}}}}} <div style="border:1px solid; width:{{#var:...") |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:hmwidth|{{{width|200}}}}}{{#vardefine:tilesize|{{#expr:{{#var:hmwidth}}/6}}}}{{#vardefine:data|{{{2|}}}}} | + | <includeonly>{{#switch:{{uc:{{{1|}}}}} |
+ | |FW={{#vardefine:colour|255,0,0}} | ||
+ | |MF={{#vardefine:colour|255,100,0}} | ||
+ | |DF={{#vardefine:colour|0,100,0}} | ||
+ | |GK={{#vardefine:colour|0,150,255}} | ||
+ | }} | ||
+ | {{#vardefine:bg0|rgba({{#var:colour}},0)}}{{#vardefine:bg1|rgba({{#var:colour}},0.25)}}{{#vardefine:bg2|rgba({{#var:colour}},0.5)}}{{#vardefine:bg3|rgba({{#var:colour}},0.75)}}{{#vardefine:bg4|rgba({{#var:colour}},1)}} | ||
+ | {{#vardefine:hmwidth|{{{width|200}}}}}{{#vardefine:tilesize|{{#expr:{{#var:hmwidth}}/6}}}}{{#vardefine:data|{{{2|}}}}} | ||
<div style="border:1px solid; width:{{#var:hmwidth}}px; height:{{#expr:{{#var:tilesize}}*9}}px;"> | <div style="border:1px solid; width:{{#var:hmwidth}}px; height:{{#expr:{{#var:tilesize}}*9}}px;"> | ||
{{#vardefine:tiley|9}}{{#vardefine:tilex|6}}{{#vardefine:j|0}} | {{#vardefine:tiley|9}}{{#vardefine:tilex|6}}{{#vardefine:j|0}} | ||
Line 8: | Line 15: | ||
{{#while: | {{#while: | ||
| {{#ifexpr:{{#var:i}} < {{#var:tilex}}|true}} | | {{#ifexpr:{{#var:i}} < {{#var:tilex}}|true}} | ||
− | | <div style="position:relative; top:{{#expr:{{#var:j}}*{{#var:tilesize}}}}px; left:{{#expr:{{#var:i}}*{{#var:tilesize}}}}px; {{#ifexpr:{{#var:i}}<5|border-right:1px dotted;}} {{#ifexpr:{{#var:j}}<8|border-bottom:1px dotted;}} width:{{#var:tilesize}}px; height:{{#var:tilesize}}px; margin-right:-{{#var:tilesize}}px; margin-bottom:-{{#var:tilesize}}px; | + | | <div style="position:relative; top:{{#expr:{{#var:j}}*{{#var:tilesize}}}}px; left:{{#expr:{{#var:i}}*{{#var:tilesize}}}}px; {{#ifexpr:{{#var:i}}<5|border-right:1px dotted;}} {{#ifexpr:{{#var:j}}<8|border-bottom:1px dotted;}} width:{{#var:tilesize}}px; height:{{#var:tilesize}}px; margin-right:-{{#var:tilesize}}px; margin-bottom:-{{#var:tilesize}}px; background-color:{{#var:bg{{#sub:{{{2}}}|{{#expr:({{#var:tilex}}*{{#var:j}})+{{#var:i}}}}|1}}}};"></div>{{incvar|i}} |
}} | }} | ||
{{incvar|j}} | {{incvar|j}} | ||
Line 17: | Line 24: | ||
{{WCCFHeatmap|DF|000000100000310000410000210000410000430000110000000000|width=200}} | {{WCCFHeatmap|DF|000000100000310000410000210000410000430000110000000000|width=200}} | ||
+ | {{WCCFHeatmap|MF|000000001000003130123320002130004440022331001000000000|width=200}} | ||
+ | {{WCCFHeatmap|FW|012211103210234431114210002300001100000000000000000000|width=200}} | ||
+ | {{WCCFHeatmap|GK|000000000000000000000000000000000000000000000000014400|width=200}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 06:18, 22 October 2023
So this is my life