public interface Sites
SiteLink objects. These associations are part of the
configuration of a MediaWiki site and therefore not fixed.
This is not a Wikibase data object as such, but part of the general configuration of a Wikibase site.
| Modifier and Type | Method and Description |
|---|---|
String |
getFileUrl(String siteKey,
String fileName)
Returns the URL for the file of the given name, or null if the site is
not known.
|
String |
getGroup(String siteKey)
Returns the group for the given site, or null if there is no such data
for this site key.
|
String |
getLanguageCode(String siteKey)
Returns the MediaWiki language code for the given site, or null if there
is no such data for this site key.
|
String |
getPageUrl(String siteKey,
String pageTitle)
Returns the URL for the page of the given name, or null if the site is
not known.
|
String |
getSiteLinkUrl(SiteLink siteLink)
Returns the URL for the given site link, or null if its site key is not
known.
|
String |
getSiteType(String siteKey)
Returns the type for the given site, or null if there is no such data for
this site key.
|
String getLanguageCode(String siteKey)
The language code follows the MediaWiki conventions for language codes, which do not follow any standard. Most codes agree with those in BCP 47 , but there are a number of exceptions.
siteKey - the global site keyString getGroup(String siteKey)
siteKey - the global site keyString getPageUrl(String siteKey, String pageTitle)
siteKey - the global site keypageTitle - the title of the page, including namespace prefixes if anyString getSiteLinkUrl(SiteLink siteLink)
siteLink - the SiteLink objectString getFileUrl(String siteKey, String fileName)
siteKey - the global site keyfileName - the name of the fileCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage