Jump to content
Wikipedia The Free Encyclopedia

Module:Wikt-lang/comparison

From Wikipedia, the free encyclopedia
Module documentation[view] [edit] [history] [purge]

Comparison of codes with name difference

[edit ]
Language code Wiktionary name English Wikipedia name
aaq Penobscot Eastern Abnaki
abe Abenaki Western Abnaki
ajp South Levantine Arabic South Levantine Arabic
alg-pro Proto-Algonquian Error: unrecognized language tag: alg-pro
apc North Levantine Arabic Levantine Arabic
arb Modern Standard Arabic Standard Arabic
cel-x-bryproto Proto-Brythonic Error: unrecognized private tag: bryproto
cu Old Church Slavonic Church Slavonic
egy Egyptian Ancient Egyptian
frp Franco-Provençal Arpitan
gmw-x-proto Proto-West Germanic Proto-West Germanic
grk-x-proto Proto-Hellenic Proto-Greek
ine-x-bsproto Proto-Balto-Slavic Error: unrecognized private tag: bsproto
moe Cree Innu
mul Translingual multiple
nds-de German Low German Low German
non-x-proto Proto-Norse Error: unrecognized private tag: proto
poz-x-polproto Proto-Nuclear Polynesian Error: unrecognized private tag: polproto
rw Rwanda-Rundi Kinyarwanda
tts Isan Northeastern Thai
xlu Luwian Cuneiform Luwian
zle-x-ort Old Ruthenian Error: unrecognized private tag: ort
The above documentation is transcluded from Module:Wikt-lang/comparison/doc. (edit | history)
Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages.
Subpages of this module.

 require('strict')
 localp={}

 localfunctionget_test_patterns(main)
 localdata=require('Module:Wikt-lang/data/sandbox')
 locallanguage_codes={}

 ifmainthen
 forcode,valuesinpairs(data["languages"])do
 table.insert(language_codes,{code,values.Wiktionary_name})
 end
 end

 localfunctioncomp(a,b)
 returna[1]<b[1]
 end

 table.sort(language_codes,comp)
 returnlanguage_codes
 end

 functionp.main(frame)
 localwiktionary_test_patterns=get_test_patterns(true)
 localname_from_tag=require('Module:Lang')._name_from_tag

 localwikitable={}
 localheader='{|class="wikitable"\n|+\n! Language code\n! Wiktionary name\n! English Wikipedia name\n|-\n'
 table.insert(wikitable,header)
 localrow='! scope="row" | %s\n | %s\n | %s\n|-\n'
 fori=1,#wiktionary_test_patternsdo
 localcode=wiktionary_test_patterns[i][1]
 localwiktionary_name=wiktionary_test_patterns[i][2]
 localen_wiki_name=name_from_tag({code})
 ifwiktionary_namethen
 table.insert(wikitable,string.format(row,code,wiktionary_name,en_wiki_name))
 end
 end
 table.insert(wikitable,"|}")
 returntable.concat(wikitable)
 end

 returnp

AltStyle によって変換されたページ (->オリジナル) /