Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Template:IPnr






العربية
Deutsch
Español
Français
Nederlands
Norsk bokmål
Português
Русский

 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
Wikidata
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


{{{1}}}. {{{2}}}

To display IP addresses such that the full address cannot be captured by the crawler of a search engine. Between the first and second octet of the address, a one pixel wide non braking space is inserted.
Usage
{{IPnr
| <1st octet (w/o dot) >
| <2nd up to including 4th octet (with dots between the octets) >
[|<range (w/o slash)>
[|<link parm>
[|<position parm>
[|<2nd up to including 4th octet of upper range limit (special cases)>]]]]}}
Note: New lines are only shown for readability
Parameters
<link parm>
Determines what clickable links are displayed. The following values apply:
1 - shows the IP as a clickable link to contributions of the IP;
2 - shows link to user page of the IP;
4 - shows link to talk page of the IP;
8 - shows link to current block list, filtered for the IP(/range);
16 - shows link to block log for the IP[/range];
32 - shows link to page to block the IP[/range] for 1 hour (default). Only useful for special applications.
The values may be bitwise OR'ed (similar to many program languages). In other words: may be added to get any combination of links.
<position parm>
If not empty or <>0: positions the strings with links below the IP, otherwise these are following the IP on the same line. Should be used within a block element, such as a table cell, as the links will center align.
Parameters that are not used, may be left empty.
Ranges
There are two types of IP ranges
The latter are frequently found in the allocation of IP-address ranges by for instance a provider to a customers or DHCP allocated addresses for certain purposes, as can be found by querying the WHOIS dataase of a RIR.
An example would be: 123.123.123.0 - 123.123.124.255.
Such a range cannot be written as a single CIDR range, but consists of two CIDR ranges, i.e. 123.123.123.0/24 and 123.123.124.0/24. Please note that this is a very simple example, much more complicated cases do exist in reality.
Examples
  • {{IPnr|123|123.123.123}} gives 123. 123.123.123
  • {{IPnr|123|123.123.0|24}} gives 123. 123.123.0/24
  • {{IPnr|123|123.123.0||||123.124.255}} gives 123. 123.123.0 - 123. 123.124.255
  • {{IPnr|123|123.123.123||7}} gives 123. 123.123.123
  • {{IPnr|123|123.123.123||13}} gives 123. 123.123.123
  • {{IPnr|123|123.123.0|24|24}} gives 123. 123.123.0/24
  • <table align=center><td>{{IPnr|123|123.123.0|24|32|1}}</td></table> gives
    123. 123.123.0/24
    (block)

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:IPnr&oldid=871667934"

Hidden categories: 
Uncategorized pages
All uncategorized pages
 



This page was last edited on 2 December 2018, at 17:48 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki