Modul:Wikidata/config
Videz
Mogoče bi radi ustvarili dokumentacijsko stran za ta Scribunto modul Urejevalci lahko preizkušate ta modul v peskovniku (ustvari | mirror) in testnihprimerih (ustvari). Prosimo, da dodate kategorije v /dok podstran. Podstrani te predloge. |
-- Property configuration for Wikidata module
return {
global = {
separator = ', ',
conjunction = ' in ',
},
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)'] = {
before = '<ul><li>',
separator = '</li><li>',
conjunction = '</li><li>',
after = '</li></ul>',
qualifier = 'P585',
},
},
datatypes = {
commonsMedia = {
limit = 1,
references = false,
size = '267x400px',
separator = '<br>',
conjunction = '<br>',
somevalue = '',
},
['external-id'] = {
references = false,
},
['globe-coordinate'] = {
limit = 1,
references = false,
},
url = {
separator = '<br>',
conjunction = '<br>',
references = false,
},
quantity = {
siConversion = true
}
},
properties = {
P6 = { datatype = 'wikibase-item', },
P17 = {
datatype = 'wikibase-item',
preset = 'country',
},
P18 = { datatype = 'commonsMedia', },
P19 = {
datatype = 'wikibase-item',
preset = 'place',
separator = ',</li><li>',
conjunction = ' или </li><li>',
},
P20 = {
datatype = 'wikibase-item',
preset = 'place',
separator = ',</li><li>',
conjunction = ' ali </li><li>',
},
P22 = {
datatype = 'wikibase-item',
conjunction = ' или '
},
P25 = {
datatype = 'wikibase-item',
conjunction = ' ali '
},
P26 = { datatype = 'wikibase-item', },
P27 = {
datatype = 'wikibase-item',
preset = 'country',
},
P31 = { datatype = 'wikibase-item', },
P37 = { datatype = 'wikibase-item', },
P40 = { datatype = 'wikibase-item', },
P41 = {
datatype = 'commonsMedia',
size = '150x200px',
},
P53 = {
datatype = 'wikibase-item',
category = 'P910',
},
P54 = {
category = 'P6112',
},
P57 = {
datatype = 'wikibase-item',
preset = 'list',
},
P58 = {
datatype = 'wikibase-item',
preset = 'list',
},
P59 = {
datatype = 'wikibase-item',
category = 'P910',
},
P69 = {
datatype = 'wikibase-item',
preset = 'list',
category = 'P3876',
qualifier = 'P582',
},
P94 = {
datatype = 'commonsMedia',
size = '100x200px',
},
P86 = {
datatype = 'wikibase-item',
preset = 'list',
},
P101 = { datatype = 'wikibase-item', },
P102 = {
datatype = 'wikibase-item',
preset = 'list',
qualifier = 'P582',
category = 'P6365',
},
P106 = {
datatype = 'wikibase-item',
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'formatEntityWithGenderClaim',
conjunction = ', ',
},
P108 = {
datatype = 'wikibase-item',
preset = 'list',
category = 'P4195',
},
P109 = {
datatype = 'commonsMedia',
size = '150x150px',
},
P117 = {
datatype = 'commonsMedia',
size = '290x300px',
},
P119 = {
datatype = 'wikibase-item',
preset = 'place',
thisLocationOnly = 'true',
},
P131 = { datatype = 'wikibase-item', },
P140 = {
datatype = 'wikibase-item',
},
P154 = {
size = '220x80px',
},
P159 = {
preset = 'place',
},
P161 = {
preset = 'list',
},
P162 = {
preset = 'list',
},
P163 = { datatype = 'wikibase-item', },
P166 = {
datatype = 'wikibase-item',
['property-module'] = 'Wikidata/Medals',
['property-function'] = 'formatProperty',
['value-module'] = 'Wikidata/Medals',
['value-function'] = 'formatValue',
before = '<div style="text-align:justify">',
after = '</div>',
separator = ' ',
conjunction = ' ',
references = false,
},
P190 = { datatype = 'wikibase-item', },
P212 = {
preset = 'link',
},
P225 = {
preset = 'list',
['claim-module'] = 'Wikidata/Biology',
['claim-function'] = 'formatTaxonNameClaim',
},
P237 = { datatype = 'wikibase-item', },
P241 = { datatype = 'wikibase-item', },
P242 = {
size = '300x300px',
},
P247 = {
formatter = 'http://nssdc.gsfc.nasa.gov/nmc/spacecraftOrbit.do?id=$1',
},
P267 = {
preset = 'link',
},
P276 = {
preset = 'place',
},
P281 = { datatype = 'string', },
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 = {
datatype = 'string',
['value-module'] = 'Wikidata/media',
['value-function'] = 'formatCommonsCategory',
limit = 1,
},
P374 = { datatype = 'external-id', },
P395 = { datatype = 'string', },
P410 = { datatype = 'wikibase-item', },
P412 = {
datatype = 'wikibase-item',
category = 'P910',
},
P413 = {
datatype = 'wikibase-item',
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'formatEntityWithGenderClaim',
conjunction = ', ',
category = 'P910',
},
P414 = {
['claim-module'] = 'Wikidata/item',
['claim-function'] = 'applyDefaultTemplate',
},
P421 = { datatype = 'wikibase-item', },
P473 = { datatype = 'string', },
P495 = {
preset = 'country',
},
P505 = {
preset = 'list',
},
P512 = {
datatype = 'wikibase-item',
['property-module'] = 'Wikidata/P512',
['property-function'] = 'formatAcademicDegree',
},
P527 = {
preset = 'list',
},
P551 = {
preset = 'place',
},
P569 = {
datatype = 'time',
['claim-module'] = 'Wikidata/date',
['claim-function'] = 'formatDateOfBirthClaim',
},
P570 = {
datatype = 'time',
['claim-module'] = 'Wikidata/date',
['claim-function'] = 'formatDateOfDeathClaim',
},
P571 = { datatype = 'time', },
P598 = { datatype = 'wikibase-item', },
P607 = {
datatype = 'wikibase-item',
preset = 'list',
},
P625 = { datatype = 'globe-coordinate', },
P685 = {
formatter = 'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=$1',
},
P721 = {
preset = 'link',
},
P764 = {
preset = 'link',
},
P803 = { datatype = 'wikibase-item', },
P856 = { datatype = 'url', },
P884 = {
preset = 'link',
},
P915 = {
category = 'P1740',
},
P957 = {
preset = 'link',
},
P1082 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'чел.',
},
P1098 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'чел.',
},
P1128 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'чел.',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P1174 = {
datatype = 'quantity',
preset = 'quantity (date)',
unit = 'чел.',
},
P1195 = {
['value-module'] = 'Wikidata/Software',
['value-function'] = 'formatExtension',
conjunction = ' или ',
},
P1246 = {
preset = 'link',
},
P1249 = { datatype = 'time', },
P1402 = {
preset = 'link',
},
P1448 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1476 = {
preset = 'name',
},
P1477 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1532 = {
preset = 'country',
},
P1543 = {
datatype = 'commonsMedia',
},
P1559 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1621 = {
size = '300x300px',
},
P1705 = {
datatype = 'monolingualtext',
preset = 'name',
},
P1809 = {
preset = 'list',
},
P2031 = {
preset = 'from-to',
to = 'P2032',
},
P2043 = {
datatype = 'quantity',
preset = 'quantity (date)',
},
P2044 = { datatype = 'quantity', },
P2046 = {
datatype = 'quantity',
preset = 'quantity (date)',
},
P2047 = {
siConversion = false,
},
P2120 = {
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'
},
P2583 = {
siConversion = false,
},
P2597 = {
category = 'P910',
},
P2650 = { datatype = 'wikibase-item', },
P2896 = {
siConversion = false,
},
P2910 = {
size = '100x80px',
},
P3362 = {
preset = 'quantity (date)',
['property-module'] = 'Wikidata/number',
['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
},
P4614 = {
category = 'P1200',
},
},
categories = {
['links-to-entities-with-missing-label'] = 'Članki s povezavami do elementov Wikipodatkov brez slovenske oznake',
['links-to-entities-with-wikibase-error'] = 'Википедия:Страницы с ошибками скриптов, использующих Викиданные',
['links-to-entities-with-missing-local-language-label'] = 'Википедия:Статьи со ссылками на элементы Викиданных без русской подписи',
['local-value-present'] = 'Kategorija:Članki z redefiniranimi elementi iz Wikipodatkov',
['media-contains-markup'] = 'Википедия:Статьи с вики-разметкой в изображении карточки',
['value-contains-table'] = 'Википедия:Статьи с табличной вставкой в карточке',
},
errors = {
['property-param-not-provided'] = 'Property-param-not-provided',
['entity-not-found'] = 'Entity-not-found.',
['unknown-claim-type'] = 'Unknown-claim-type.',
['unknown-snak-type'] = 'Unknown-claim-type.',
['unknown-datavalue-type'] = 'Unknown-datavalue-type.',
['unknown-entity-type'] = 'Unknown-entity-type.',
['unknown-property-module'] = 'Unknown-property-module.',
['unknown-claim-module'] = 'Unknown-claim-module.',
['unknown-value-module'] = 'You must set both value-module and value-function parameters.',
['property-module-not-found'] = 'Property-module-not-found',
["property-function-not-found"] = "Property-function-not-found.",
["claim-module-not-found"] = "Claim-module-not-found.",
["claim-function-not-found"] = "Claim-function-not-found.",
["value-module-not-found"] = "The module pointed by value-module not found.",
["value-function-not-found"] = "The function pointed by value-function not found."
},
i18n = {
somevalue = "''neznano''",
novalue = '',
circa = '<span style="border-bottom: 1px dotted; cursor: help;" title="okrog, približno">cca. </span>',
presumably = '<span style="border-bottom: 1px dotted; cursor: help;" title="domnevno">domnevno </span>',
},
};