Difference between revisions of "User:Victor Bearwolf/Snail Lnk"

From Game Logs
Jump to: navigation, search
(Look, behind you!)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#vardefine:x1|{{#explode:{{#var:snaildata}}|/|{{#expr:({{{1}}}-1)*2}}}}}}
+
{{#vardefine:x1|{{#explode:{{#var:snaildata}}|\|{{#expr:({{{1}}}-1)*2}}}}}}
{{#vardefine:y1|{{#explode:{{#var:snaildata}}|/|{{#expr:({{{1}}}-1)*2+1}}}}}}
+
{{#vardefine:y1|{{#explode:{{#var:snaildata}}|\|{{#expr:({{{1}}}-1)*2+1}}}}}}
{{#vardefine:x2|{{#explode:{{#var:snaildata}}|/|{{#expr:({{{2}}}-1)*2}}}}}}
+
{{#vardefine:x2|{{#explode:{{#var:snaildata}}|\|{{#expr:({{{2}}}-1)*2}}}}}}
{{#vardefine:y2|{{#explode:{{#var:snaildata}}|/|{{#expr:({{{2}}}-1)*2+1}}}}}}
+
{{#vardefine:y2|{{#explode:{{#var:snaildata}}|\|{{#expr:({{{2}}}-1)*2+1}}}}}}
 
<div style="
 
<div style="
 
   position:absolute;
 
   position:absolute;
 
   left:{{#ifexpr:{{#var:x1}} < {{#var:x2}}|{{#var:x1}}|{{#var:x2}}}}%;
 
   left:{{#ifexpr:{{#var:x1}} < {{#var:x2}}|{{#var:x1}}|{{#var:x2}}}}%;
 
   top:{{#ifexpr:{{#var:y1}} < {{#var:y2}}|{{#var:y1}}|{{#var:y2}}}}%;
 
   top:{{#ifexpr:{{#var:y1}} < {{#var:y2}}|{{#var:y1}}|{{#var:y2}}}}%;
   width:{{#ifexpr:{{#var:x1}} < {{#var:x2}}|{{#expr:{{#var:x2}} - {{#var:x1}}}}|{{#expr:{{#var:x1}} - {{#var:x2}}}}}}%;
+
   width:{{#ifexpr:{{#var:x1}} = {{#var:x2}}|2px|{{#ifexpr:{{#var:x1}} < {{#var:x2}}|{{#expr:{{#var:x2}} - {{#var:x1}}}}|{{#expr:{{#var:x1}} - {{#var:x2}}}}}}%}};
   height:{{#ifexpr:{{#var:y1}} < {{#var:y2}}|{{#expr:{{#var:y2}} - {{#var:y1}}}}|{{#expr:{{#var:y1}} - {{#var:y2}}}}}}%;
+
   height:{{#ifexpr:{{#var:y1}} = {{#var:y2}}|2px|{{#ifexpr:{{#var:y1}} < {{#var:y2}}|{{#expr:{{#var:y2}} - {{#var:y1}}}}|{{#expr:{{#var:y1}} - {{#var:y2}}}}}}%}};
   background:linear-gradient(
+
   background:{{#ifexpr:({{#var:x1}} = {{#var:x2}}) or ({{#var:y1}} = {{#var:y2}})|{{{color|red}}}|linear-gradient(
 
       to {{#ifexpr:{{#var:y1}}<{{#var:y2}}|top|bottom}} {{#ifexpr:{{#var:x1}}<{{#var:x2}}|right|left}},
 
       to {{#ifexpr:{{#var:y1}}<{{#var:y2}}|top|bottom}} {{#ifexpr:{{#var:x1}}<{{#var:x2}}|right|left}},
 
       transparent calc(50% - 2px),
 
       transparent calc(50% - 2px),
 
       {{{color|red}}} 50%,
 
       {{{color|red}}} 50%,
       transparent calc(50% + 2px));
+
       transparent calc(50% + 2px))}};
 
"></div>
 
"></div>
 
</includeonly><noinclude><div style="position:relative; width:100%; height:500px; background:#aaaaaa;">
 
</includeonly><noinclude><div style="position:relative; width:100%; height:500px; background:#aaaaaa;">
 
{{User:Victor_Bearwolf/Snail_Obj|x=50|y=15}}
 
{{User:Victor_Bearwolf/Snail_Obj|x=50|y=15}}
 +
{{User:Victor_Bearwolf/Snail_Obj|x=50|y=55}}
 
{{User:Victor_Bearwolf/Snail_Obj|x=35|y=55}}
 
{{User:Victor_Bearwolf/Snail_Obj|x=35|y=55}}
 
{{User:Victor_Bearwolf/Snail_Obj|x=75|y=85}}
 
{{User:Victor_Bearwolf/Snail_Obj|x=75|y=85}}
 
{{User:Victor_Bearwolf/Snail_Lnk|1|2}}
 
{{User:Victor_Bearwolf/Snail_Lnk|1|2}}
 +
{{User:Victor_Bearwolf/Snail_Lnk|2|3}}
 
{{User:Victor_Bearwolf/Snail_Lnk|1|3|color=green}}
 
{{User:Victor_Bearwolf/Snail_Lnk|1|3|color=green}}
{{User:Victor_Bearwolf/Snail_Lnk|3|2}}
+
{{User:Victor_Bearwolf/Snail_Lnk|2|4|color=blue}}
 
</div></noinclude>
 
</div></noinclude>

Latest revision as of 11:12, 20 October 2020