Difference between revisions of "Template:IP Range/IP2Int"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>
<includeonly>
{{#vardefine:s|{{#pos:{{{1}}}.0|.}}}}
{{#explode:{{{1}}}.0|.|1}}
{{#vardefine:c|{{#sub:0|{{{1}}}}}}}
{{#vardefine:t|{{#expr:{{#pos:{{{1}}}.0.0|.|{{#var:s}}}}+{{#var:s}}}}}}
{{#var:s}}
{{#var:t}}
{{#var:c}}
<!--{{#vardefine:c|{{#expr:({{#var:c}} * 255) + {{#sub:0|{{#var:s}}|{{#var:t}}}}}}}}
{{#vardefine:t|{{#var:s}}}}
{{#vardefine:s|{{#expr:{{#pos:{{{1}}}.0.0.0|.}}+{{#var:t}}}}}}
{{#vardefine:c|{{#expr:({{#var:c}} * 255) + {{#sub:0|{{#var:s}}|{{#var:t}}}}}}}}
{{#vardefine:t|{{#var:s}}}}
{{#vardefine:s|{{#expr:{{#pos:{{{1}}}.0.0.0.0|.}}+{{#var:t}}}}}}
{{#expr:({{#var:c}} * 255) + {{#sub:0|{{#var:s}}|{{#var:t}}}}}}-->
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Revision as of 12:43, 24 April 2007


0


0


0


256


256