Перейти к содержанию

Амодуль:Authority control/config/doc

Аматериал Авикипедиа аҟынтә - зхы иақәиҭу аенциклопедиа

Это страница документации Амодуль:Authority control/config.

Contains configuation details for Амодуль:Authority control.

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 Ашаблон:Авторитет змоу адыррақәа only.

The syntax below generates a link to the Dictionary of Irish Biography in section 5. It gets its data from Wikidata property (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',
},
  • 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.

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

SectionDescriptionАиԥшрагәаҭагақәа
1АжәларбжьаратәP2163 (P2163), P213 (P213), P214 (P214), P10832 (P10832)
2АмилаҭтәP1015 (P1015), P1890 (P1890), P950 (P950), P268 (P268), P268 (P268), P3788 (P3788), P9984 (P9984), P227 (P227), P396 (P396), P8189 (P8189), P8980 (P8980), P11249 (P11249), P244 (P244), P5587 (P5587), P1368 (P1368), P1048 (P1048), P349 (P349), P691 (P691), P409 (P409), P3348 (P3348), P5034 (P5034), P1003 (P1003), P1375 (P1375), P1006 (P1006), P7293 (P7293), P1005 (P1005), P1695 (P1695), P947 (P947), P906 (P906), P8034 (P8034)
3АгеографиатәP3562 (P3562), P2980 (P2980), P5818 (P5818), P3920 (P3920), P4038 (P4038), P9725 (P9725), P4535 (P4535), P4143 (P4143), P1886 (P1886), P3863 (P3863), P3601 (P3601), P982 (P982), P1004 (P1004), P380 (P380), P3563 (P3563), P4055 (P4055), P3223 (P3223), P1584 (P1584), P4423 (P4423), P5288 (P5288), P454 (P454), P3723 (P3723), P3993 (P3993), P3326 (P3326)
4АкадемикцәаP864 (P864), P428 (P428), P271 (P271), P2456 (P2456), P1960 (P1960), P10299 (P10299), P4955 (P4955), P549 (P549), P496 (P496), P3829 (P3829), P1053 (P1053), P1153 (P1153), P1556 (P1556)
5АртистцәаP3372 (P3372), P4114 (P4114), P6804 (P6804), P5226 (P5226), P1707 (P1707), P2349 (P2349), P8381 (P8381), P6792 (P6792), P7303 (P7303), P1736 (P1736), P1248 (P1248), P9692 (P9692), P434 (P434), P2174 (P2174), P2268 (P2268), P5368 (P5368), P2041 (P2041), P2750 (P2750), P5321 (P5321), P650 (P650), P781 (P781), P4581 (P4581), P3544 (P3544), P245 (P245)
6АуааP1907 (P1907), P2558 (P2558), P4186 (P4186), P865 (P865), P651 (P651), P1908 (P1908), P1986 (P1986), P11646 (P11646), P6829 (P6829), P7902 (P7902), P4534 (P4534), P1146 (P1146), P791 (P791), P2418 (P2418), P1045 (P1045), P1315 (P1315), P6213 (P6213), P1157 (P1157)
7ЕгьырҭP2092 (P2092), P5302 (P5302), P8671 (P8671), P4613 (P4613), P902 (P902), P9070 (P9070), P347 (P347), P886 (P886), P1330 (P1330), P966 (P966), P436 (P436), P1407 (P1407), P435 (P435), P1225 (P1225), P5504 (P5504), P350 (P350), P3430 (P3430), P269 (P269), P1323 (P1323), P7314 (P7314), P1362 (P1362)

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 Италиа (Q38) and includes the following properties: ICCU акод (P396), Italian Navy Lighthouses and Beacons ID (P3863), Аиталианцәа биографиатә жәар (P1986), VcBA акод (P8034).

The currently recognised whitelists are listed below: Ошибка Lua в Амодуль:Authority_control/documentation на строке 163: attempt to concatenate a nil value.

Шәахә. иара убас

[акод аредакциазура]