Module:Box: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
edited wrong function
(doesn't like a tags I guess)
(edited wrong function)
Line 60: Line 60:
     header:tag( 'span' )
     header:tag( 'span' )
       :addClass( 'edit plainlinks' )
       :addClass( 'edit plainlinks' )
       :tag( 'a' )
       :wikitext( '[' .. tostring( mw.uri.fullUrl( self.args.edit, { action = 'edit' } ) ) .. ' [edit]]' )
        :attr( 'href', tostring( mw.uri.fullUrl( self.args.edit, { action = 'edit' } ) ) )
--      :tag( 'a' )
        :wikitext( '[edit]' )
--        :attr( 'href', tostring( mw.uri.fullUrl( self.args.edit, { action = 'edit' } ) ) )
--        :wikitext( '[edit]' )
   end
   end


Line 69: Line 70:
   end
   end


   return tostring( header )
   return header
end
end


Navigation menu