Module:Vital article: Difference between revisions

Content deleted Content added
add support for Category:Wikipedia level-LEVEL vital articles
support for Category:CLASS vital articles
Line 93:
return top(true, frame)
.. '[[Category:Wikipedia vital articles by level|' .. level .. ']]'
end
class, level = cat:match('^([%a%-]+) level%-(%w+) vital articles$')
if class and level then -- Category:CLASS level-LEVEL vital articles
return top(false, frame)
.. '[[Category:Wikipedia ' .. class .. ' vital articles by level|' .. level .. ']]'
.. '[[Category:Wikipedia level-' .. string.lower(level) .. ' vital articles by class|' ..class .. ']]'
end
class = cat:match('^([%a-]+) vital articles$')
if class then -- Category:CLASS vital articles
return top(true, frame)
.. frame:expandTemplate{title = 'cat class', args = {topic = 'vital', class = class}}
end
level, topic = cat:match('^Wikipedia level%-(%w+) vital articles in ([%a ]+)$')
Line 105 ⟶ 116:
.. '[[Category:Wikipedia vital articles in ' .. topic .. ' by class|' .. class .. ']]'
.. '[[Category:' .. class .. ' vital articles by topic|' .. (topic=='an unknown topic' and 'Unknown' or topic) .. ']]'
end
class, level = cat:match('^([%a%-]+) level%-(%w+) vital articles$')
if class and level then -- Category:CLASS level-LEVEL vital articles
return top(false, frame)
.. '[[Category:Wikipedia ' .. class .. ' vital articles by level|' .. level .. ']]'
.. '[[Category:Wikipedia level-' .. string.lower(level) .. ' vital articles by class|' ..class .. ']]'
end
end