Module:Language/data/ISO 639-2/make/doc

Reads a local copy of data from the table at Codes for the Representation of Names of Languages, extracts the ISO 639-2 codes, names, and ISO 639-1 synonyms. There are two functions in the tool: &#x3c;code&#x3e;ISO_synonym_extract&#x3c;/code&#x3e; and &#x3c;code&#x3e;ISO_2_name_extract&#x3c;/code&#x3e;.

Usage
To use this tool:
 * 1) open a blank sandbox page and paste either or both of these &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;s into it at the top:
 * for use in Module:Lang/ISO 639 synonyms:
 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;{{#invoke:Language/data/ISO 639-2/make|ISO_synonym_extract|file-date=YYYY-MM-DD&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;
 * for use in Module:Language/data/ISO 639-2 (-2T only) and Module:Language/data/ISO 639-2B:
 * &#x3c;code&#x3e;&#x3c;nowiki&#x3e;{{#invoke:Language/data/ISO 639-2/make|ISO_2_name_extract|file-date=YYYY-MM-DD&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e; – creates separate tables for 639-2T and for 639-2B
 * 1) go to the current Codes for the Representation of Names of Languages. Copy the content of the table on that page and paste it into the sandbox page below the &#x3c;code&#x3e;&#x3c;nowiki&#x3e;&#x3c;/nowiki&#x3e;&#x3c;/code&#x3e;.
 * 2) click Show preview
 * 3) wait
 * 4) get result

&#x3c;includeonly&#x3e;{{#ifeq:{{SUBPAGENAME}}|sandbox | | &#x3c;!-- Categories below this line, please; interwikis at Wikidata --&#x3e;

}}&#x3c;/includeonly&#x3e;