Jump to content

Module:Lang/tag from name: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 110: Line 110:
for tag, name_table in pairs (lang_table) do
for tag, name_table in pairs (lang_table) do
if not override_table[tag] then -- only add names/tags from name_table when tag not present in override table
if not override_table[tag] then -- only add names/tags from name_table when tag not present in override table
local name, dab = name_raw:gsub ('%s+%b()', ''); -- remove parenthetical disambiguators or qualifiers from names that have them; <dab> non-zero when disambiguation removed
rev_list_add (rev_lang_table, name_raw, tag); -- add no-dab-names and names-with-dab here
rev_list_add (rev_lang_table, name_raw, tag); -- add no-dab-names and names-with-dab here
dedabbed_names_list_add (dab, name, tag); -- add to dedabbed_names_list if dabbed
dedabbed_names_list_add (dab, name, tag); -- add to dedabbed_names_list if dabbed