Module:Vital article: Difference between revisions

Content deleted Content added
rename another
add isvital function
Line 44:
local link, level = getLink(page)
return '[[' .. page .. ']]' .. (link and ' [[File:Círculos Concéntricos.svg|11px]] [[' .. link .. '|' .. level .. ']]' or '')
end
 
p.isVital = function(frame)
local page = frame.args.page~='' and frame.args.page or mw.title.getCurrentTitle().subjectPageTitle.text
return getLink(page) and 'yes' or ''
end