Module:Vital article: Difference between revisions

Content deleted Content added
fix locals
mNo edit summary
Line 47:
p.header = function(frame)
local cat = frame.args.category~='' and frame.args.category or mw.title.getCurrentTitle().subjectPageTitle.text
local topic, class, level
topic = cat:match('^Wikipedia vital articles in ([%a ]+) by class$')
if topic then -- Category:Wikipedia vital articles in TOPIC by class
return top(true, frame)
Line 53 ⟶ 54:
.. '[[Category:Wikipedia vital articles by topic by class|' .. topic .. ']]'
end
local class = cat:match('^([%a-]+) vital articles by topic$')
if class then -- Category:CLASS-Class vital articles by topic
return top(true, frame)
Line 65 ⟶ 66:
.. '[[Category:Wikipedia vital articles by topic by level|' .. topic .. ']]'
end
local level = cat:match('Wikipedia level-(%w+) vital articles by topic')
if level then -- Category:Wikipedia level-LEVEL vital articles by topic
return top(true, frame)