Module:Vital article: Difference between revisions

Content deleted Content added
"Wikipedia vital articles in TOPIC" categories aren't container
no cat class
 
(One intermediate revision by the same user not shown)
Line 20:
local level = tostring(data.level)
if level then
local link = 'Wikipedia:Vital articles/Level/' .. level
if level~='3' then
link = link .. '/Level/' .. level
end
if (level=='4' or level=='5') and data.topic then
link = link .. '/' .. data.topic
Line 116 ⟶ 113:
class = class:match('(%a+)-Class') or class
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 ]+)$')