Content deleted Content added
+Possibly empty category |
try to work with unassessed |
||
Line 47:
p.header = function(frame)
local cat = frame.args.category~='' and frame.args.category or mw.title.getCurrentTitle().subjectPageTitle.text
local class, topic = cat:match('^([%a-]+)
class = class:match('(%a+)-Class') or 'Unassessed'
if class and topic then
return top(false, frame)
Line 59 ⟶ 60:
.. '[[Category:Wikipedia vital articles by topic by class|' .. topic .. ']]'
end
class = cat:match('^([%a-]+)
class = class:match('(%a+)-Class') or 'Unassessed'
if class then
return top(true, frame)
|