Modül:Çokdilli ad bilgi kutusu/veri
Modül belgelemesi[oluştur]
--[[--------------------------< L A B E L _ M A P >------------------------------------------------------------
Table to map |showflags= value to the |labeln= parameter value for {{Infobox}}
TODO: convert showflag to a comma delimited list instead of these peculiar codes?
]]
local label_map = {
['bp'] = '[[Bbánlám pìngyīm|Bbánlám Pìngyīm]]',
['bpmf'] = '[[Bopomofo]]',
['gan'] = '[[Gan Chinese|Gan]]',
['gd'] = '[[Guangdong Romanization]]',
['h'] = '[[Guangdong Romanization#Hakka|Hakka]]',
['hsn'] = '[[Xiang Chinese|Xiang]]',
['j'] = '[[Jyutping]]',
['lmz'] = '[[Shanghainese]]<br />[[Long-short (romanization)|Romanization]]',
['p'] = '[[Pinyin]]',
['phfs'] = '[[Pha̍k-fa-sṳ]]',
['poj'] = '[[Hokkien]] [[Pe̍h-ōe-jī|POJ]]',
['psic'] = '[[Sichuanese Mandarin|Sichuanese]] [[Sichuanese Pinyin|Pinyin]]',
['tl'] = '[[Tayvan Romanizasyon Sistemi|Tâi-lô]]',
['toi'] = '[[Taishanese]]',
['tp'] = '[[Tongyong Pinyin]]',
['w'] = '[[Wade-Giles]]',
['wuu'] = '[[Wu Chinese|Wu]]',
['xej'] = '[[Xiao\'erjing]]',
['y'] = '[[Kantonca]] [[Kantoncanın Yale romanizasyonu|Yale]]',
}
--[[--------------------------< T R A N S L _ M A P >----------------------------------------------------------
Table to map |showflags= value to an index into label_map for child infobox |labeln= value and to map |showflags=
vale to the correct parameter for use in child infobox |datan= paramter
Implementation deatils of |showflag= are in dispute see: Template_talk:Infobox_Chinese#Rfc_on_fixing_the_template_showflag
linked conversation is at: Template_talk:Infobox_Chinese/Archive_4#Showflag broken
]]
local transl_map = { -- maps |showflag= value to label from label_map table and data from matching parameter name
['bp'] = {['etiket1'] = 'bp', ['veri1'] = 'bp'},
['bpmf'] = {['etiket1'] = 'bpmf', ['veri1'] = 'bpmf'},
['gan'] = {['etiket1'] = 'gan', ['veri1'] = 'gan'},
['gdp'] = {['etiket1'] = 'gd', ['veri1'] = 'gd', ['etiket2'] = 'p', ['veri2'] = 'p'},
['h'] = {['etiket1'] = 'h', ['veri1'] = 'h'},
['hsn'] = {['etiket1'] = 'hsn', ['veri1'] = 'hsn'},
['j'] = {['etiket1'] = 'j', ['veri1'] = 'j'},
['jp'] = {['etiket1'] = 'j', ['veri1'] = 'j', ['etiket2'] = 'p', ['veri2'] = 'p'},
['jy'] = {['etiket1'] = 'j', ['veri1'] = 'j', ['etiket2'] = 'y', ['veri2'] = 'y'},
['jyp'] = {['etiket1'] = 'j', ['veri1'] = 'j', ['etiket2'] = 'y', ['veri2'] = 'y', ['etiket3'] = 'p', ['veri3'] = 'p'},
['lmz'] = {['etiket1'] = 'lmz', ['veri1'] = 'lmz'},
['p'] = {['etiket1'] = 'p', ['veri1'] = 'p'},
['phfs'] = {['etiket1'] = 'phfs', ['veri1'] = 'phfs'},
['phsn'] = {['etiket1'] = 'p', ['veri1'] = 'p', ['etiket2'] = 'hsn', ['veri2'] = 'hsn'},
['pj'] = {['etiket1'] = 'p', ['veri1'] = 'p', ['etiket2'] = 'j', ['veri2'] = 'j'},
['poj'] = {['etiket1'] = 'poj', ['veri1'] = 'poj'},
['psic'] = {['etiket1'] = 'p', ['veri1'] = 'p', ['etiket2'] = 'sic', ['veri2'] = 'sic'},
['pwuu'] = {['etiket1'] = 'p', ['veri1'] = 'p', ['etiket2'] = 'wuu', ['veri2'] = 'wuu'},
['py'] = {['etiket1'] = 'p', ['veri1'] = 'p', ['etiket2'] = 'y', ['veri2'] = 'y'},
['tl'] = {['etiket1'] = 'tl', ['veri1'] = 'tl'},
['toip'] = {['etiket1'] = 'toi', ['veri1'] = 'toi', ['etiket2'] = 'p', ['veri2'] = 'p'},
['tp'] = {['etiket1'] = 'tp', ['veri1'] = 'tp'},
['wp'] = {['etiket1'] = 'w', ['veri1'] = 'w', ['etiket2'] = 'p', ['veri2'] = 'p'},
['wuu'] = {['etiket1'] = 'wuu', ['veri1'] = 'wuu'},
['y'] = {['etiket1'] = 'y', ['veri1'] = 'y'},
['yj'] = {['etiket1'] = 'y', ['veri1'] = 'y', ['etiket2'] = 'j', ['veri2'] = 'j'},
['xej'] = {
['etiket1'] = 'xej',
['veri1'] = 'xej', -- ???? what to do about this; template calls {{lang|zh-Arab|{{{xej}}}}} on this value
},
['xejp'] = {
['etiket1'] = 'xej',
['veri1'] = 'xej', -- ???? template does not call {{lang|zh-Arab|{{{xej}}}}} on this value; why?
['etiket2'] = 'p',
['veri2'] = 'p'
},
}
--[[--------------------------< K E Y S >----------------------------------------------------------------------
]]
local keys = { -- table of xscript table keys calls
ar = 'arapça',
bo = 'tibetçe',
hokkien = 'hokkien',
ja = 'japonca',
ko = 'korece',
mn = 'moğolca',
ru = 'rusça',
ug = 'uygurca',
}
--[[--------------------------< X S C R I P T >----------------------------------------------------------------
table that holds the various transcription headers and labels used by transcriptions()
indexed in this table are lower case versions of the header display text without punctuation (if any)
TODO: add support for transl transliteration standard parameter; akin to {{transl|lang code|standard code|text|italic=??}}
]]
local xscript = {
['standard mandarin'] = { -- lower case version of the header display text
['başlık'] = '[[Standard Chinese|Standard Mandarin]]', -- text to be displayed if headers are displayed
['t'] = { -- table of labels and their associated data parameter
{'[[Pinyin]]', 'p'}, -- label is [[Pinyin]], data is taken from |p= parameter
{'[[Bopomofo]]','bpmf'},
{'[[Spelling in Gwoyeu Romatzyh|Gwoyeu Romatzyh]]', 'gr'},
{'[[Wade-Giles]]', 'w'},
{'[[Tongyong Pinyin]]', 'tp'},
{'[[Mandarinin Yale romanizasyonu|Yale romanizasyonu|Yale romanizasyonu]]', 'myr'},
{'[[Mandarin Phonetic Symbols II|MPS2]]', 'mps'},
{'[[Yardım:IPA/Mandarin|IPA]]', 'mi'}
}
},
['diğer mandarin'] = {
['başlık'] = '[[Mandarin Chinese|other Mandarin]]',
['t'] = {
{'[[Xiao\'erjing]]', 'xej'},
{'[[Dungan language|Dungan]]','zh-dungan'},
{'[[Sichuanese Mandarin|Sichuanese]] [[Sichuanese Pinyin|Pinyin]]', 'sic'},
}
},
['wu'] = {
['başlık'] = '[[Wu Chinese|Wu]]',
['t'] = {
{'[[Romanization of Wu Chinese|Romanization]]', 'wuu'},
{'[[Shanghainese]]<br />Romanization', 'lmz'},
{'[[Wenzhounese]]<br />[[Wenzhounese romanisation|Romanisation]]', 'ouji'},
{'[[Suzhounese]]', 'suz'},
}
},
['gan'] = {
['başlık'] = '[[Gan Chinese|Gan]]',
['t'] = {
{'Romanization', 'gan'},
}
},
['xiang'] = {
['başlık'] = '[[Xiang Chinese|Xiang]]',
['t'] = {
{'IPA', 'hsn'},
}
},
['hakka'] = {
['başlık'] = '[[Hakka Chinese|Hakka]]',
['t'] = {
{'[[Guangdong Romanization#Hakka|Romanization]]', 'h'},
{'[[Pha̍k-fa-sṳ]]', 'phfs'},
}
},
['yue cantonese'] = {
['başlık'] = '[[Cantonese|Yue: Cantonese]]',
['t'] = {
{'[[Kantoncanın Yale romanizasyonu|Yale romanizasyonu]]', 'y'},
{'[[Jyutping]]', 'j'},
{'[[Sidney Lau romanisation|Sidney Lau]]', 'sl'},
{'[[Guangdong Romanization|Canton Romanization]]', 'gd'},
{'[[Hong Kong Government Cantonese Romanisation|Hong Kong Romanisation]]', 'hk'},
{'[[Cantonese#Romanization|Macau Romanization]]', 'mo'},
{'[[Help:IPA/Cantonese|IPA]]', 'ci'},
}
},
['diğer yue'] = {
['başlık'] = '[[Yue Çincesi|diğer Yue]]',
['t'] = {
{'[[Taishanese]]', 'toi'},
}
},
['güney min'] = {
['başlık'] = '[[Southern Min]]',
['t'] = {
{'[[Hokkien]] [[Pe̍h-ōe-jī|POJ]]', 'poj'},
{'[[Tayvan Romanizasyon Sistemi|Tâi-lô]]', 'tl'},
{'[[Bbánlám pìngyīm]]', 'bp'},
{'[[Teochew dialect|Teochew]] [[Guangdong Romanization#Teochew|Peng\'im]]', 'teo'},
{'[[Hainanese]] Romanization', 'hain'},
{'[[Leizhou Min|Leizhou]] Romanization', 'lizu'},
}
},
['doğu min'] = {
['başlık'] = '[[Eastern Min]]',
['t'] = {
{'[[Fuzhou dialect|Fuzhou]] [[Foochow Romanized|BUC]]', 'buc'},
}
},
['pu-xian min'] = {
['başlık'] = '[[Pu-Xian Min]]',
['t'] = {
{'[[Pu-Xian Min|Hinghwa]] [[Hinghwa Romanized|BUC]]', 'hhbuc'},
}
},
['kuzey min'] = {
['başlık'] = '[[Northern Min]]',
['t'] = {
{'[[Jian\'ou dialect|Jian\'ou]] [[Kienning Colloquial Romanized|Romanized]]', 'mblmc'},
}
},
['eski mandarin'] = {
['başlık'] = '[[Old Mandarin]]',
['t'] = {
{'Romanized \'Phags-pa', 'phagspa-latin'},
}
},
['orta çince'] = {
['başlık'] = '[[Middle Chinese]]',
['t'] = {
{'[[Middle Chinese]]', 'mc'},
{'[[Middle Chinese#Early Middle Chinese|Early Middle Chinese]]', 'emc'},
{'[[Middle Chinese#Late Middle Chinese|Late Middle Chinese]]', 'lmc'},
}
},
['eski çince'] = {
['başlık'] = '[[Old Chinese]]',
['t'] = {
{'[[Reconstructions_of_Old_Chinese#Baxter (1992)|Baxter (1992)]]', 'oc-b92'},
{'[[Reconstructions of Old Chinese#Baxter-Sagart (2014)|Baxter-Sagart (2014)]]', 'oc-bs'},
{'[[Reconstructions of Old Chinese#Zhengzhang (1981-1995)|Zhengzhang]]', 'oc-zz'},
}
},
--------< non-Chinese transcriptions >--------
['arapça'] = {
['başlık'] = nil, -- {{Infobox Chinese/Arabic}}; doesn't use header
['t'] = {
{'[[Arabic chat alphabet|Chat]]', 'chat'}, -- TODO: standardize on lowercase parameter names
{'[[Arabic chat alphabet|Chat]]', 'Chat'},
{'[[ALA-LC romanization|ALA-LC]]', 'ala-lc'},
{'[[ALA-LC romanization|ALA-LC]]', 'ALA-LC'},
{'[[ISO 233|ISO]]', 'iso'},
{'[[ISO 233|ISO]]', 'ISO'},
{'[[DIN 31635|DIN]]', 'din'},
{'[[DIN 31635|DIN]]', 'DIN'},
}
},
['hokkien'] = {
['başlık'] = nil, -- {{Infobox Chinese/Hokkien}}; doesn't use header
['t'] = {
{'[[Tayvan Romanizasyon Sistemi|Tâi-lô]]', 'tl'},
{'[[Bbánlám pìngyīm|Bbánpìng]]', 'bp'},
{'[[Help:IPA for Hokkien|IPA]]', 'hokkienipa'},
}
},
['japonca'] = {
['başlık'] = nil, -- {{Infobox Chinese/Japanese}}; doesn't use header
['t'] = {
{'[[Romanization of Japanese|Romanization]]', 'romaji'},
{'[[Hepburn romanization|Revised Hepburn]]', 'revhep'},
{'[[Hepburn romanization|Traditional Hepburn]]', 'tradhep'},
{'[[Kunrei-shiki romanization|Kunrei-shiki]]', 'kunrei'},
{'[[Nihon-shiki romanization|Nihon-shiki]]', 'nihon'},
}
},
['korece'] = {
['başlık'] = nil, -- {{Infobox Chinese/Korean}}; doesn't use header
['t'] = {
{'[[Revised Romanization of Korean|Revised Romanization]]', 'rr'},
{'[[McCune-Reischauer]]', 'mr'},
{'[[Help:IPA/Korean|IPA]]', 'koreanipa'},
}
},
['moğolca'] = {
['başlık'] = nil, -- {{Infobox Chinese/Mongolian}}; doesn't use header
['t'] = {
{'[[SASM/GNC romanization#Mongolian|SASM/GNC]]', 'monr'},
}
},
['rusça'] = {
['başlık'] = nil, -- {{Infobox Chinese/Russian}}; doesn't use header
['t'] = {
{'[[Scientific transliteration of Cyrillic|Scientific]]', 'scientific'},
{'[[Scientific transliteration of Cyrillic|Scientific]]', 'Scientific'},
{'[[ISO 9|ISO]]', 'iso'},
{'[[ISO 9|ISO]]', 'ISO'},
{'[[GOST 16876-71|GOST 71]]', 'gost'},
{'[[GOST 16876-71|GOST 71]]', 'GOST'},
{'[[BGN/PCGN romanization of Russian|BGN/PCGN]]', 'bgn/pcgn'},
{'[[BGN/PCGN romanization of Russian|BGN/PCGN]]', 'BGN/PGCN'},
}
},
['tibetçe'] = {
['başlık'] = nil, -- {{Infobox Chinese/Tibetan}}; doesn't use header
['t'] = {
{'[[Wylie transliteration|Wylie]]', 'wylie'},
{'[[THL Simplified Phonetic Transcription|THL]]', 'thdl'},
{'[[Tibetan pinyin|Tibetan Pinyin]]', 'zwpy'},
{'[[Standard Tibetan|Lhasa]] [[Help:IPA/Tibetan|IPA]]', 'lhasa'},
}
},
['uygurca'] = {
['başlık'] = nil, -- {{Infobox Chinese/Uyghur}}; doesn't use header
['t'] = {
{'[[Uyghur Latin alphabet|Latin Yëziqi]]', 'uly'},
{'[[Uyghur New Script|Yengi Yeziⱪ]]', 'uyy'},
{'[[SASM/GNC romanization#Uyghur|SASM/GNC]]', 'sgs'},
{'[[Uyghur Cyrillic alphabet|Siril Yëziqi]]', 'usy'},
{'Uyghur [[Wikipedia: IPA|IPA]]', 'uipa'},
}
},
}
--[[--------------------------< I B O X _ Z H Z H _ E N U M _ P A R A M S >------------------------------------
]]
local ibox_zhzh_enum_params = { -- 'p', 'hp', 'xej' are special case enum parameters
'c', 't', 's', 'l', 'tp', 'w', 'mi', 'myr', 'psp', 'myale', 'gr', 'bpmf', 'mps',
'zh-dungan', 'sic', 'y', 'j', 'sl', 'gd', 'hk', 'mo', 'ci', 'toi', 'gan', 'wuu', 'ouji', 'suz',
'hsn', 'h', 'phfs', 'poj', 'tl', 'bp', 'buc', 'hhbuc', 'mblmc', 'lmz', 'teo', 'lizu', 'hain',
'mc', 'emc', 'lmc', 'oc-bs', 'oc-zz',
'oc-b92', -- only supported in the first ibox zhzh; why?
'lao', 'khm', 'tet' -- not supported by ibox zh/zh why are they here?
}
--[[--------------------------< Z H _ H D R _ N A M E S >------------------------------------------------------
this table fixes an oddity in the ibox zh/zh header name parameters. |chinese_header= for the first ibox zh/zh
gets filled from |name1= but the second gets its name from |altname= and then the third from |altname3=.
All of these parameter names should be replaced with |chinese_header= followed by |chinese_header2= ... like all
of the other enumerated parameters
]]
local zh_hdr_names = {
[2] = {'diğerad', 'Alternatif Çince ad'},
[3] = {'diğerad3', 'İkinci alternatif Çince ad'},
[4] = {'diğerad4', 'Üçüncü alternatif Çince ad'},
[5] = {'diğerad5', 'Dördüncü'},
[6] = {'diğerad6', 'Beşinci alternatif Çince ad'},
};
--[[--------------------------< E X P O R T E D T A B L E S >------------------------------------------------
]]
return {
ibox_zhzh_enum_params = ibox_zhzh_enum_params,
keys = keys,
label_map = label_map,
transl_map = transl_map,
xscript = xscript,
zh_hdr_names = zh_hdr_names,
}