Editing
Module:Sensitive IP addresses/API/doc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Sensitive IPs object === If the query was successful, the <code>sensitiveips</code> child object will be present and can contain the following objects and arrays: * <code>matches</code> - an array of [[#IP address objects|IP address objects]] or [[#IP range objects|IP range objects]], where the corresponding IP address or IP range string was specified in the <code>test</code> query option, and where Wikipedia regards that IP address or IP range as being sensitive. If no IPs or ranges were tested for, or if no matches were found, this array will not be present in the results. * <code>matched-ranges</code> - an object with [[CIDR]] IP range strings as keys, and matched-range objects as values, where the IP range matches one of the IP addresses or IP ranges tested for with the <code>test</code> query option. If no IPs or ranges were tested for, or if no matches were found, this object will not be present. * <code>entities</code> - an object with entity IDs as keys, and [[#Entity objects|entity objects]] as values. An entity is a country or organization which has IP addresses that Wikipedia considers sensitive. Entity IDs are defined in [[Module:Sensitive IP addresses/list]]; for example, <code>ushr</code> is the ID for the [[United States House of Representatives]]. Entities will be included in this object if an IP range belonging to them is matched by one of the IP addresses or IP ranges tested for with the <code>test</code> query option, or if their entity ID is specified in the <code>entities</code> query option. * <code>entity-ids</code> - an array of entity ID strings, in the order they are defined in [[Module:Sensitive IP addresses/list]]. The entity IDs in this array correspond one-to-one with the entity ID keys of the <code>entities</code> result object. This array can be useful for outputting the IDs in the same order that they were defined in the list.
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information