Module:Infobox multi-lingual name/data: Difference between revisions

Created page with "--[[--------------------------< 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', ['bpmf'] = 'Bopomofo', ['gan'] = 'Gan', ['gd'] = 'Guangdong Romanization', ['h'] = '[[Gua..."
 
No edit summary
 
Line 15: Line 15:
['hsn'] = '[[Xiang Chinese|Xiang]]',
['hsn'] = '[[Xiang Chinese|Xiang]]',
['j'] = '[[Jyutping]]',
['j'] = '[[Jyutping]]',
['lmz'] = '[[Shanghainese]]<br />[[Long-short (romanization)|Romanization]]',
['p'] = '[[Hanyu Pinyin]]',
['p'] = '[[Hanyu Pinyin]]',
['phfs'] = '[[Pha̍k-fa-sṳ]]',
['phfs'] = '[[Pha̍k-fa-sṳ]]',
Line 24: Line 23:
['tp'] = '[[Tongyong Pinyin]]',
['tp'] = '[[Tongyong Pinyin]]',
['w'] = '[[Wade–Giles]]',
['w'] = '[[Wade–Giles]]',
['wgn'] = '[[Romanization of Wu Chinese|Wungiu]]',
['wuu'] = '[[Wu Chinese|Wu]]',
['wuu'] = '[[Wu Chinese|Wu]]',
['xej'] = '[[Xiao\'erjing]]',
['xej'] = '[[Xiao\'erjing]]',
Line 33: Line 33:


Table to map |showflags= value to an index into label_map for child infobox |labeln= value and to map |showflags=
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
value to the correct parameter for use in child infobox |datan= parameter


Implementation deatils of |showflag= are in dispute see: Template_talk:Infobox_Chinese#Rfc_on_fixing_the_template_showflag
Implementation deatils of |showflag= are in dispute see: Template_talk:Infobox_Chinese#Rfc_on_fixing_the_template_showflag
Line 52: Line 52:
['jy'] = {['label1'] = 'j', ['data1'] = 'j', ['label2'] = 'y', ['data2'] = 'y'},
['jy'] = {['label1'] = 'j', ['data1'] = 'j', ['label2'] = 'y', ['data2'] = 'y'},
['jyp'] = {['label1'] = 'j', ['data1'] = 'j', ['label2'] = 'y', ['data2'] = 'y', ['label3'] = 'p', ['data3'] = 'p'},
['jyp'] = {['label1'] = 'j', ['data1'] = 'j', ['label2'] = 'y', ['data2'] = 'y', ['label3'] = 'p', ['data3'] = 'p'},
['lmz'] = {['label1'] = 'lmz', ['data1'] = 'lmz'},
['p'] = {['label1'] = 'p', ['data1'] = 'p'},
['p'] = {['label1'] = 'p', ['data1'] = 'p'},
['phfs'] = {['label1'] = 'phfs', ['data1'] = 'phfs'},
['phfs'] = {['label1'] = 'phfs', ['data1'] = 'phfs'},
Line 65: Line 64:
['tp'] = {['label1'] = 'tp', ['data1'] = 'tp'},
['tp'] = {['label1'] = 'tp', ['data1'] = 'tp'},
['wp'] = {['label1'] = 'w', ['data1'] = 'w', ['label2'] = 'p', ['data2'] = 'p'},
['wp'] = {['label1'] = 'w', ['data1'] = 'w', ['label2'] = 'p', ['data2'] = 'p'},
['wgn'] = {['label1'] = 'wgn', ['data1'] = 'wgn'},
['wuu'] = {['label1'] = 'wuu', ['data1'] = 'wuu'},
['wuu'] = {['label1'] = 'wuu', ['data1'] = 'wuu'},
['y'] = {['label1'] = 'y', ['data1'] = 'y'},
['y'] = {['label1'] = 'y', ['data1'] = 'y'},
Line 131: Line 131:
['header'] = '[[Wu Chinese|Wu]]',
['header'] = '[[Wu Chinese|Wu]]',
['t'] = {
['t'] = {
{'[[Romanization of Wu Chinese|Wugniu]]', 'wgn'},
{'[[Romanization of Wu Chinese|Romanization]]', 'wuu'},
{'[[Romanization of Wu Chinese|Romanization]]', 'wuu'},
{'[[Shanghainese]]<br />Romanization', 'lmz'},
{'[[Wenzhounese]]<br />[[Wenzhounese romanisation|Romanisation]]', 'ouji'},
{'[[Wenzhounese]]<br />[[Wenzhounese romanisation|Romanisation]]', 'ouji'},
{'[[Suzhounese]]', 'suz'},
{'[[Suzhounese]]', 'suz'},
{'[Help:IPA/Wu Chinese|IPA]]', 'wi'},
}
}
},
},
Line 264: Line 265:
{'[[Revised Romanization of Korean|Revised Romanization]]', 'rr'},
{'[[Revised Romanization of Korean|Revised Romanization]]', 'rr'},
{'[[McCune–Reischauer]]', 'mr'},
{'[[McCune–Reischauer]]', 'mr'},
{'[[Yale romanization of Korean|Yale]]', 'kyale'},
{'[[Help:IPA/Korean|IPA]]', 'koreanipa'},
{'[[Help:IPA/Korean|IPA]]', 'koreanipa'},
}
}
Line 313: Line 315:
local ibox_zhzh_enum_params = { -- 'p', 'hp', 'xej' are special case enum parameters
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',
'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',
'zh-dungan', 'sic', 'y', 'j', 'sl', 'gd', 'hk', 'mo', 'ci', 'toi', 'gan', 'wgn', 'wuu', 'ouji', 'suz', 'wi',
'hsn', 'h', 'phfs', 'poj', 'tl', 'bp', 'buc', 'hhbuc', 'mblmc', 'lmz', 'teo', 'lizu', 'hain',
'hsn', 'h', 'phfs', 'poj', 'tl', 'bp', 'buc', 'hhbuc', 'mblmc', 'teo', 'lizu', 'hain',
'mc', 'emc', 'lmc', 'oc-bs', 'oc-zz',
'mc', 'emc', 'lmc', 'oc-bs', 'oc-zz',
'oc-b92', -- only supported in the first ibox zhzh; why?
'oc-b92', -- only supported in the first ibox zhzh; why?