Module:Navbar: Difference between revisions
Per edit request on talk |
Talk link restored: when the template has no talk page, "t" opens a new-topic form instead of showing a red link |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 59: | Line 59: | ||
end | end | ||
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '' | local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '' | ||
-- No talk page yet: link to "new topic" instead of a red link (users can still start a discussion) | |||
if talkpage ~= '' and not title.talkPageTitle.exists then | |||
talkpage = 'Special:NewSection/' .. talkpage | |||
end | |||
-- TODO: Get link_descriptions and show into the configuration module. | -- TODO: Get link_descriptions and show into the configuration module. | ||