Content deleted Content added
fix for words like 'infinity' which were recognised by tonumber |
no cat class |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 20:
local level = tostring(data.level)
if level then
local link = 'Wikipedia:Vital articles/Level/' .. level
if (level=='4' or level=='5') and data.topic then
link = link .. '/' .. data.topic
Line 98 ⟶ 95:
topic = cat:match('^Wikipedia vital articles in ([%a ]+)$')
if topic then -- Category:Wikipedia vital articles in TOPIC
return top(
.. '[[Category:Wikipedia vital articles by topic|' .. (topic=='an unknown topic' and 'Unknown' or topic) .. ']]'
end
Line 116 ⟶ 113:
class = class:match('(%a+)-Class') or class
return top(true, frame)
end
level, topic = cat:match('^Wikipedia level%-(%w+) vital articles in ([%a ]+)$')
|