Difference between revisions of "Template:IP Range/IP2Int"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:s|{{#pos:{{{1}}}.0|.}}}}{{#vardefine:c|{{#sub:0|{{#var:s}}}}}}{{#vardefine:t|{{#expr:{{#pos:{{{1}}}.0.0|.}}+{{#var:s}}}}{{#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> | ||
{{#vardefine:s|{{#pos:{{{1}}}.0|.}}}} | |||
{{#vardefine:c|{{#sub:0|{{#var:s}}}}}} | |||
{{#vardefine:t|{{#expr:{{#pos:{{{1}}}.0.0|.}}+{{#var:s}}}}}} | |||
{{#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> | |||
<noinclude> | <noinclude> | ||
{| | {| |
Revision as of 12:35, 24 April 2007
Expression error: Unexpected < operator.
|
Expression error: Unexpected < operator.
|
Expression error: Unexpected < operator.
|
Expression error: Unexpected < operator.
|
Expression error: Unexpected < operator.
|