Difference between revisions of "Module:Language/data/ISO 639-2/make/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
(create;)
 
blackwiki>Gonnym
(added category)
Line 12: Line 12:
 
#wait
 
#wait
 
#get result
 
#get result
 +
 +
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Language-related modules]]
 +
}}</includeonly>

Revision as of 06:18, 22 January 2020

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: ISO_synonym_extract() and ISO_2_name_extract().

Usage

To use this tool:

  1. open a blank sandbox page and paste either or both of these {{#invoke:}}s into it at the top:
    for use in Module:Lang/ISO 639 synonyms:
    • {{#invoke:Language/data/ISO 639-2/make|ISO_synonym_extract|file-date=YYYY-MM-DD
    for use in Module:Language/data/ISO 639-2:
    • {{#invoke:Language/data/ISO 639-2/make|ISO_2_name_extract|file-date=YYYY-MM-DD
  2. 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 {{#invoke:}}.
  3. click Show preview
  4. wait
  5. get result