Module:Vital article: Difference between revisions

Content deleted Content added
m Protected "Module:Vital article": High-risk template or module: 286 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))
fit category parameter
Line 46:
 
p.header = function(frame)
local catpargs = frame:getParent().args
local cat = pargs.category~='' and frame.argspargs.category or mw.title.getCurrentTitle().subjectPageTitle.text
local topic, class, level
topic = cat:match('^Wikipedia vital articles in ([%a ]+) by class$')