Module:Vital article: Difference between revisions

Content deleted Content added
No edit summary
simp
Line 49:
local class, topic = cat:match('^([%a-]+) vital articles in ([%a ]+)$')
if class and topic then
class = class:match('(%a+)-Class') or 'Unassessed'
return top(false, frame)
.. '[[Category:Wikipedia vital articles in ' .. topic .. ' by class|' .. class .. ']]'
.. '[[Category:' .. class .. (class=='Unassessed' and '' or '-Class') .. ' vital articles by topic|' .. (topic=='an unknown topic' and 'Unknown' or topic) .. ']]'
end
topic = cat:match('^Wikipedia vital articles in ([%a ]+) by class$')
Line 62 ⟶ 61:
class = cat:match('^([%a-]+) vital articles by topic$')
if class then
class = class:match('(%a+)-Class') or 'Unassessed'
return top(true, frame)
.. '[[Category:' .. class .. (class=='Unassessed' and '' or '-Class') .. '-Class vital articles|Topic]]'
.. '[[Category:Wikipedia vital articles by class by topic|' .. class .. ']]'
end