Module:Vital article: Difference between revisions

Content deleted Content added
another one
more categories being renamed
Line 56:
local cat = pargs.category~='' and pargs.category or mw.title.getCurrentTitle().subjectPageTitle.text
local topic, class, level
topic = cat:match('^Wikipedia vitalVital articles in ([%a ]+) by class$quality')
if topic then -- Category:Wikipedia vitalVital articles in TOPIC by classquality
return top(true, frame)
.. '[[Category:Wikipedia vital articles in ' .. topic .. '|Class]]'
.. '[[Category:Wikipedia vitalVital articles by topic by classquality|' .. (topic=='an unknown topic' and 'Unknown' or topic) .. ']]'
end
class = cat:match('^([%a-]+) vital articles by topic$')
Line 123:
if class and topic then -- Category:CLASS vital articles in TOPIC
return top(false, frame)
.. '[[Category:Wikipedia vitalVital articles in ' .. topic .. ' by classquality|' .. class .. ']]'
.. '[[Category:' .. class .. ' vital articles by topic|' .. (topic=='an unknown topic' and 'Unknown' or topic) .. ']]'
end