Модуль:Wikidata2/config
Перейти до навігації
Перейти до пошуку
Документація модуля[створити]
Зараз цей модуль не має відповідної документації. Якщо вам відомі призначення та засади використання цього модуля, будь ласка, напишіть хоча б коротеньку документацію. |
Дописувачі можуть експериментувати на підсторінках пісочниця (створити | дзеркало) та тести (створити) цього модуля. Підсторінки цієї сторінки. |
-- Property configuration for Wikidata module
return {
global = {
separator = ', ',
conjunction = ' или ',
},
presets = {
['from-to'] = {
['property-module'] = 'Wikidata/date',
['property-function'] = 'formatDateIntervalProperty',
},
['country'] = {
['claim-module'] = 'Wikidata2/Places',
['claim-function'] = 'formatCountryClaimWithFlag',
},
['link'] = {
['value-module'] = 'Wikidata/link',
['value-function'] = 'fromModule',
},
['list'] = {
},
['name'] = {
monolingualLangTemplate = 'lang',
separator = '<br>',
conjunction = '<br>',
},
['place'] = {
['claim-module'] = 'Wikidata2/Places',
['claim-function'] = 'formatPlaceWithQualifiers',
},
['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>',
}
},
properties = {
P17 = {
preset = 'country',
},
P19 = {
preset = 'place',
separator = ',</li><li>',
conjunction = ' или ',
},
P20 = {
preset = 'place',
separator = ',</li><li>',
conjunction = ' или ',
},
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',
},
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',
},
P373 = {
['value-module'] = 'Wikidata/media',
['value-function'] = 'formatCommonsCategory',
limit = 1,
},
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 = ' или ',
},
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)',
},
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'
},
},
};