Vés al contingut

Mòdul:External links/conf/Sports/proves

De la Viquipèdia, l'enciclopèdia lliure
local configured_claims = {}

local function commons_formatter(id)
	return "https://commons.wikimedia.org/wiki/Category:" .. id:gsub(" ", "_")
end

configured_claims['ca'] = {

-- Futbol

	{ prop='P3605', message='[$2 $1: Fitxa] a 90minut.pl$3', langcode='pl' },
	{ prop='P3655', message='[$2 $1] a BDFutbol$3', langcode='ca' },
	{ prop='P1469', message='[$2 $1] Fitxa i estadístiques a la [[FIFA]]$3', langcode='en' }, -- uses archived URL
	{ prop='P2574', message='[$2 $1] a National-Football-Teams.com$3', langcode='en' },
	{ prop='P2446', message='[$2 $1, Fitxa] a Transfermarkt$3', langcode='en' },
	{ prop='P2193', message='[$2 Dades estadístiques sobre $1 a soccerbase.com]$3', langcode='en' },
	{ prop='P2369', message='[$2 $1, Fitxa] a Soccerway$3', langcode='en' },
	-- removed dead link: { prop='P3043', message='[$2 $1, Fitxa] a Scoresway.com$3', langcode='en' },
	{ prop='P7399', message='[$2 Fitxa de $1] a Futbolme$3', langcode='es' },
	-- disabled per TfD: { prop='P3047', message='[$2 $1] a footballzz.co.uk$3', langcode='en-uk' },
	{ prop='P3046', message='[$2 $1, fitxa] a ForaDeJogo$3', langcode='en' },
	{ prop='P3577', message='[$2 $1] al web de la [[Federació Croata de Futbol]]$3', langcode='hr' },
	{ prop='P3050', message="[$2 $1 - estadístiques internacionals] al lloc web de l'[[Associació de Futbol de la República Txeca]]$3", langcode='cs' },
	{ prop='P3681', message='[$2 $1] a [[ESPN FC]]$3', langcode='en' },
	{ prop='P3662', message="[$2 $1] al [[Federació de Futbol d'Ucraïna|FFU]]$3", langcode='uk' },
	{ prop='P3537', message='[$2 $1] a FootballDatabase.eu$3', langcode='en' },
	{ prop='P3663', message='[$2 $1] - Estadístiques de la [[Lliga txeca de futbol]] a Fotbal DNES$3', langcode='cs' },
	{ prop='P3538', message='[$2 $1 Fitxa] a Fussballdaten$3', langcode='de' },
	{ prop='P3657', message='[$2 $1] a Estadístiques del Futbol Croat$3', langcode='hr' },
	{ prop='P3565', message='[$2 $1] $3', short='[$2 J.League Data Site]', langcode='ja' },
	{ prop='P7359', message='[$2 $1] a La Preferente$3', langcode='es' },
	{ prop='P3665', message="[$2 $1] a [[L'Équipe]] Football$3", langcode='fr' },
	{ prop='P3683', message='[$2 $1, Estadístiques a la lliga francesa], LFP.fr,$3', langcode='fr' },
	{ prop='P2398', message='[$2 $1] a [[Major League Soccer]]$3', langcode='en' },
	{ prop='P2448', message='[$2 $1] a la [[Federació Turca de Futbol|TFF]]$3', short='[$2 Turkish Football Federation]', langcode='en' },
	{ prop='P2276', message='[$2 $1] – Fitxa i estadístiques a la [[UEFA]]$3', langcode='en' },

-- Tennis

	{ prop='P536',  message="[$2 $1] a l'[[ATP|ATP (tennis)]]$3", langcode='en' }, -- player
	{ prop='P597',  message="[$2 $1] a la [[WTA]]$3", langcode='en' }, -- player
	{ prop='P599',  message="[$2 $1] a la [[Federació Internacional de Tennis]]$3", langcode='en' }, -- player
	{ prop='P2641', message='[$2 $1] a la [[Copa Davis]]$3', langcode='en' },
	{ prop='P2642', message='[$2 $1] al lloc web de la [[Billie Jean King Cup]]$3', langcode='en' },

-- Other sports

	{ prop='P6297', message="[$2 Fitxa d'entrenador de $1] a la pàgina web de l'[[ACB]]$3", langcode='es' }, -- coach
	{ prop='P3525', message="[$2 Fitxa de $1] a la pàgina web de l'[[ACB]]$3", langcode='es' }, -- player
	{ prop='P2729', message='[$2 $1] al [[Badminton World Federation|BWF]].tournamentsoftware.com$3', langcode='en' },
	{ prop='P3620', message='[$2 $1] a la [[Federació Mundial de Bàdminton|BWFbadminton.com]]$3', langcode='en' },
	{ prop='P3314', message='[$2 $1] a 365Chess.com$3', langcode='en' },
	{ prop='P1665', message='[$2 $1] a ChessGames.com$3', langcode='en' },
	{ prop='P1440', message='[$2 $1] al web de la [[FIDE]]$3', langcode='en' },
	{ prop='P3940', message='[$2 $1] dades de competicions per equips a OlimpBase.org$3', langcode='en' },	
	{ prop='P1146', message="[$2 $1] a [[l'Associació Internacional de Federacions d'Atletisme|IAAF]]$3", langcode='en' },

-- Cinema

    { prop='P3593', message="[$2 ''$1''] a Catàleg de l'[[American Film Institute]]$3", langcode='en' },
	{ prop='P2019', message='[$2 $1] a [[Allmovie]]$3', langcode='en' },
	{ prop='P1562', message="[$2 ''$1''] a [[Allmovie]]$3", langcode='en' },
	{ prop='P1266', message='[$2 $1] a [[AlloCiné]]$3', langcode='fr' },
	{ prop='P1265', message="[$2 ''$1''] a [[AlloCiné]]$3", langcode='fr' },
	{ prop='P4933', message="[$2 ''$1''] a [[The Big Cartoon DataBase]]$3", langcode='en' },
	{ prop='P345', message='[$2 $1] a [[Internet Movie Database]]$3', langcode='en' }, -- title
	{ prop='P1659', message="[$2 ''$1''] a [[FilmAffinity]]$3", langcode='en' },
	{ prop='P2638', message="[$2 ''$1''] a [[TV.com]]$3", langcode='en' },
	{ prop='P1237', message="[$2 ''$1''] a [[Box Office Mojo]]$3", langcode='en' },
	{ prop='P1874', message="[$2 ''$1''] a [[Netflix.]]$3" },
	{ prop='P1258', message="[$2 ''$1''] a [[Rotten Tomatoes]]$3", langcode='en' },
	{ prop='P3058', message='[$2 $1] a [[Turner Classic Movies|TCM Movie Database]]$3', langcode='en' },
	{ prop='P3058', message="[$2 ''$1''] a [[Turner Classic Movies|TCM Movie Database]]$3", langcode='en' },

-- Xarxes socials

    { prop='P2013', message='[$2 $1] a [[Facebook]]$3' },
	{ prop='P3267', message='[$2 $1] a [[Flickr]]$3' },
	{ prop='P2003', message='[$2 $1] a [[Instagram]]$3' },
	{ prop='P2002', message='[$2 $1] a [[Twitter]]$3' },
	{ prop='P3265', message='[$2 $1] a [[MySpace]]$3' },
	{ prop='P4015', message='[$2 $1] a [[Viemo]]$3' },
	
-- Others

	{ 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 sports links with data from Wikidata]]',
	['no-data-text']               = "",
	['no-data-cat']                = '[[Categoria:Articles using sports links with no data in Wikidata]]',
	['no-wikilink']                = "''This article has no link in Wikidata''",
	['no-wikilink-cat']            = "[[Categoria:Articles using sports links with no link in Wikidata]]",
	['with-local-cat']             = '[[Categoria:Articles using sports links with local values]]',
	['track-cat-wd-wd']            = '[[Categoria:Articles using sports links with $1 from Wikidata]]',
	['track-cat-local-local']      = '[[Categoria:Articles using sports links with $1 from local value]]',
	['track-cat-wd-local']         = '[[Categoria:Articles using sports links with $1 from Wikidata but has local value]]',
	['track-cat-local-wd']         = '[[Categoria:Articles using sports links with $1 from local value but has Wikidata]]',
	['track-cat-local-wd-equal']   = "[[Categoria:Articles using sports links with $1 from local value same as Wikidata]]",
	['track-cat-local-wd-unequal'] = "[[Categoria:Articles using sports 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