Difference between revisions of "Template:IP Range"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
|{{{{PAGENAME}}||ip=255.255.255.255|subnet=255.255.255.252}} | |{{{{PAGENAME}}||ip=255.255.255.255|subnet=255.255.255.252}} | ||
|} | |} | ||
</noinclude><includeonly>{{#if:{{#vardefine:ip-npl|{{#switch:{{{npl|}}} | </noinclude><includeonly>{{#if: | ||
{{#vardefine:ip-npl|{{#switch:{{{npl|}}} | |||
|32=1|31=2|30=4|29=8 | |32=1|31=2|30=4|29=8 | ||
|28=16|27=32|26=64|25=128 | |28=16|27=32|26=64|25=128 | ||
Line 22: | Line 23: | ||
|0=4294967296|{{#expr:4294967296 - {{IP_Range/IP2Int|{{{subnet|255.255.255.255}}}}}}} | |0=4294967296|{{#expr:4294967296 - {{IP_Range/IP2Int|{{{subnet|255.255.255.255}}}}}}} | ||
}}}} | }}}} | ||
{{#vardefine:ip-count|{{#var:ip-count}}+{{#var:ip-npl}}}} | |||
{{#vardefine:ip|{{IP_Range/IP2Int|{{{ip|}}}}}}} | {{#vardefine:ip|{{IP_Range/IP2Int|{{{ip|}}}}}}} | ||
{{#vardefine:ip-mod|{{mod|{{#var:ip}}|{{#var:ip-npl}}}}}} | {{#vardefine:ip-mod|{{mod|{{#var:ip}}|{{#var:ip-npl}}}}}} |
Revision as of 16:17, 24 April 2007
{{IP Range|ip=0.0.0.0|npl=30}} | 0.0.0.0/Expression error: Unrecognized punctuation character "{". |
{{IP Range|ip=255.255.255.255|npl=30}} | 255.255.255.252/Expression error: Unrecognized punctuation character "{". |
{{IP Range|ip=255.255.255.255|subnet=255.255.255.252}} | 255.255.255.252/Expression error: Unrecognized punctuation character "{". |