Content deleted Content added
fix bug when page is a number |
simplify code and use section when available |
||
Line 20:
local level = tostring(data.level)
if level then
if trimmed_link then▼
▲ link = 'Wikipedia:Vital articles' .. trimmed_link
link =
▲ if (level=='4' or level=='5') and data.topic then
▲ link = link .. '/' .. data.topic
▲ end
▲ if data.sublist then
▲ link = link .. '/' .. data.sublist
▲ end
end
return link, level
|