Module:pollasena-roots: Difference between revisions

Delete obsolete code
No edit summary
Line 132: Line 132:
local cat_term = args.c[root_index] or item.term
local cat_term = args.c[root_index] or item.term
cat_term = "*" .. gsub(cat_term, "^*+", "") -- ensure only one asterisk
cat_term = "*" .. gsub(cat_term, "^*+", "") -- ensure only one asterisk
local user_provided_cat_term = cat_term
if code == "wasc" then -- Wascotl root and suffix handling
if code == "wasc" then -- Wascotl root and suffix handling
local suffix = match(cat_term, "^*[%w']+(%-[%w']+)$")
local suffix = match(cat_term, "^*[%w']+(%-[%w']+)$")
Line 137: Line 139:
if wasc_suffixes[suffix] then
if wasc_suffixes[suffix] then
cat_term = gsub(cat_term, suffix, "-")
cat_term = gsub(cat_term, suffix, "-")
end
if user_provided_cat_term == cat_term then
require("Module:debug").track("redundant and obsolete c")
end
end
end
end