def source_link_type(url):
    """
    Get an URL and will return the URL type for display  the true text in the wiki view.

    :param url: Ruleset source's URL
    :type url: str
    :return: A string of URL type (github, patreon or unknown)
    """
    if ("github.com" or "www.github.com") in url:
        result = "github"
    elif ("patreon.com" or "www.patreon.com") in url:
        result = "patreon"
    else:
        result = "unknown"
    return result