Module:Navbar: Difference between revisions
no edit summary
(test) |
No edit summary |
||
Line 21: | Line 21: | ||
function getTitle( pageName ) | function getTitle( pageName ) | ||
pageName = trim( pageName ); | pageName = trim( pageName ); | ||
mw.log(pageName); | |||
local page_title, talk_page_title; | local page_title, talk_page_title; | ||
if mw.ustring.sub( | if mw.ustring.sub(pageName, 1, 1) == ':' then | ||
page_title = mw.title.new( mw.ustring.sub(pageName, 2) ); | page_title = mw.title.new( mw.ustring.sub(pageName, 2) ); | ||
else | else |