Mòdul:External links/conf/Others/proves
Aparença
Podeu crear la pàgina d'ús per documentar aquest mòdul Lua. |
local configured_claims = {}
local function commons_formatter(id)
return "https://commons.wikimedia.org/wiki/Category:" .. id:gsub(" ", "_")
end
configured_claims['ca'] = {
{ prop='P1581', message='[$2 $1]$3', short='[$2 Blog oficial]' },
{ prop='P1047', message="[$2 $1 Fitxa] a ''catholic-hierarchy.org''$3" },
{ prop='P804', message='«[$2 $1]». Geographic Names Information System. United States Geological Survey.$3' },
{ prop='P590', message='«[$2 $1]». [[Geographic Names Information System]], [[Servei Geològic dels Estats Units]].$3' },
{ prop='P998', message='[$2 $1] a Curlie$3' },
{ prop='P3758', message='[$2 $1] a la base de dades de la Fundación Docomomo Ibérico$3' },
{ prop='P3597', message="[$2 ''$1''] Paquet d'Android al repositori d'[[F-Droid]]$3" },
{ prop='P2266', message='[$2 $1] al [[Fashion Model Directory]]$3' },
{ prop='P11308', message='«[$2 $1]». [[Grand Comics Database]].$3' },
{ prop='P3589', message='[$2 $1] al [[Grand Comics Database]]$3' },
{ prop='P2037', message='[$2 $1] a [[Github]]$3' },
{ prop='P675', message="[$2 ''$1''] a [[Google Books]]$3" },
{ prop='P6015', message="[$2 $1] de la ''[[Handbook of Texas]]'' Online$3" },
{ prop='P6760', message='[$2 $1] a [[Know Your Meme]]$3' },
{ prop='P3802', message='[$2 $1] a [[Launchpad]]$3', langcode='en' },
{ prop='P2209', message='[$2 $1] a [[SourceForge|SourceForge.net]]$3' },
{ prop='P4073', message="[$2 ''$1''] a [[Wikia]]$3" },
{ prop='P8024', message='«[$2 $1]» (en anglès). NobelPrize.org. Nobel Media AB.$3' },
{ prop='P856', message='[$2 $1 - Lloc web oficial]$3' },
{ prop='P492', message='[$2 $1]$3' },
{ prop='P481', message='[$2 $1]$3' },
{ prop='P6126', message="«[$2 $1]». ''Santi, beati e testimoni - Enciclopedia dei santi''.$3" },
{ prop='P5415', message="[$2 ''$1''] a Who Named It$3" },
{ prop='P7859', message='[$2 Treballs per o sobre $1] en biblioteques (catàleg WorldCat)$3', langcode='en' },
}
local messages_conf = {}
messages_conf['ca'] = {
['short-list-separator'] = ', ',
['with-data-cat'] = '[[Categoria:Articles using others links with data from Wikidata]]',
['no-data-text'] = "",
['no-data-cat'] = '[[Categoria:Articles using others with no data in Wikidata]]',
['no-wikilink'] = "''This article has no link in Wikidata''",
['no-wikilink-cat'] = "[[Categoria:Articles using others links with no link in Wikidata]]",
['with-local-cat'] = '[[Categoria:Articles using others links with local values]]',
['track-cat-wd-wd'] = '[[Categoria:Articles using others links with $1 from Wikidata]]',
['track-cat-local-local'] = '[[Categoria:Articles using others links with $1 from local value]]',
['track-cat-wd-local'] = '[[Categoria:Articles using others links with $1 from Wikidata but has local value]]',
['track-cat-local-wd'] = '[[Categoria:Articles using others links with $1 from local value but has Wikidata]]',
['track-cat-local-wd-equal'] = "[[Categoria:Articles using others links with $1 from local value same as Wikidata]]",
['track-cat-local-wd-unequal'] = "[[Categoria:Articles using others links with $1 from local value different from Wikidata]]",
}
local limits = {
['links-shown'] = 10, -- maximum number of links shown in the article.
}
local p = {}
function p.getConfiguredClaims (self, lang)
return configured_claims[lang]
end
function p.getLimits (self)
return limits
end
function p.getMessage (self, lang, msg)
return messages_conf[lang][msg]
end
-- metatable for the export
local mt = {
-- adjust the installation of the module
['__call'] = function (self, lang)
self.configured_claims = configured_claims[lang]
self.messages_conf = messages_conf[lang]
return self
end
}
-- install the metatable
setmetatable(p, mt)
return p