Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Navbar: Difference between revisions

From Neodyland Wiki
return an html string instead of an htmlbuilder
If the documentation is accurate, this will use the namespace part of pageName first and fallback to Template if one isn't present, which is what we want.
Line 25: Line 25:
         title = mw.title.new( mw.ustring.sub(pageName, 2) );
         title = mw.title.new( mw.ustring.sub(pageName, 2) );
     else
     else
         title = mw.title.new( pageName );
         title = mw.title.new( pageName, 'Template' );
        if title.namespace == 0 then
            title = mw.title.makeTitle( 'Template', pageName );
        end   
     end       
     end       
   
   
Cookies help us deliver our services. By using our services, you agree to our use of cookies.