Module:IPAc-en/data
- Afrikaans
- Anarâškielâ
- अंगिका
- Аԥсшәа
- Արեւմտահայերէն
- Azərbaycanca
- تۆرکجه
- Basa Bali
- বাংলা
- 閩南語 / Bân-lâm-gí
- भोजपुरी
- Bikol Central
- Bosanski
- Cebuano
- Cymraeg
- فارسی
- Gĩkũyũ
- ગુજરાતી
- 한국어
- Hausa
- Hrvatski
- Ilokano
- Íslenska
- Jawa
- Kurdî
- Ladin
- मैथिली
- മലയാളം
- Māori
- मराठी
- مصرى
- ဘာသာမန်
- Bahasa Melayu
- Монгол
- မြန်မာဘာသာ
- 日本語
- ଓଡ଼ିଆ
- Oʻzbekcha / ўзбекча
- ਪੰਜਾਬੀ
- ပအိုဝ်ႏဘာႏသာႏ
- Português
- Qaraqalpaqsha
- Scots
- Simple English
- Slovenščina
- کوردی
- Српски / srpski
- Srpskohrvatski / српскохрватски
- Sunda
- தமிழ்
- တႆး
- ไทย
- Türkçe
- Tiếng Việt
- Winaray
- 粵語
- 中文
- Bajau Sama
Appearance
From Wikipedia, the free encyclopedia
This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing.
Page template-protected This module is currently protected from editing.
See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected.
See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected.
Warning This Lua module is used on approximately 54,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them.
[画像:Edit-copy green with red question mark] This module's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help add, expand, or improve it.
The above documentation is transcluded from Module:IPAc-en/data/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Subpages of this module.
Editors can experiment in this module's sandbox (edit | diff) and testcases (create) pages.
Subpages of this module.
-- This module processes data for [[Module:IPAc-en]]. It is intended to be -- loaded with mw.loadData. localPRONUNCIATION_MODULE='Module:IPAc-en/pronunciation' localPHONEME_MODULE='Module:IPAc-en/phonemes' localfunctionmakeData(oldData) localnewData={} fori,oldinipairs(oldData)do localnew={} fork,vinpairs(old)do ifk~='aliases'andk~='code'then new[k]=v end end newData[old.code]=new ifold.aliasesthen fori,aliasinipairs(old.aliases)do newData[alias]=new end end end returnnewData end localfunctionmain() localpronunciation=makeData(require(PRONUNCIATION_MODULE)) localphonemes=makeData(require(PHONEME_MODULE)) -- Check that no pronunciation keys are also contained in the phonemes -- data. This would cause silent, hard-to-debug errors if it went -- unchecked, so make it cause a big red error message instead. foridinpairs(pronunciation)do ifphonemes[id]then error(string.format( "duplicate ID '%s' found in %s and %s", id, PRONUNCIATION_MODULE, PHONEME_MODULE )) end end return{ pronunciation=pronunciation, phonemes=phonemes, } end returnmain()