Module:Pornbasedata/config

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search

Documentation for this module may be created at Module:Pornbasedata/config/doc

-- Property configuration for Pornbasedata module
return {
	global = {
		separator = ', ',
		conjunction = ', ',
	},
	presets = {
		['catonly'] = {
			datatype = 'wikibase-item',
			conjunction = '',
			invisible = true,
			['value-module'] = 'Pornbasedata',
			['value-function'] = 'extractCategory',
			references = '',
			category = 'P50',
		},
		['country'] = {
			['claim-module'] = 'Pornbasedata/Places',
			['claim-function'] = 'formatCountryClaimWithFlag',
			before = '<ul><li>',
			separator = '</li><li>',
			conjunction = '</li><li>',
			after = '</li></ul>',
		},
		['from-to'] = {
			['property-module'] = 'Pornbasedata/preambledate',
			['property-function'] = 'formatDateIntervalProperty',
		},
		['link'] = {
			['value-module'] = 'Pornbasedata/link',
			['value-function'] = 'fromModule',
		},
		['list'] = {
			before = '<ul><li>',
			separator = '</li><li>',
			conjunction = '</li><li>',
			after = '</li></ul>',
		},
		['name'] = {
			monolingualLangTemplate = 'lang',
			separator = ',&#32;',
			conjunction = ',&#32;',
		},
		['place'] = {
			['claim-module'] = 'Pornbasedata/Places',
			['claim-function'] = 'formatPlaceWithQualifiers',
			separator = ',&#32;',
			conjunction = ',&#32;',
		},
		['quantity (date)'] = {
			before = '<ul><li>',
			separator = '</li><li>',
			conjunction = '</li><li>',
			after = '</li></ul>',
			qualifier = 'P60',
		},
	},
	datatypes = {
		commonsMedia = {
			limit = 1,
			references = false,
			size = '274x400px',
			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 = {
		P78 = { datatype = 'wikibase-item', },
		P40 = {
			datatype = 'wikibase-item',
			preset = 'country',
		},
		P213 = { 
			datatype = 'commonsMedia', 
			fixdouble = true,
		},
		P20 = {
			datatype = 'wikibase-item',
			preset = 'place',
			separator = ',&#32;',
		},
		P23 = {
			datatype = 'wikibase-item',
			preset = 'place',
			separator = ', ',
		},
	    P124 = {
	        separator = ',&#32;',
	        conjunction = '&#32;and&#32;',
	        references = true,
	    },
		P251 = {
			datatype = 'wikibase-item',
			conjunction = ' or '
		},
		P253 = {
			datatype = 'wikibase-item',
			conjunction = ' or '
		},
		P255 = { datatype = 'wikibase-item', },
		P133 = {
			datatype = 'wikibase-item',
			preset = 'country',
		},
		P1 = { datatype = 'wikibase-item', },
		P256 = { datatype = 'wikibase-item', },
		P257 = { datatype = 'wikibase-item', },
		P259 = {
			datatype = 'wikibase-item',
			category = 'P50',
		},
		P260 = {
			category = 'P261',
		},
		P262 = {
			datatype = 'wikibase-item',
			preset = 'list',
		},
		P263 = {
			datatype = 'wikibase-item',
			preset = 'list',
		},
		P151 = {
			datatype = 'wikibase-item',
			preset = 'list',
			category = 'P264',
			qualifier = 'P41',
		},
		P266 = {
			datatype = 'wikibase-item',
			preset = 'list',
		},
		P267 = { datatype = 'wikibase-item', },
		P269 = {
			datatype = 'wikibase-item',
			preset = 'list',
			category = 'P270',
		},
		P49 = { datatype = 'wikibase-item', },
		P272 = {
			datatype = 'wikibase-item',
		},
		P273 = {
			preset = 'place',
		},
		P240 = {
			preset = 'list',
		},
		P274 = {
			preset = 'list',
		},
		P206 = {
			datatype = 'wikibase-item',
			['property-module'] = 'Pornbasedata/Medals',
			['property-function'] = 'formatProperty',
			['value-module'] = 'Pornbasedata/Medals',
			['value-function'] = 'formatValue',
			before = '<div style="text-align:justify">',
			after = '</div>',
			separator = '&#32;',
			conjunction = '&#32;',
			references = false,
		},
		P275 = { datatype = 'wikibase-item', },
		P196 = {
			preset = 'place',
		},	
		P276 = {
			preset = 'list',
		},
		P50 = {
			rawArticle = true,
		},
		P277 = {
			preset = 'list',
		},
		P16 = {
			preset = 'link',
		},
		P278 = {
			preset = 'list',
			['property-module'] = 'Pornbasedata/Software',
			['property-function'] = 'formatVersionProperty',
		},
		P279 = { datatype = 'wikibase-item', },
		P281 = {
			datatype = 'wikibase-item',
			['claim-module'] = 'Pornbasedata/item',
			['claim-function'] = 'formatEntityWithGenderClaim',
			conjunction = ',&#32;',
			category = 'P50',
		},
		P282 = {
			preset = 'country',
		},
		P283 = {
			preset = 'list',
		},
		P285 = {
			datatype = 'wikibase-item',
			['property-module'] = 'Pornbasedata/P512',
			['property-function'] = 'formatAcademicDegree',
		},
		P173 = {
			preset = 'list',
		},
		P286 = {
			references = false,
			qualifier = 'P288',
		},
		P290 = {
			preset = 'place',
		},
		P9 = {
			datatype = 'time',
			['claim-module'] = 'Pornbasedata/preambledate',
			['claim-function'] = 'formatDateOfBirthClaim',
		},
		P247 = {
			datatype = 'time',
			['claim-module'] = 'Pornbasedata/preambledate',
			['claim-function'] = 'formatDateOfDeathClaim',
		},
		P85 = { datatype = 'time', },
		P291 = { datatype = 'wikibase-item', },
		P292 = { datatype = 'wikibase-item', },
		P52 = { datatype = 'url', },
		P294 = {
			category = 'P296',
		},
		P288 = {
			preset = 'catonly',	
		},
		P59 = {
			datatype = 'quantity',
			preset = 'quantity (date)',
			unit = 'people',
			['property-module'] = 'Pornbasedata/number',
			['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
		},
		P297 = {
			datatype = 'quantity',
			preset = 'quantity (date)',
			unit = 'people',
			['property-module'] = 'Pornbasedata/number',
			['property-function'] = 'formatPropertyWithMostRecentClaimAndIndicator'
		},
		P298 = {
			['value-module'] = 'Pornbasedata/Software',
			['value-function'] = 'formatExtension',
			conjunction = ' or ',
		},
		P5 = {
			datatype = 'monolingualtext',
			preset = 'name',
		},
		P7 = {
			datatype = 'monolingualtext',
			preset = 'name',
		},
		P13 = {
			datatype = 'monolingualtext',
			preset = 'name',
		},
		P77 = {
			datatype = 'monolingualtext',
			preset = 'name',
		},
		P225 = {
			preset = 'name',
		},
		P299 = {
			preset = 'country',
		},
		P79 = {
			datatype = 'monolingualtext',
			preset = 'name',
		},
		P300 = {
			rowArticle = true,
		},
		P302 = {
			preset = 'list',
		},
		P303 = {
			preset = 'from-to',
			to = 'P305',
			within = 'P247',
		},
		P306 = {
			datatype = 'quantity',
			preset = 'quantity (date)',
		},
		P156 = {
			siConversion = false,
		},
		P159 = {
			siConversion = false,
		},
		P307 = {
			siConversion = false,
		},
		P308 = { datatype = 'wikibase-item', },
		P309 = {
			siConversion = false,
		}
	},
	categories = {
		['links-to-entities-with-missing-label'] = 'Articles with links to PBD elements without a signature',
		['links-to-entities-with-wikibase-error'] = 'Pages with script errors using PBD',
		['links-to-entities-with-missing-local-language-label'] = 'Articles with links to PBD elements without a local language signature',
		['local-value-present'] = 'Articles overriding the value from PBD',
		['media-contains-local-caption'] = 'Local signature on the image from PBD',
		['media-contains-markup'] = 'Articles with wiki markup in the infobox image',
		['media-contains-local-double'] = 'The image in the article duplicates the image in the infobox',
		['value-contains-table'] = 'Articles with a tabular insertion in the infobox',
	},
	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 snak type.',
		['unknown-datavalue-type'] = 'Unknown datavalue type.',
		['unknown-entity-type'] = 'Unknown entity type.',
		['unknown-property-module'] = 'You need set property-module and property-function.',
		['unknown-claim-module'] = 'You need set claim-module and claim-function.',
		['unknown-value-module'] = 'You need set value-module and value-function.',
		['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'] = 'Value module not found.',
		['value-function-not-found'] = 'Value function not found.',
	},
	i18n = {
		somevalue = "''unknown''",
		novalue = '',
		-- Обстоятельства источника
		Q262 = '<span style="border-bottom: 1px dotted; cursor: help;" title="circa">ca. </span>',
		Q264 = '<span style="border-bottom: 1px dotted; cursor: help;" title="presumably">presumably </span>',
		Q265 = '<span style="border-bottom: 1px dotted; cursor: help;" title="less than">&lt; </span>',
	},
};