Difference between revisions of "Template:IP Range/IP2Int"
Jump to navigation
Jump to search
(Made the noinclude section a bit more obvious about what exactly is intended here) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#expr:((((({{#explode:{{{1}}}.0|.|0}} * 256) + {{#explode:{{{1}}}.0.0|.|1}}) * 256) + {{#explode:{{{1}}}.0.0.0|.|2}}) * 256) + {{#explode:{{{1}}}.0.0.0.0|.|3}}}}</includeonly><noinclude> | ||
{{#expr:((((( | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
{| | {| | ||
|- | |- | ||
|{{{{PAGENAME}}|0.0.0.0}} | |<nowiki>0.0.0.0 => </nowiki>{{{{PAGENAME}}|0.0.0.0}} | ||
|- | |- | ||
|{{{{PAGENAME}}|0.0.0. | |<nowiki>0.0.0.255 => </nowiki>{{{{PAGENAME}}|0.0.0.255}} | ||
|- | |- | ||
|{{{{PAGENAME}}|0.0. | |<nowiki>0.0.255.255 => </nowiki>{{{{PAGENAME}}|0.0.255.255}} | ||
|- | |- | ||
|{{{{PAGENAME}}|0. | |<nowiki>0.255.255.255 => </nowiki>{{{{PAGENAME}}|0.255.255.255}} | ||
|- | |- | ||
|{{{{PAGENAME}}| | |<nowiki>255.255.255.255 => </nowiki>{{{{PAGENAME}}|255.255.255.255}} | ||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 11:15, 20 June 2023
0.0.0.0 => 0 |
0.0.0.255 => 255 |
0.0.255.255 => 65535 |
0.255.255.255 => 16777215 |
255.255.255.255 => 4294967295 |