![]() | This is a documentation subpage for Module:Authority control/config. It may contain usage information, categories and other content that is not part of the original module page. |
Wikipedia:Authority control |
---|
Contains configuation details for Module:Authority control.
The syntax for the p.config
table is as follows:
$1
will be replaced with the identifier.The syntax below generates a link to the Dictionary of Irish Biography in section 5. It gets its data from Wikidata property Dictionary of Irish Biography ID (P6829) and identifiers need to be in the following form: 0, followed by 0 or 1, followed by 4 digits, possibly followed by a decimal point and then a letter from A to D.
{'DIB',
property = 6829,
section = 5,
pattern = '0[01]%d%d%d%d%.?[A-D]?',
link = 'https://doi.org/10.3318/dib.$1.v1',
label = 'Ireland',
},
false
if the identifier is invalid.false
if the identifier is invalid.The names of each section are defined by the p.sectionNames
function.
The whitelists are defined by the p.whitelists
function. The syntax is as follows:
where
|show=
parameter.For example, the whitelist for Italy is defined as:
it = {topic = 38, properties = {396, 3863, 1986, 8034)),
The whitelist has code it
, represents Italy (Q38) and includes the following properties: SBN author ID (P396), Italian Navy Lighthouses and Beacons ID (P3863), Treccani's Biographical Dictionary of Italian People ID (P1986), Vatican Library VcBA ID (P8034).
The currently recognised whitelists are listed below: