parameters: (self, data)
return_statement: return '<a href="%s">%s</a>' % (url, text)
docstring: Make a link for a module or package to display in an index.
docstring_summary: Make a link for a module or package to display in an index.
docstring_tokens: Make a link for a module or package to display in an index .
function: def modpkglink(self, data):
          """Make a link for a module or package to display in an index."""
          name, path, ispackage, shadowed = data
          if shadowed:
              return self.grey(name)
          if path:
              url = '%s.%s.html' % (path, name)
          else:
              url = '%s.html' % name
          if ispackage:
              text = '<strong>%s</strong>&nbsp;(package)' % name
          else:
              text = name
          return '<a href="%s">%s</a>' % (url, text)
function_tokens: def modpkglink ( self , data ) : name , path , ispackage , shadowed = data if shadowed : return self . grey ( name ) if path : url = '%s.%s.html' % ( path , name ) else : url = '%s.html' % name if ispackage : text = '<strong>%s</strong>&nbsp;(package)' % name else : text = name return '<a href="%s">%s</a>' % ( url , text )