Module:Authority control/config/doc

Source: Wikipedia, the free encyclopedia.

Contains configuation details for Module:Authority control.

Syntax

The syntax for the p.config table is as follows:

  • Codename for identifier, inside quotation marks.
  • property = Wikidata property number, without the prefix P.
  • section = section number to place the identifier. See #List of sections for details.
  • pattern = Lua pattern of valid format for identifier. Note this is similar but not identical to a regular expression. If this is omitted, then the module will not check the validity of the identifiers.
  • link = the URL of the external page with details of the identifier. The code $1 will be replaced with the identifier.
  • label = the label for the link.
  • remark = a brief explanation of the authority control database, for use on the documentation of Template:Authority control only.

Example

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',
},

Advanced parameters

  • patterns = if more than one Lua pattern is needed, then use the plural form of this argument and include the comma-separated list of patterns enclosed by curly braces.
  • prefix = a prefix to be included before the links. In this case numbers 1, 2, ... will be used as the labels and the label field will be ignored.
  • valid = the name of a custom Lua function in /auxiliary used to determine if the identifier is valid or not, in case the pattern method cannot be used. It should return false if the identifier is invalid.
  • customlink = the name of a custom Lua function in /auxiliary which will produce the entire external link. It should return false if the identifier is invalid.
  • suppressedbyproperty = if this identifier should not be displayed if other identifiers are present, then specify them here in a comma-separated list enclosed by curley braces.

List of sections

The names of each section are defined by the p.sectionNames function.

SectionDescriptionIdentifiers
1InternationalFAST ID (P2163), ISNI (P213), VIAF ID (P214), WorldCat Entities ID (P10832)
2NationalNORAF ID (P1015), CCAB ID (P1890), National Library of Spain ID (P950), Bibliothèque nationale de France ID (P268), Bibliothèque nationale de France ID (P268), BNMM authority ID (P3788), CANTIC ID (P9984), GND ID (P227), SBN author ID (P396), National Library of Israel J9U ID (P8189), KANTO ID (P8980), KBR person ID (P11249), Library of Congress authority ID (P244), Libris-URI (P5587), National Library of Latvia ID (P1368), NCL ID (P1048), NDL Authority ID (P349), NL CR AUT ID (P691), Libraries Australia ID (P409), National Library of Greece ID (P3348), National Library of Korea ID (P5034), National Library of Romania ID (P1003), NSK ID (P1375), Nationale Thesaurus voor Auteursnamen ID (P1006), PLWABN ID (P7293), Portuguese National Library author ID (P1005), NLP ID (old) (P1695), RSL ID (person) (P947), SELIBR ID (P906), Vatican Library VcBA ID (P8034)
3GeographicAdmiralty number (P3562), ARLHS lighthouse ID (P2980), BGCI garden ID (P5818), Canadian Coastguard Lighthouse ID (P3920), Danish List of Lights and Fog signals ID (P4038), EBIDAT ID (P9725), EUTA theatre ID (P4535), Finnish List of Lights ID (P4143), Global Volcanism Program ID (P1886), Klosterdatenbank ID (P3407), Italian Navy Lighthouses and Beacons ID (P3863), MarineTraffic Lighthouse ID (P3601), MusicBrainz area ID (P982), MusicBrainz place ID (P1004), Mérimée ID (P380), NCES school ID (P2484), NGA lighthouse ID (P3563), Norwegian List of Lights ID (P4055), Online List of Lights ID (P3223), Pleiades ID (P1584), Portuguese lighthouse ID (P4423), StadiumDB ID (P5288), Structurae structure ID (P454), USCG lighthouse ID (P3723), Vitaskrá ID (P3993), World Waterfall Database ID (P3326)
4AcademicsACM Digital Library author ID (P864), botanist author abbreviation (P428), NACSIS-CAT author ID (P271), DBLP author ID (P2456), Google Scholar author ID (P1960), Leopoldina member ID (new) (P10299), MR Author ID (P4955), Mathematics Genealogy Project ID (P549), ORCID iD (P496), PhilPeople profile (P3233), Publons author ID (P3829), ResearcherID (P1053), Scopus author ID (P1153), zbMATH author ID (P1556)
5ArtistsAuckland Art Gallery artist ID (P3372), ADK member ID (P4114), Art Gallery of South Australia creator ID (P6804), BRAHMS artist ID (P5226), DAAO ID (P1707), Stuttgart Database of Scientific Illustrators ID (P2349), Emmys person ID (P8381), Find NZ Artists ID (P6792), Grammy Awards artist ID (P7303), Information Center for Israeli Art artist ID (P1736), KulturNav-ID (P1248), LexM ID (P9692), MusicBrainz artist ID (P434), Museum of Modern Art artist ID (P2174), Musée d'Orsay artist ID (P2268), National Gallery of Canada artist ID (P5368), National Gallery of Victoria artist ID (P2041), Photographers’ Identities Catalog ID (P2750), Museo del Prado artist ID (P5321), RKDartists ID (P650), SIKART ID (P781), Städel Museum artist ID (P4581), Te Papa agent ID (P3544), Union List of Artist Names ID (P245)
6PeopleAustralian Dictionary of Biography ID (P1907), autores.uy ID (P2558), Australian Women's Register ID (P4186), BMLO ID (P865), Biografisch Portaal van Nederland ID (P651), CWGC person ID (P1908), Treccani's Biographical Dictionary of Italian People ID (P1986), Deutsche Synchronkartei person ID (P11646), Dictionary of Irish Biography ID (P6829), Deutsche Biographie (GND) ID (P7902), EUTA person ID (P4534), World Athletics athlete ID (P1146), ISIL (P791), Structurae person ID (P2418), Sycomore ID (P1045), NLA Trove people ID (P1315), UK Parliament ID (P6213), US Congress Bio ID (P1157)
7OtherBildindex der Kunst und Architektur ID (P2092), BRAHMS work ID (P5302), Deutsche Bahn station code (P8671), Encyclopedia of Modern Ukraine ID (P4613), HDS ID (P902), Internet Encyclopedia of Ukraine ID (P9070), Joconde work ID (P347), JPL Small-Body Database SPK-ID (P716), Lexicon istoric retic ID (P886), MusicBrainz instrument ID (P1330), MusicBrainz label ID (P966), MusicBrainz release group ID (P436), MusicBrainz series ID (P1407), MusicBrainz work ID (P435), Minor Planet Center body ID (P5736), U.S. National Archives Identifier (P1225), RISM ID (P5504), RKDimages ID (P350), SNAC ARK ID (P3430), IdRef ID (P269), Terminologia Anatomica 98 ID (P1323), TDV İslam Ansiklopedisi ID (P7314), Theaterlexikon der Schweiz ID (P1362)

Whitelists

The whitelists are defined by the p.whitelists function. The syntax is as follows:

  • code = {topic = topic QID, properties = {property PIDs}}

where

  • code is the code of the whitelist which is called via the |show= parameter.
  • topic QID is the Wikidata QID for the topic represented by the whitelist, without the Q prefix.
  • property QIDs is a comma-separated list of PIDs for the properties included in the whitelist (without the prefix P).

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:

CodeTopicIdentifiers
clChileCCAB ID (P1890)
lighthouseLighthouseNGA lighthouse ID (P3563), Norwegian List of Lights ID (P4055), Online List of Lights ID (P3223), Portuguese lighthouse ID (P4423), USCG lighthouse ID (P3723), Vitaskrá ID (P3993), Admiralty number (P3562), ARLHS lighthouse ID (P2980), Danish List of Lights and Fog signals ID (P4038), Canadian Coastguard Lighthouse ID (P3920), Finnish List of Lights ID (P4143), Italian Navy Lighthouses and Beacons ID (P3863), MarineTraffic Lighthouse ID (P3601)
grGreeceNational Library of Greece ID (P3348)
hrCroatiaNSK ID (P1375)
chSwitzerlandHDS ID (P902), Lexicon istoric retic ID (P886), RERO ID (obsolete) (P3065), SIKART ID (P781), Theaterlexikon der Schweiz ID (P1362)
ruRussiaRSL ID (person) (P947)
czCzech RepublicNL CR AUT ID (P691)
lvLatviaNational Library of Latvia ID (P1368)
roRomaniaNational Library of Romania ID (P1003)
jaJapanNDL Authority ID (P349), NACSIS-CAT author ID (P271)
artsThe artsBibliothèque nationale de France ID (P268), VIAF ID (P214), WorldCat Identities ID (superseded) (P7859), Auckland Art Gallery artist ID (P3372), Art Gallery of South Australia creator ID (P6804), Australian Dictionary of Biography ID (P1907), Australian Women's Register ID (P4186), Bildindex der Kunst und Architektur ID (P2092), CWGC person ID (P1908), DAAO ID (P1707), Dictionary of Irish Biography ID (P6829), Stuttgart Database of Scientific Illustrators ID (P2349), Find NZ Artists ID (P6792), GND ID (P227), Google Scholar author ID (P1960), Joconde work ID (P347), KulturNav-ID (P1248), Library of Congress authority ID (P244), U.S. National Archives Identifier (P1225), National Gallery of Victoria artist ID (P2041), Libraries Australia ID (P409), Photographers’ Identities Catalog ID (P2750), RKDartists ID (P650), RKDimages ID (P350), SIKART ID (P781), SNAC ARK ID (P3430), Te Papa agent ID (P3544), NLA Trove people ID (P1315), Union List of Artist Names ID (P245), Treccani's Biographical Dictionary of Italian People ID (P1986), Deutsche Biographie (GND) ID (P7902), Biografisch Portaal van Nederland ID (P651), ISIL (P791), Grammy Awards artist ID (P7303)
svSwedenSELIBR ID (P906), Libris-URI (P5587)
plPolandNLP ID (old) (P1695), PLWABN ID (P7293)
nlNetherlandsBiografisch Portaal van Nederland ID (P651), Nationale Thesaurus voor Auteursnamen ID (P1006), RKDartists ID (P650), RKDimages ID (P350)
uyUruguayautores.uy ID (P2558)
ilIsraelNational Library of Israel J9U ID (P8189), Information Center for Israeli Art artist ID (P1736)
twTaiwanNCL ID (P1048)
trTurkeyTDV İslam Ansiklopedisi ID (P7314)
krSouth KoreaNational Library of Korea ID (P5034)
itItalySBN author ID (P396), Italian Navy Lighthouses and Beacons ID (P3863), Treccani's Biographical Dictionary of Italian People ID (P1986), Vatican Library VcBA ID (P8034)
esSpainNational Library of Spain ID (P950), CANTIC ID (P9984)

See also