Module:Check ISIN/doc

This module checks ISINs for validity. A valid ISIN is 12 characters long. It starts with two alphabetic characters indicating the issuing country, followed by nine alphanumeric characters that identify the security, and a final numerical check digit.

The module's public functions are is_isin for template use, and _is_isin for direct Lua calls. An additional public function, countries, provides a list of supported country codes for documentation.

Usage
Invoke with:

Parameters:
 * isin: The string to check for ISIN validity.
 * valid: Return value if the input ISIN is valid. Optional. Default is true.
 * invalid: Return value if the input ISIN is invalid. Optional. Default is an empty string (no output).

Parameters may also be supplied by position, in the order shown above.

Examples

 * Using results in:
 * Using results in:
 * Using results in:
 * Using results in:

Country codes
The module recognises the following two character country codes: