Module:Vital article: Difference between revisions

Content deleted Content added
add support for Category:Wikipedia level-LEVEL vital articles in TOPIC
add support for Category:Wikipedia CLASS vital articles by level
Line 55:
end
class = cat:match('^([%a-]+) vital articles by topic$')
if class then -- Category:CLASS-Class vital articles by topic
return top(true, frame)
.. '[[Category:' .. class .. ' vital articles|Topic]]'
Line 71:
.. '[[Category:Wikipedia level-' .. level .. ' vital articles|Topic]]'
.. '[[Category:Wikipedia vital articles by level by topic|' .. level .. ']]'
end
class = cat:match('Wikipedia ([%a-]+) vital articles by level')
if class then -- Category:Wikipedia CLASS vital articles by level
return top(true, frame)
.. '[[Category:' .. class .. ' vital articles|Level]]'
.. '[[Category:Wikipedia vital articles by class by level|' .. class .. ']]'
end
level, topic = cat:match('^Wikipedia level%-(%w+) vital articles in ([%a ]+)$')
Line 79 ⟶ 85:
end
class, topic = cat:match('^([%a-]+) vital articles in ([%a ]+)$')
if class and topic then -- Category:CLASS-Class vital articles in TOPIC
return top(false, frame)
.. '[[Category:Wikipedia vital articles in ' .. topic .. ' by class|' .. class .. ']]'