Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
sync
move main article checking to only happen if MAIN_TEXT not set
Tag: Reverted
Line 189:
return cell
end
local topic = args.MAIN_ARTICLE and if_exists(args.MAIN_ARTICLE) or if_exists(project, project .. ' articles')
local portal = args.PORTAL
local portal_box = portal and frame:expandTemplate{title='Portal', args={portal}} or ''
Line 196 ⟶ 195:
project_link.prefixedText,
project_name,
local topic = args.MAIN_ARTICLE and if_exists(args.MAIN_ARTICLE) or if_exists(project, project .. ' articles'),
topic,
project_link.talkPageTitle.prefixedText
))