Share to:

Modul:External links/conf/Filmperson

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

local configured_claims = {}
configured_claims['da'] = {
	-- vigtige
	{ prop ='P373', message ='[[Fil:Commons-logo.svg|14px|link=commons:Hovedside]] [[Wikimedia Commons|Commons]]: [$2 Kategori:$1] – billeder, video eller lyd', 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 },
	
	-- danske
	{ prop='P2626',  message ="[$2 $1] på [[Filmdatabasen]] $3", short="[$2 Filmdb]", langcode ='da', genitiv = false },
	{ prop='P3786',  message ="[$2 $1] på [[danskefilm.dk]]", short="[$2 filmdk]", langcode ='da', genitiv = false },
	{ prop='P4112',  message ="[$2 $1] på [[danskfilmogtv.dk]]", short="[$2 filmdk]", langcode ='da', genitiv = false },
	{ prop='P2519',  message ="[$2 $1] på [[Scope]]", short="[$2 Scope]", langcode ='da', genitiv = false },
	
	-- nordiske
	{ prop='P2168', message ="[$2 $1] på [[Svensk Filmdatabas]] $3", short="[$2 SFDb]", langcode ='sv', genitiv = false },
	{ prop='filmfront', message ="[$2 $1] på [[Filmfront]] $3", short="[$2 Filmfront]", langcode ='nb', url="http://www.filmfront.no/aktor/$1/", regex="\\d+", genitiv = false },
	{ prop='filmweb', message ="[$2 $1] på [[Filmweb]] $3", short="[$2 Filmweb]", langcode ='nb', url="http://www.filmweb.no/profil/article$1.ece", regex="\\d+", genitiv = false },
	
	-- øvrige
	{ prop='P1266', message ="[$2 $1] på [[AlloCiné]] $3", short="[$2 Allociné]", langcode ='fr', genitiv = false },
	{ prop='P2019', message ="[$2 $1] på [[AllMovie]] $3", short="[$2 Allmovie]", langcode ='en', genitiv = false },
	{ prop='P3056', message ="[$2 $1] på [[Turner Classic Movies]] $3", short="[$2 TCMDb]", langcode ='en', genitiv = false },
	{ prop='P1258', message ="[$2 $1] på [[Rotten Tomatoes]] $3", short="[$2 Rotten Tomatoes]", langcode ='en', genitiv = false },
	{ prop='P3845', message ="[$2 $1] på [[TV Guide]] $3", short="[$2 TV Guide]", langcode ='en', genitiv = false },
	{ prop='P4985', message ="[$2 $1] på The Movie Database $3", short="[$2 The Movie Database]", langcode ='en', genitiv = false },
	{ prop='P1220', message ="[$2 $1] på [[Internet Broadway Database]] $3", short="[$2 Internet Broadway Dtabase]", langcode ='en', genitiv = false },
	{ prop='P3668', message ="[$2 $1] på [[Box Office Mojo]] $3", short="[$2 Box Office Mojo]", langcode ='en', genitiv = false },
	{ prop='P6777', message ="[$2 $1] på danskefilmstemmer.dk $3", short="[$2 danskefilmstemmer.dk]", langcode ='da', genitiv = false },

	-- anden type af film-baser
	{ prop='P3351', message ="[$2 $1] på [[Adult Film Database]] $3", short="[$2 Adult Film Database]", langcode ='en', genitiv = false },
	{ prop='P5007', message ="[$2 ''$1''] på Behind The Voice Actors $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },
	{ prop='P1417', message ='[$2 $1] på [[Encyclopædia Britannica]] Online $3', langcode ='en', genitiv = false },
	{ prop='P3869', message ="[$2 $1] på [[Internet Adult Film Database]] $3", short="[$2 Internet Adult Film Database]", langcode ='en', genitiv = false },
	{ prop='P4505', message ="[$2 $1] på [[Internet Adult Film Database]] $3", short="[$2 Internet Adult Film Database]", langcode ='en', genitiv = false },
	{ prop='P3913', message ="[$2 $1] på [[MobyGames]] $3", short="[$2 MobyGames]", langcode ='en', genitiv = false },
	
		-- fiktiv person
	{ prop='P5107', message ="[$2 ''$1''] på Behind The Voice Actors (fiktiv person) $3", short="[$2 Behind The Voice Actors]", langcode ='en', genitiv = false },
}
local messages_conf = {}
messages_conf['da'] = {
	['short-list-separator'] = " '''·''' ",
	['no-data-cat'] = '[[Kategori:Artikler uden filmpersonhenvisninger fra Wikidata]]',
	['with-data-cat'] = '[[Kategori:Artikler med filmpersonhenvisninger fra Wikidata]]',
	['no-data-text'] = "''Artiklen har ingen egenskaber for filmpersondatabaser i Wikidata''",
	['no-wikilink'] = "''Artiklen mangler opslag i Wikidata''",
	['no-wikilink-cat'] = "[[Kategori:Artikler med filmpersonhenvisninger og uden kobling til Wikidata]]",
	['with-local-cat'] = '[[Kategori:Artikler med filmpersonhenvisninger fra lokale værdier]]',
	['track-cat-wd-wd'] = '[[Kategori:Artikler med filmpersonhenvisninger for $1 fra Wikidata]]',
	['track-cat-local-local'] = '[[Kategori:Artikler med filmpersonhenvisninger for $1 lokalt]]',
	['track-cat-wd-local'] = '[[Kategori:Artikler med filmpersonhenvisninger med $1 fra Wikidata men værdi lokalt]]',
	['track-cat-local-wd'] = '[[Kategori:Artikler med filmpersonhenvisninger med $1 definert lokalt men værdi fra Wikidata]]',
	['track-cat-local-wd-equal'] = '[[Kategori:Artikler med filmpersonhenvisninger hvor $1 sin værdi lokalt er lid med Wikidata]]',
	['track-cat-local-wd-unequal'] = '[[Kategori:Artikler med filmpersonhenvisninger hvor $1 sin værdi lokalt er forskellig 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