def _wikify_one(language, pat):
 page_title = pat.group(2)
 if pat.group(1):
  page_name = pat.group(1).rstrip('|')
 else:
  page_name = page_title
 if ((':' in page_name) and (not page_name.startswith('http'))):
  parts = page_name.split(':', 2)
  if (page_name == page_title):
   page_title = parts[1]
 link = ("<a href='%s'>%s</a>" % (pageurl(page_name, language), page_title))
 return link

def _wikify_one ( language , pat ) : page_title = pat . group ( 2 ) if pat . group ( 1 ) : page_name = pat . group ( 1 ) . rstrip ( '|' ) else : page_name = page_title if ( ( ':' in page_name ) and ( not page_name . startswith ( 'http' ) ) ) : parts = page_name . split ( ':' , 2 ) if ( page_name == page_title ) : page_title = parts [ 1 ] link = ( "<a href='%s'>%s</a>" % ( pageurl ( page_name , language ) , page_title ) ) return link
wikifies one link .