Module:Sensitive IP addresses/API/doc: Difference between revisions

Content deleted Content added
add another example
add error example
Line 260:
]
}
}
</source>
 
=== Invalid IP error ===
 
Query:
<source lang="lua">
querySensitiveIPs{
test = {'foo'}
}
</source>
 
Result:
<source lang="lua">
{
["error"] = {
["*"] = "See https://en.wikipedia.org/wiki/Module:Sensitive_IP_addresses/API for API usage",
["code"] = "sipa-invalid-test-string",
["info"] = "test string #1 'foo' was not a valid IP address or CIDR string"
}
}
</source>