def link_titles(soup):
    """Return list of titles of links to other pages."""
    if soup is None:
        return []

    links = []
    for link in soup.find_all('a'):
        href = link.get('href')
        if href and href.startswith('/wiki'):
            links.append(link.get('title'))

    return links