Module:Sports table: Difference between revisions

Content deleted Content added
optional |article_section= which is more robust than using |template_name= when an article is moved
template_name is automatic
Line 33:
local baselink = frame:getParent():getTitle()
if mw.title.getCurrentTitle().text == baselink then baselink = '' end
local template_name = (baselink ~= '' and (':' .. baselink .. (Args['template_namearticle_section'] and '#' .. Args['article_section'] or '')))
or (baselink ~= '' and (':' .. baselink .. (Args['article_section'] and '#' .. Args['article_section'] or '')))
or ''