Модуль:Wikidata/config — различия между версиями
Материал из Н.Ф. Федоров
м (это-ж не строка) |
Petrov (обсуждение | вклад) м (1 версия импортирована) |
(нет различий)
|
Текущая версия на 17:08, 14 апреля 2018
Для документации этого модуля может быть создана страница Модуль:Wikidata/config/doc
-- Property configuration for Wikidata module return { global = { separator = ', ', conjunction = ' и ', }, presets = { ['from-to'] = { ['property-module'] = 'Wikidata/date', ['property-function'] = 'formatDateIntervalProperty', }, ['country'] = { ['claim-module'] = 'Wikidata/Places', ['claim-function'] = 'formatCountryClaimWithFlag', before = '<ul><li>', separator = '</li><li>', conjunction = '</li><li>', after = '</li></ul>' }, ['link'] = { ['value-module'] = 'Wikidata/link', ['value-function'] = 'fromModule', }, ['list'] = { before = '<ul><li>', separator = '</li><li>', conjunction = '</li><li>', after = '</li></ul>' }, ['name'] = { monolingualLangTemplate = 'lang', separator = '<br>', conjunction = '<br>', }, ['place'] = { ['claim-module'] = 'Wikidata/Places', ['claim-function'] = 'formatPlaceWithQualifiers', before = '<ul><li>', separator = '</li><li>', conjunction = '</li><li>', after = '</li></ul>' }, ['quantity (date)'] = { ['claim-module'] = 'Wikidata/number', ['claim-function'] = 'formatQuantityWithDateClaim', before = '<ul><li>', separator = '</li><li>', conjunction = '</li><li>', after = '</li></ul>' }, }, datatypes = { commonsMedia = { limit = 1, references = false, size = '267x400px', separator = '<br>', conjunction = '<br>', }, ['external-id'] = { references = false, }, ['globe-coordinate'] = { limit = 1, references = false, }, url = { separator = '<br>', conjunction = '<br>', }, quantity = { siConversion = true } }, properties = { P17 = { preset = 'country', }, P19 = { preset = 'place', separator = ',</li><li>', conjunction = ' или </li><li>', }, P20 = { preset = 'place', separator = ',</li><li>', conjunction = ' или </li><li>', }, P22 = { conjunction = ' или ' }, P25 = { conjunction = ' или ' }, P27 = { preset = 'country', }, P41 = { size = '150x200px', }, P57 = { preset = 'list', }, P58 = { preset = 'list', }, P59 = { category = 'P910', }, P69 = { preset = 'list', category = 'P3876', }, P94 = { size = '100x200px', }, P86 = { preset = 'list', }, P106 = { ['claim-module'] = 'Wikidata/item', ['claim-function'] = 'formatEntityWithGenderClaim', conjunction = ', ', }, P108 = { preset = 'list', category = 'P4195', }, P109 = { size = '150x150px', }, P117 = { size = '290x300px', }, P119 = { preset = 'place', thisLocationOnly = 'true', }, P154 = { size = '220x80px', }, P159 = { preset = 'place', }, P161 = { preset = 'list', }, P162 = { preset = 'list', }, P166 = { ['value-module'] = 'Wikidata/Medals', ['value-function'] = 'formatMedalValue', before = '<div style="text-align:justify">', after = '</div>', separator = ' ', conjunction = ' ', references = false, }, P212 = { preset = 'link', }, P225 = { preset = 'list', ['claim-module'] = 'Wikidata/Biology', ['claim-function'] = 'formatTaxonNameClaim', }, P242 = { size = '300x300px', }, P247 = { formatter = 'http://nssdc.gsfc.nasa.gov/nmc/spacecraftOrbit.do?id=$1', }, P267 = { preset = 'link', }, P276 = { preset = 'place', }, P286 = { preset = 'list', }, P296 = { formatter = 'http://osm.sbin.ru/esr/esr:$1', }, P344 = { preset = 'list', }, P345 = { preset = 'link', }, P348 = { preset = 'list', ['property-module'] = 'Wikidata/Software', ['property-function'] = 'formatVersionProperty', }, P361 = { category = 'P910', }, P373 = { ['value-module'] = 'Wikidata/media', ['value-function'] = 'formatCommonsCategory', limit = 1, }, P414 = { ['claim-module'] = 'Wikidata/item', ['claim-function'] = 'applyDefaultTemplate', }, P495 = { preset = 'country', }, P505 = { preset = 'list', }, P512 = { ['property-module'] = 'Wikidata/P512', ['property-function'] = 'formatAcademicDegree', }, P527 = { preset = 'list', }, P551 = { preset = 'place', }, P569 = { ['claim-module'] = 'Wikidata/date', ['claim-function'] = 'formatDateOfBirthClaim', }, P570 = { ['claim-module'] = 'Wikidata/date', ['claim-function'] = 'formatDateOfDeathClaim', }, P607 = { preset = 'list', }, P685 = { formatter = 'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=$1', }, P721 = { preset = 'link', }, P764 = { preset = 'link', }, P957 = { preset = 'link', }, P1082 = { preset = 'quantity (date)', unit = 'чел.', }, P1098 = { preset = 'quantity (date)', unit = 'чел.', }, P1128 = { preset = 'quantity (date)', unit = 'чел.', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P1195 = { ['value-module'] = 'Wikidata/Software', ['value-function'] = 'formatExtension', conjunction = ' или ', }, P1246 = { preset = 'link', }, P1402 = { preset = 'link', }, P1448 = { preset = 'name', }, P1477 = { preset = 'name', }, P1532 = { preset = 'country', }, P1559 = { preset = 'name', }, P1621 = { size = '300x300px', }, P1705 = { preset = 'name', }, P1809 = { preset = 'list', }, P2031 = { preset = 'from-to', to = 'P2032', }, P2043 = { preset = 'quantity (date)', }, P2046 = { preset = 'quantity (date)', }, P2047 = { siConversion = false, }, P2137 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P2139 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P2226 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P2295 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P2403 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, P2910 = { size = '100x80px', }, P3362 = { preset = 'quantity (date)', ['property-module'] = 'Wikidata/number', ['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator' }, }, };