48,357
edits
No edit summary |
No edit summary |
||
| Line 670: | Line 670: | ||
-- that. | -- that. | ||
if tbl == true then | if tbl == true then | ||
return | return | ||
end | end | ||
| Line 682: | Line 679: | ||
different = true | different = true | ||
end | end | ||
end | end | ||
return sortkey | return sortkey | ||
| Line 699: | Line 690: | ||
local canonical = lang:getCanonicalName() | local canonical = lang:getCanonicalName() | ||
local tbl, sortkey = page.wikitext_topic_cat[lang:getCode()] | local tbl, sortkey = page.wikitext_topic_cat[lang:getCode()] | ||
tbl = page.wikitext_langname_cat[canonical] | tbl = page.wikitext_langname_cat[canonical] | ||
end | end | ||
end | end | ||
| Line 1,277: | Line 1,257: | ||
insert(data.categories, full_langname .. " palindromes") | insert(data.categories, full_langname .. " palindromes") | ||
end | end | ||
if data.affix then | |||
for _, aff in ipairs(data.affix) do | |||
if mw.ustring.match(aff, "^%-[^-]*%-$") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words interfixed with " .. aff) | |||
elseif mw.ustring.match(aff, "%-%s%-") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words circumfixed with " .. aff) | |||
elseif mw.ustring.match(aff, "%-$") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words prefixed with " .. aff) | |||
elseif mw.ustring.match(aff, "^%-") then | |||
table.insert(data.categories, data.lang:getCanonicalName() .. " words suffixed with " .. aff) | |||
end | |||
end | |||
end | |||
-- Add to various maintenance categories. | -- Add to various maintenance categories. | ||
export.maintenance_cats(page, data.lang, data.categories, data.whole_page_categories) | export.maintenance_cats(page, data.lang, data.categories, data.whole_page_categories) | ||