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

Content deleted Content added
sync from active
remove ambiguous references to "_transl"
 
Line 2:
TODO:
all non-English text wrapped in {{lang}}?
distingushdistinguish various scripts? Kanji is ja-Hani ...
every child infobox should support translit / transcription parameter(s)
every child infobox should have a literal meaning parameter
Line 134:
 
else
i = add_label_data_pair (infobox_args, v[1], is_set (args[v[2]]) and lang_mod._transl_xlit ({lang, args[v[2]], italic = 'no'}), i); -- enumerator is bumped here
end
end
Line 257:
--[[--------------------------< I B O X _ B O I L E R P L A T E >----------------------------------------------
 
boilerplate style settings for the various child infoboxen (not for transcription infoboxen) beausebecause they are
mostly the same child-infobox to child-infobox
 
TODO: |headercolor= is set to its default color in {{Infobox Chinese}}. Better here than there isn't it? less
maintenencemaintenance headache when a default value is set in only one place; override in the highest level appropriate
but leave the default here. in the higher-level template(s) remove |headercolor= default values
 
Line 441:
i = add_label_data_pair (infobox_args, label, data, i);
if is_set (args.lang_rom) and ietf_tag then
i = add_label_data_pair (infobox_args, args.lang_std or 'Romanization', lang_mod._transl_xlit ({args.lang, args.lang_rom}), i);
end
i = add_label_data_pair (infobox_args, 'IPA', args.lang_ipa, i);
Line 650:
end
else
i = add_label_data_pair (infobox_args, '[[Revised Romanization of Korean|Revised Romanization]]', is_set (args.rr) and lang_mod._transl_xlit ({'ko', 'rr', args.rr}) or nil, i)
i = add_label_data_pair (infobox_args, '[[McCune–Reischauer]]', is_set (args.mr) and lang_mod._transl_xlit ({'ko', 'mr', args.mr}) or nil, i)
i = add_label_data_pair (infobox_args, '[[Help:IPA/Korean|IPA]]', is_set (args.koreanipa) and args.koreanipa or nil, i)
end
Line 824:
 
i = add_label_data_pair (infobox_args, '[[Thai language|Thai]]', (is_set (args.th) or is_set (args.tha)) and lang_mod._lang ({'th', args.th or args.tha}) or nil, i)
i = add_label_data_pair (infobox_args, '[[Royal Thai General System of Transcription|RTGS]]', is_set (args.rtgs) and lang_mod._transl_xlit ({'th', 'rtgs', args.rtgs}) or nil, i)
i = add_label_data_pair (infobox_args, 'Romanization', is_set (args.rom) and lang_mod._transl_xlit ({'th', args.rom}) or nil, i)
i = add_label_data_pair (infobox_args, '[[International Phonetic Alphabet|IPA]]', is_set (args.ipa) and args.ipa, i)
i = add_label_data_pair (infobox_args, 'Literal meaning', is_set (args.lit) and args.lit, i)