This is the documentation page for Module:OfficeData
| This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
| This module uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This is a derivative of Module:Wikidata specifically for working with Wikidata related to an office (the abstract function held by an officeholder).
Usage
{{#invoke:OfficeData|function_name}}
Functions
getPreferredOfficeholder
Returns the name of the preferred (incumbent) officeholder of the item. The preferred officeholder is found by sorting officeholder claims by rank.
getPreferredOfficeholderLink
Returns a link to the article about the preferred officeholder of the item.
getPreferredOfficeholderStarttime
Returns the start time of the term of the preferred officeholder of the item.
getPreferredOfficeholderCountry
Returns the country of the term of the preferred officeholder of the item.
getPreferredOfficeholderCountryLink
Returns a link to the country of the term of the preferred officeholder of the item.
