Interface SiteLink

All Known Implementing Classes:
SiteLinkImpl

public interface SiteLink
A site link in Wikibase specifies a link to an article on another MediaWiki site, and a list of "badges" that this article holds. Badges are specific tags used on Wikimedia project sites for some articles, most prominently for "featured articles".

In spite of its name, the site link does not specify a full URL that it links to. It only provides a page title and a site key that may be used to find a URL. To do this, the site links need to be resolved using a Sites object.

Author:
Markus Kroetzsch
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the list of badges of the linked article.
    Get the string title of the linked page.
    Get the string key of the linked site.
  • Method Details

    • getPageTitle

      String getPageTitle()
      Get the string title of the linked page.
    • getSiteKey

      String getSiteKey()
      Get the string key of the linked site.
    • getBadges

      List<ItemIdValue> getBadges()
      Get the list of badges of the linked article.