Difference between revisions of "Module:Language/data/ISO 639-2/make/doc"
< Module:Language | data | ISO 639-2 | make
Jump to navigation
Jump to search
blackwiki>Gonnym (added category) |
m (5 revisions imported) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Lua|Module:No globals}} | ||
| + | |||
Reads a local copy of data from the table at [https://www.loc.gov/standards/iso639-2/php/English_list.php 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: <code>ISO_synonym_extract()</code> and <code>ISO_2_name_extract()</code>. | Reads a local copy of data from the table at [https://www.loc.gov/standards/iso639-2/php/English_list.php 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: <code>ISO_synonym_extract()</code> and <code>ISO_2_name_extract()</code>. | ||
| Line 6: | Line 8: | ||
#:for use in [[Module:Lang/ISO 639 synonyms]]: | #:for use in [[Module:Lang/ISO 639 synonyms]]: | ||
#:*<code><nowiki>{{#invoke:Language/data/ISO 639-2/make|ISO_synonym_extract|file-date=YYYY-MM-DD</nowiki></code> | #:*<code><nowiki>{{#invoke:Language/data/ISO 639-2/make|ISO_synonym_extract|file-date=YYYY-MM-DD</nowiki></code> | ||
| − | #:for use in [[Module:Language/data/ISO 639-2]]: | + | #:for use in [[Module:Language/data/ISO 639-2]] (-2T only) and [[Module:Language/data/ISO 639-2B]]: |
| − | #:*<code><nowiki>{{#invoke:Language/data/ISO 639-2/make|ISO_2_name_extract|file-date=YYYY-MM-DD</nowiki></code> | + | #:*<code><nowiki>{{#invoke:Language/data/ISO 639-2/make|ISO_2_name_extract|file-date=YYYY-MM-DD</nowiki></code> – creates separate tables for 639-2T and for 639-2B |
#go to the current [https://www.loc.gov/standards/iso639-2/php/English_list.php 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 <code><nowiki>{{#invoke:}}</nowiki></code>. | #go to the current [https://www.loc.gov/standards/iso639-2/php/English_list.php 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 <code><nowiki>{{#invoke:}}</nowiki></code>. | ||
#click Show preview | #click Show preview | ||
Latest revision as of 05:54, 27 September 2020
| 30px | This module depends on the following other modules: |
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:
- 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 (-2T only) and Module:Language/data/ISO 639-2B:
{{#invoke:Language/data/ISO 639-2/make|ISO_2_name_extract|file-date=YYYY-MM-DD– creates separate tables for 639-2T and for 639-2B
- for use in Module:Lang/ISO 639 synonyms:
- 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:}}. - click Show preview
- wait
- get result