Content deleted Content added
MusikBot II (talk | contribs) m Changed protection settings for "Module:Vital article": High-risk template or module: 49709 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
m don't add level for level 3 |
||
Line 8:
end
local subpage = mw.ustring.upper(mw.ustring.sub(page, 1, 1)) -- get first letter of article name
local codepoint = mw.ustring.codepoint(page, 1, 1)
Line 20:
local level = tostring(data.level)
if level then
local link = 'Wikipedia:Vital articles
if level~='3' then
link = link .. '/Level/' .. level
end
if (level=='4' or level=='5') and data.topic then
link = link .. '/' .. data.topic
Line 30 ⟶ 33:
link = link .. '#' .. data.section
end
return link, level, data.topic
end
end
Line 37 ⟶ 40:
p.link = function(frame)
local page = frame.args.page~='' and frame.args.page or mw.title.getCurrentTitle().subjectPageTitle.text
local link, level = p.getLink(page)
return '[[' .. page .. ']]' .. (link and ' [[File:Círculos Concéntricos.svg|11px]] [[' .. link .. '|' .. level .. ']]' or '')
end
|