Changes

MyWikiBiz, Author Your Legacy — Sunday June 30, 2024
Jump to navigationJump to search
Pywikibot 6.4.0
{{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>.

== Usage ==
To use this tool:
#open a blank sandbox page and paste either or both of these <code><nowiki>{{#invoke:}}</nowiki></code>s into it at the top:
#: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>
#: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> – 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>.
#click Show preview
#wait
#get result

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Language-related modules]]
}}</includeonly>

Navigation menu