Module:siwa-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 251: | Line 251: | ||
if detect_dialect(term) == "e" then | if detect_dialect(term) == "e" then | ||
ipa = ipa .. line_format(export.crux(term, false, true, false), {'Eastern'}) | ipa = ipa .. line_format(export.crux(term, false, true, false), {'Eastern'}) | ||
table.insert(categories, "Eastern Siwa lemmas") | if mw.title.getCurrentTitle().nsText ~= 'Template' then | ||
table.insert(categories, "Eastern Siwa lemmas") | |||
table.insert(categories, "Siwa lemmas with Eastern IPA pronunciation") | |||
end | |||
elseif detect_dialect(term) == "w" then | elseif detect_dialect(term) == "w" then | ||
ipa = ipa .. line_format(export.crux(term, false, false, true), {'Western'}) | ipa = ipa .. line_format(export.crux(term, false, false, true), {'Western'}) | ||
table.insert(categories, "Western Siwa lemmas") | if mw.title.getCurrentTitle().nsText ~= 'Template' then | ||
table.insert(categories, "Western Siwa lemmas") | |||
table.insert(categories, "Siwa lemmas with Western IPA pronunciation") | |||
end | |||
elseif args.a then | elseif args.a then | ||
ipa = ipa .. line_format(export.crux(term, true, false, false), {'Aingo'}) | ipa = ipa .. line_format(export.crux(term, true, false, false), {'Aingo'}) | ||
| Line 267: | Line 271: | ||
end | end | ||
ipa = ipa .. line_format(export.crux(term, true, true, false), {'Eastern'}) | ipa = ipa .. line_format(export.crux(term, true, true, false), {'Eastern'}) | ||
table.insert(categories, "Siwa lemmas with Eastern IPA pronunciation") | if mw.title.getCurrentTitle().nsText ~= 'Template' then | ||
table.insert(categories, "Siwa lemmas with Eastern IPA pronunciation") | |||
end | |||
end | end | ||
end | end | ||
| Line 277: | Line 283: | ||
end | end | ||
ipa = ipa .. line_format(export.crux(term, true, false, true), {'Western'}) | ipa = ipa .. line_format(export.crux(term, true, false, true), {'Western'}) | ||
table.insert(categories, "Siwa lemmas with Western IPA pronunciation") | if mw.title.getCurrentTitle().nsText ~= 'Template' then | ||
table.insert(categories, "Siwa lemmas with Western IPA pronunciation") | |||
end | |||
end | end | ||
end | end | ||