45,638
edits
(Created page with "local m_links = require("Module:links") local m_utilities = require("Module:utilities") local export = {} local u = mw.ustring.char local rsub = mw.ustring.gsub local usub =...") |
No edit summary |
||
Line 402: | Line 402: | ||
else | else | ||
display_term = part.term | display_term = part.term | ||
if affix_type then | if not affix_type then | ||
whole_words = whole_words + 1 | whole_words = whole_words + 1 | ||
end | end | ||
end | end | ||
table.insert(parts_formatted, link_term(part, display_term, lang, sc, sort_key)) | table.insert(parts_formatted, link_term(part, display_term, lang, sc, sort_key)) | ||
end | end | ||
Line 467: | Line 455: | ||
part.tr = export.make_affix(part.tr, part_lang, require("Module:scripts").getByCode("Latn"), affix_type) | part.tr = export.make_affix(part.tr, part_lang, require("Module:scripts").getByCode("Latn"), affix_type) | ||
part.ts = export.make_affix(part.ts, part_lang, require("Module:scripts").getByCode("Latn"), affix_type) | part.ts = export.make_affix(part.ts, part_lang, require("Module:scripts").getByCode("Latn"), affix_type) | ||
end | end | ||
Line 503: | Line 476: | ||
make_part_affix(suffix, lang, sc, "suffix") | make_part_affix(suffix, lang, sc, "suffix") | ||
-- Create circumfix term | -- Create circumfix term | ||
Line 542: | Line 512: | ||
make_part_affix(suffix, lang, sc, "suffix") | make_part_affix(suffix, lang, sc, "suffix") | ||
-- Make links out of all the parts | -- Make links out of all the parts | ||
Line 581: | Line 548: | ||
make_part_affix(infix, lang, sc, "infix") | make_part_affix(infix, lang, sc, "infix") | ||
-- Make links out of all the parts | -- Make links out of all the parts | ||
Line 606: | Line 571: | ||
make_part_affix(prefix, lang, sc, "prefix") | make_part_affix(prefix, lang, sc, "prefix") | ||
end | end | ||
-- Make links out of all the parts | -- Make links out of all the parts | ||
Line 651: | Line 610: | ||
for i, suffix in ipairs(suffixes) do | for i, suffix in ipairs(suffixes) do | ||
make_part_affix(suffix, lang, sc, "suffix") | make_part_affix(suffix, lang, sc, "suffix") | ||
end | end | ||