Share to:

Modul:External links/conf/Film

local function bbfc_formatter(id)
	return mw.message.newRawMessage("http://www.bbfc.co.uk/node/$1", id):plain()
end

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

local configured_claims = {}
configured_claims['da'] = {
			-- danske
			
	{ prop ='P373', message ="[$2 ''$1''] – billeder, video eller lyd på [[Wikimedia Commons]]", langcode = 'en', genitiv = false, url_f=commons_formatter },	
	{ prop='P345',  message ="[$2 ''$1''] på [[Internet Movie Database]] $3", short="[$2 IMDb]", langcode ='en', genitiv = false },
	{ prop='P1804', message ="[$2 ''$1''] på [[Filmdatabasen]] $3", short="[$2 DFI]", langcode ='da', genitiv = false },
	{ prop='P3785', message ="[$2 ''$1''] på [[danskefilm.dk]]", short="[$2 danskefilm.dk]", langcode ='da', genitiv = false },
	{ prop='P3787', message ="[$2 ''$1''] på [[danskefilm.dk]]", short="[$2 danskefilm.dk]", langcode ='da', genitiv = false },
	{ prop='P4021', message ="[$2 ''$1''] på [[danskefilm.dk]]", short="[$2 danskefilm.dk]", langcode ='da', genitiv = false },
	{ prop='P4022', message ="[$2 ''$1''] på [[danskefilm.dk]]", short="[$2 danskefilm.dk]", langcode ='da', genitiv = false },
	{ prop='P4111', message ="[$2 ''$1''] på [[danskefilm.dk]]", short="[$2 danskefilm.dk]", langcode ='da', genitiv = false },
	{ prop='P8928', message ="[$2 ''$1''] på Filmstriben", short="[$2 Filmstriben]", langcode ='da', genitiv = false },
	{ prop='P4209', message ="[$2 ''$1''] på [[danskfilmogtv.dk]]", short="[$2 danskfilmogtv]", langcode ='da', genitiv = false },
	{ prop='P2518', message ="[$2 ''$1''] på [[Scope]]", short="[$2 Scope]", langcode ='da', genitiv = false },
	
				-- nordiske
	{ prop='P1439', message ="[$2 ''$1''] i [[Nasjonalbiblioteket]]s filmografi $3", short="[$2 Norsk Filmografi]", langcode ='nb', genitiv = false },
	{ prop='filmweb', message ="[$2 ''$1''] hos [[Filmweb]] $3", short="[$2 Filmweb]", langcode ='nb', genitiv = false, url="http://www.filmweb.no/film/article$1.ece", regex="\\d+" },
	{ prop='medietilsynet', message ="[$2 ''$1''] hos [[Medietilsynet]] $3", short="[$2 Medietilsynet]", langcode ='nb', genitiv = false, url="http://www.medietilsynet.no/filmdatabasen/?q=$1", regex=".+" },
	{ prop='nfi', message ="[$2 ''$1''] i [[Norsk filminstitutt]]s filmdatabase $3", short="[$2 NFI]", langcode ='en', genitiv = false, url="http://www.nfi.no/english/norwegianfilms/search/Film?key=$1", regex="[A-Za-z0-9]+" },
	{ prop='P2334', message ="[$2 ''$1''] i [[Svensk Filmdatabas]] $3", short="[$2 SFDb]", langcode ='sv', genitiv = false },
	{ prop='P1316', message ="[$2 ''$1''] i [[Svensk mediedatabas]] $3", short="[$2 Svensk mediedatabas]", langcode ='sv', genitiv = false },
	
				-- øvrige
	{ prop='P1265', message ="[$2 ''$1''] på [[AlloCiné]] $3", short="[$2 AlloCiné]", langcode ='fr', genitiv = false },
	{ prop='P1970', message ="[$2 ''$1''] på MovieMeter $3", short="[$2 MovieMeter]", langcode ='nl', genitiv = false },
	{ prop='P1562', message ="[$2 ''$1''] på [[AllMovie]] $3", short="[$2 Allmovie]", langcode ='en', genitiv = false },
	{ prop='P3593', message ="[$2 ''$1''] hos [[American Film Institute]] $3", short="[$2 AFI]", langcode ='en', genitiv = false },
	{ prop='P5384', message ="[$2 ''$1''] hos Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },
	{ prop='P4438', message ="[$2 ''$1''] hos [[British Film Institute]] $3", short="[$2 BFI]", langcode ='en', genitiv = false },
	{ prop = 'P1417', message ='[$2 $1 profil] hos [[Encyclopædia Britannica]] Online $3', langcode ='en', genitiv = true },
	{ prop='P2631', message ="[$2 ''$1''] på [[Turner Classic Movies]] $3", short="[$2 TCMdb]", langcode ='en', genitiv = false },
	{ prop='P4947', message ="[$2 ''$1''] på [[The Movie Database]] $3", short="[$2 TMDb]", langcode ='en', genitiv = false },
	{ prop='P1258', message ="[$2 ''$1''] på [[Rotten Tomatoes]] $3", short="[$2 Rotten Tomatoes]", langcode ='en', genitiv = false },
	{ prop='P1712', message ="[$2 ''$1''] på [[Metacritic]] $3", short="[$2 Metacritic]", langcode ='en', genitiv = false },
	{ prop='P1237', message ="[$2 ''$1''] på [[Box Office Mojo]] $3", short="[$2 Mojo]", langcode ='en', genitiv = false },
	{ prop='P480', message ="[$2 ''$1''] på Filmaffinity $3", short="[$2 Filmaffinity]", langcode ='en', genitiv = false },
	{ prop='P1874', message ="[$2 ''$1''] på [[Netflix]] $3", short="[$2 Netflix]", langcode ='en', genitiv = false },
	{ prop='filmsite', message ="[$2 ''$1''] hos [[Filmsite.org]] $3", short="[$2 Filmsite.org]", langcode ='en', genitiv = false, url="http://www.filmsite.org/$1.html", regex="[A-Za-z0-9]+" },
	{ prop='bfi', message ="[$2 ''$1''] hos British Screen online $3", short="[$2 BFI]", langcode ='en', genitiv = false, url="http://www.screenonline.org.uk/film/id/$1/", regex="[A-Za-z0-9]+" },
	{ prop='bbfc',  message ="[$2 ''$1''] på BBfc $3", short="[$2 BBfc]", langcode ='en', genitiv = false, url="http://www.bbfc.co.uk/node/$1", regex="\\d+" },
	{ prop='bbfc2', message ="[$2 ''$1''] på BBfc $3", short="[$2 BBfc]", langcode ='en', genitiv = false, url_f=bbfc_formatter, regex="\\d+" },
	
		-- Behind The Voice Actor
		{ prop='P5384',  message ="[$2 ''$1''] hos Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },	
		{ prop='P5387',  message ="[$2 ''$1''] hos Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },	
		{ prop='P5382',  message ="[$2 ''$1''] hos Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },	
		{ prop='P4965',  message ="[$2 ''$1''] hos Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },	
	
		-- tv-serier
	{ prop='P4933',  message ="[$2 ''$1''] hos [[The Big Cartoon DataBase]] $3", short="[$2 BCDB]", langcode ='en', genitiv = false },	
	{ prop='P4983',  message ="[$2 ''$1''] hos [[The Movie Database]] $3", short="[$2 The Movie Database]", langcode ='en', genitiv = false },	
	{ prop='P3804',  message ="[$2 ''$1''] hos [[TV Guide]] $3", short="[$2 TV Guide]", langcode ='en', genitiv = false },	
	{ prop='P4835',  message ="[$2 ''$1''] hos [[TheTVDB]] $3", short="[$2 TheTVDB.com]", langcode ='en', genitiv = false },	
	{ prop='P2638',  message ="[$2 ''$1''] hos [[TV.com]] $3", short="[$2 TV.com]", langcode ='en', genitiv = false },	
	
			-- anime
	{ prop='P1985', message ="[$2 ''$1''] hos [[Anime News Network]]'s Encyklopædi $3", short="[$2 Anime News Network]", langcode ='en', genitiv = false },	
	{ prop='P5646', message ="[$2 ''$1''] hos AniDB $3", short="[$2 AniDB]", langcode ='en', genitiv = false },		
	{ prop='P4086', message ="[$2 ''$1''] hos [[MyAnimeList]] $3", short="[$2 MyAnimeList]", langcode ='en', genitiv = false },		
}
local messages_conf = {}
messages_conf['da'] = {
	['short-list-separator'] = " '''·''' ",
	['no-data-cat'] = '[[Kategori:Artikler uden filmhenvisninger fra Wikidata]]',
	['with-data-cat'] = '[[Kategori:Artikler med filmhenvisninger fra Wikidata]]',
	['with-local-cat'] = '[[Kategori:Artikler med filmhenvisninger fra lokale værdier]]',
	['no-data-text'] = "''Artiklen har ingen egenskaber for filmdatabaser i Wikidata''",
	['no-wikilink'] = "''Artiklen mangler opslag i Wikidata''",
	['no-wikilink-cat'] = "[[Kategori:Artikler med filmhenvisninger og uden forbindelse til Wikidata]]",
	['track-cat-wd-wd'] = '[[Kategori:Artikler med filmhenvisninger for $1 fra Wikidata]]',
	['track-cat-local-local'] = '[[Kategori:Artikler med filmhenvisninger for $1 lokalt]]',
	['track-cat-wd-local'] = '[[Kategori:Artikler med filmhenvisninger med $1 fra Wikidata men værdi lokalt]]',
	['track-cat-local-wd'] = '[[Kategori:Artikler med filmhenvisninger med $1 defineret lokalt men værdi fra Wikidata]]',
	['track-cat-local-wd-equal'] = '[[Kategori:Artikler med filmhenvisninger hvor $1 sin værdi lokalt er lig med Wikidata]]',
	['track-cat-local-wd-unequal'] = '[[Kategori:Artikler med filmhenvisninger hvor $1 sin værdi lokalt er forskellige fra 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.getMessage (self, lang, msg)
	return messages_conf[lang][msg] 
end

function p.getLimits (self)
	return limits
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

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya