Module:External links/conf/Sports
![]() | This Lua module is used on approximately 77,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
Module "External links/conf/Sports" contains configuration used by Module:External links
There are a number of rows in the variable configured_claims that describe which Wikidata properties should be used to create external links in articles. These rows are structured as follows:
{ prop='Pnnnn', message="$3 [$2 ''$1''] <description>", short="[$2 <text>]", langcode='aa', url="...", url_f=<function>, regex="...", genitive=<boolean>, track=<boolean> },
Where the following is the case:
- prop – The property name to process.
Pnnnn
– If this is a "P" followed by a number (Pnnnn), it is assumed that this is a Property number on Wikidata to be checked. Eg. P345 which is then the number for IMDB links. If this exists for the article, an external link for this property will potentially appear.SLaaaa
– If it consists of "SL" followed by an interwiki name, e.g.SLspecieswiki
, it will attempt to retrieve the name of the corresponding article on the second wiki, with spaces underlined.- If there is another property name, this is treated as a purely local definition and needs to get the value / identifier from the name of the module. See example below.
- message – The text to be displayed in the article. It has two special values: $1 and $2. These two will be replaced with the following:
- $1 – Replaced with the article name. See also genitive below.
- $2 – Replaced with the raw URL of the external link. Eg. http://www.imdb.com/title/tt0085255/
- $3 – Replaced with a language code. Eg. (in Norwegian) for Norwegian language (no). See
langcode
. - $4 – Replaced by the value itself.
- $5 – Replaced by a URI formatted version of the value itself.
- short – A short version of the text to be displayed. It has two special values: $1 and $2. These two will be replaced similarly to the
message
above. - langcode – Enter the language code for the site. This is used to make an indication of the language of the site. If a P-value is entered here, the module will look for this P-value as a qualifier under P305 (the language of the work). Currently only
P407
is supported here. - url_f – Here you can enter a formatting function for the URLs to be called. This is only the name of the function (which must be defined locally above configured_claims in this module. The function will be called with one variable which is the identifier that comes from Wikidata or locally and a completed raw URL is expected back. Example:
url_f=imdb_formatter
. This feature is the first priority when choosing between multiple options. - url – Here you can enter the URL to be called. Example:
url="http://www.imdb.com/tt/$1"
. This string is second priority when choosing between multiple options. This one has a special value: $1 which will be replaced with the following:- $1 – Replaced with the identifier that comes from Wikidata or locally.
- regex – Here you can enter a regexp string that will be used to verify that the identifier that comes from Wikidata or locally has the correct format. Example:
regex="tt\\d+"
. If defined, the identifier must pass this test first. If there are relevant regexp strings on Wikidata, they will be checked as well, but after that. - genitive – This is a variable that determines whether to use genitive in the article name that replaces $1 (see above). This can be either
true
orfalse
. - track – This is a variable that determines whether to use this property to include the article in a category. The category is controlled by the definition further down (
['tracking-cat-found-data']
or['tracking-cat-found-local']
). This can be eithertrue
orfalse
.
See also the definition of the maximum number of links that will appear in the articles in the limits variable as ['links-shown'] = 10
Examples
message / short
Entering the following line in Module:External links/conf/Sports:
{ prop='P1469', message='[$2 $1] at [[FIFA]]', short='[$2 FIFA]', langcode='en' },
Would display as one of the following in Antonio Cabrini:
{{#invoke:External links|getLinks|conf=Sports}}
→- Antonio Cabrini at FIFA
{{#invoke:External links|getLinks|conf=Sports|short=1}}
→- FIFA
genitive
Entering the following line in Module:External links/conf/Sports:
{ prop='P1469', message='[$2 $1 player profile] at FIFA', langcode='en', genitive=true },
Would display as the following in Antonio Cabrini:
{{#invoke:External links|getLinks|conf=Sports}}
→- Antonio Cabrini's player profile at FIFA
langcode
Entering the following line in Module:External links/conf/Sports:
{ prop='P3446', message='[$2 $1] at the [[Italian Athletics Federation]]$3', langcode='it' },
Would display as the following in Dorando Pietri:
{{#invoke:External links|getLinks|conf=Sports}}
→- Dorando Pietri at the Italian Athletics Federation (in Italian)
locally defined ID with regex
Entering the following line in Module:External links/conf/Sports:
{ prop='dbwrestling', message="[$2 ''$1''] at the International Wrestling Database", langcode='en', url='https://www.iat.uni-leipzig.de/datenbanken/dbwrestling/daten.php?spid=$1', regex='[A-F0-9]+' },
Would display the following in John-Olav Einemo:
{{#invoke:External links |getLinks |conf=Sports |dbwrestling=B777A635A94B435AB78C5413C14BE233}}
→- John-Olav Einemo at the International Wrestling Database
Does not display a link if the ID does not match the regex:
{{#invoke:External links |getLinks |conf=Sports |dbwrestling=NonValidID}}
See also
local configured_claims = {}
local function commons_formatter(id)
return "https://commons.wikimedia.org/wiki/Category:" .. id:gsub(" ", "_")
end
configured_claims['nb'] = {
{ prop = 'P373', message ="$3 [$2 ''$1''] – bilder, video eller lyd på [[Wikimedia Commons]]", langcode = 'en', genitiv = false, url_f=commons_formatter },
{ prop = 'P1285', message ='$3 [$2 $1 oppslag] i Munzinger Sportsarchiv', langcode ='de', genitiv = true },
-- OL
{ prop = 'P3171', message ='$3 [$2 $1 profil] på Olympic.org', langcode= 'en', genitiv = true },
{ prop = 'P1447', message ='$3 [$2 $1 profil] på Sports-Reference (OL-resultater)', langcode ='en', genitiv = true },
{ prop = 'P3520', message ='$3 [$2 $1 profil] hos databaseOlympics.com', langcode = 'en', genitiv = true },
{ prop = 'P3682', message ='$3 [$2 $1 profil] hos Australian Olympic Committee', langcode = 'en', genitiv = true },
{ prop = 'P2593', message ='$3 [$2 $1 profil] hos Latvias olympiske komité', langcode= 'lv', genitiv = true },
{ prop = 'P2323', message ='$3 [$2 $1 profil] hos Sveriges olympiske komité', langcode ='sv', genitiv = true },
-- Aking
{ prop = 'P2990', message ='$3 [$2 $1 profil] på FIL.com', langcode= 'en', genitiv = true },
-- Amerikansk fotball
{ prop = 'P3539', message ='$3 [$2 $1 profil] hos NFL.com', langcode = 'en', genitiv = true },
{ prop = 'P3686', message ='$3 [$2 $1 NFL-profil] hos ESPN', langcode = 'en', genitiv = true },
{ prop = 'P3561', message ='$3 [$2 $1 profil] hos Pro-Football-Reference.com', langcode = 'en', genitiv = true },
{ prop = 'P3566', message ='$3 [$2 $1 profil] hos justsportsstats.com', langcode = 'en', genitiv = true },
{ prop = 'P3560', message ='$3 [$2 $1 profil] hos College Football Data Warehouse', langcode = 'en', genitiv = true },
-- Australsk fotball
{ prop = 'P3546', message ='$3 [$2 $1 profil] hos australianfootball.com', langcode = 'en', genitiv = true },
{ prop = 'P3547', message ='$3 [$2 $1 profil] hos afltables.com', langcode = 'en', genitiv = true },
-- Badminton
{ prop = 'P2729', message ='$3 [$2 $1 profil] hos [[Badminton World Federation|BWF]]', langcode = 'en', genitiv = true },
{ prop = 'P3620', message ='$3 [$2 $1 profil] hos Badminton World Federation', langcode = 'en', genitiv = true },
{ prop = 'P3623', message ='$3 [$2 $1 profil] hos BadmintonLink.com', langcode = 'en', genitiv = true },
-- Baseball
{ prop = 'P3541', message ='$3 [$2 $1 profil] hos mlb.com', langcode = 'en', genitiv = true },
{ prop = 'P1825', message ='$3 [$2 $1 Major League-profil] på Baseball-Reference.com', langcode ='en', genitiv = true },
{ prop = 'P1826', message ='$3 [$2 $1 Minor League-profil] på Baseball-Reference.com', langcode ='en', genitiv = true },
{ prop = 'P3571', message ='$3 [$2 $1 MLB-profil] hos ESPN', langcode = 'en', genitiv = true },
{ prop = 'P2482', message ='$3 [$2 $1 profil] hos Society for American Baseball Research', langcode = 'en', genitiv = true },
{ prop = 'P3574', message ='$3 [$2 $1 profil] hos fangraphs.com', langcode = 'en', genitiv = true },
-- Basketball
{ prop = 'P3542', message ='$3 [$2 $1 profil] hos fiba.com', langcode = 'en', genitiv = true },
{ prop = 'P3536', message ='$3 [$2 $1 profil] hos euroleague.net', langcode = 'en', genitiv = true },
{ prop = 'P3527', message ='$3 [$2 $1 profil] hos eurobasket.com', langcode = 'en', genitiv = true },
{ prop = 'P3525', message ='$3 [$2 $1 profil] hos acb.com', langcode = 'en', genitiv = true },
{ prop = 'P3533', message ='$3 [$2 $1 profil] hos draftexpress.com', langcode = 'en', genitiv = true },
-- Biljard
{ prop = 'P3531', message ='$3 [$2 $1 profil] hos AZBilliards', langcode = 'en', genitiv = true },
-- Bob/skeleton
{ prop = 'P2991', message ='$3 [$2 $1 profil] på IBSF.com', langcode= 'en', genitiv = true },
-- Boksing
{ prop = 'P1967', message ='$3 [$2 $1 profil] hos BoxRec', langcode ='en', genitiv = true },
-- Bordtennis
{ prop = 'P1364', message ='$3 [$2 $1 profil] hos [[ITTF]]', langcode = 'en', genitiv = true },
-- Bryting
{ prop = 'P2727', message ='$3 [$2 $1 profil] hos [[Fédération Internationale des Luttes Associées|FILA]]', langcode = 'en', genitiv = true },
-- Bueskyting
{ prop = 'P3010', message ='$3 [$2 $1 profil] på World Archery', langcode= 'en', genitiv = true },
-- Cricket
{ prop = 'P3526', message ='$3 [$2 $1 profil] hos wisdenindia.com', langcode = 'en', genitiv = true },
{ prop = 'P2697', message ='$3 [$2 $1 profil] på ESPNcricinfo.com', langcode ='en', genitiv = true },
-- Curling
{ prop = 'P3556', message ='$3 [$2 $1 profil] hos World Curling Tour', langcode = 'en', genitiv = true },
{ prop = 'P3557', message ='$3 [$2 $1 profil] hos World Curling Federation', langcode = 'en', genitiv = true },
-- Darts
{ prop = 'P3621', message ='$3 [$2 $1 profil] hos Darts Database', langcode = 'en', genitiv = true },
-- Fekting
{ prop = 'P2423', message ='$3 [$2 $1 profil] hos [[Fédération internationale d’escrime|FIE]]', langcode ='en', genitiv = true },
-- Fotball
{ prop = 'P1469', message ='$3 [$2 $1 spillerprofil] hos FIFA', langcode ='en', genitiv = true },
{ prop = 'P2276', message ='$3 [$2 $1 spillerprofil] hos UEFA', langcode ='en', genitiv = true },
{ prop = 'P2823', message ='$3 [$2 $1 spillerprofil] hos [[Koninklijke Belgische Voetbalbond|Belgias fotballforbund]]', langcode ='en', genitiv = true },
{ prop = 'P3659', message ='$3 [$2 $1 profil] hos Estlands fotballforbund', langcode = 'en', genitiv = true },
{ prop = 'P3748', message ='$3 [$2 $1 profil] hos Israels fotballforbund', langcode = 'en', genitiv = true },
{ prop = 'P3577', message ='$3 [$2 $1 profil] hos Det kroatiske fotballforbundet', langcode = 'hr', genitiv = true },
{ prop = 'P3049', message ='$3 [$2 $1 profil] på Scottish Football Association', langcode= 'en', genitiv = true },
{ prop = 'P1238', message ='$3 [$2 $1 spillerprofil] hos [[Sveriges fotballforbund]]', langcode ='sv', genitiv = true },
{ prop = 'P3050', message ='$3 [$2 $1 profil] på CMFS', langcode= 'en', genitiv = true },
{ prop = 'P2448', message ='$3 [$2 $1 spillerprofil] hos [[Türkiye Futbol Federasyonu|Tyrkias fotballforbund]]', langcode ='en', genitiv = true },
{ prop = 'P2449', message ='$3 [$2 $1 managerprofil] hos [[Türkiye Futbol Federasyonu|Tyrkias fotballforbund]]', langcode ='en', genitiv = true },
{ prop = 'P3662', message ='$3 [$2 $1 profil] hos Ukrainas fotballforbund', langcode = 'en', genitiv = true },
{ prop = 'P3683', message ='$3 [$2 $1 profil] hos Ligue de Football Professionnel', langcode = 'fr', genitiv = true },
{ prop = 'P3565', message ='$3 [$2 $1 profil] hos J.League Data', langcode = 'jp', genitiv = true },
{ prop = 'P3053', message ='$3 [$2 $1 profil] på K League database', langcode= 'en', genitiv = true },
{ prop = 'P2398', message ='$3 [$2 $1 spillerprofil] hos Major League Soccer', langcode = 'en', genitiv = true },
{ prop = 'P3665', message ='$3 [$2 $1 profil] hos LÉquipe', langcode = 'fr', genitiv = true },
{ prop = 'P3532', message ='$3 [$2 $1 profil] hos databasefootball.com', langcode = 'en', genitiv = true },
{ prop = 'P2446', message ='$3 [$2 $1 spillerprofil] på Transfermarkt', langcode ='en', genitiv = true },
{ prop = 'P2447', message ='$3 [$2 $1 managerprofil] på Transfermarkt', langcode ='en', genitiv = true },
{ prop = 'P3699', message ='$3 [$2 $1 profil] hos transfermarkt.com ', langcode = 'en', genitiv = true },
{ prop = 'P2574', message ='$3 [$2 $1 spillerprofil] på national-football-teams.com', langcode = 'en', genitiv = true },
{ prop = 'P2020', message ='$3 [$2 $1 profil] på WorldFootball.net', langcode ='en', genitiv = true },
{ prop = 'P2193', message ='$3 [$2 $1 spillerprofil] på Soccerbase.com', langcode ='en', genitiv = true },
{ prop = 'P2195', message ='$3 [$2 $1 managerprofil] på Soccerbase.com', langcode ='en', genitiv = true },
{ prop = 'P3537', message ='$3 [$2 $1 profil] hos FootballDatabase.eu', langcode = 'en', genitiv = true },
{ prop = 'P3538', message ='$3 [$2 $1 profil] hos fussballdaten.de', langcode = 'de', genitiv = true },
{ prop = 'P3043', message ='$3 [$2 $1 profil] på Scoresway', langcode= 'en', genitiv = true },
{ prop = 'P2369', message ='$3 [$2 $1 spillerprofil] på Soccerway', langcode ='en', genitiv = true },
{ prop = 'P3046', message ='$3 [$2 $1 profil] på Fora De Jogo', langcode= 'en', genitiv = true },
{ prop = 'P3047', message ='$3 [$2 $1 profil] på Zero Zero', langcode= 'en', genitiv = true },
{ prop = 'P2458', message ='$3 [$2 $1 spillerprofil] på Mackolik.com', langcode ='tr', genitiv = true },
-- Friidrett
{ prop = 'P1146', message ='$3 [$2 $1 profil] hos IAAF', langcode ='en', genitiv = true },
{ prop = 'P3766', message ='$3 [$2 $1 profil] hos European Athletic Association', langcode = 'en', genitiv = true },
{ prop = 'P3767', message ='$3 [$2 $1 profil] hos Fédération française d athlétisme', langcode = 'fr', genitiv = true },
{ prop = 'P3446', message ='$3 [$2 $1 profil] hos FIDAL', langcode = 'it', genitiv = true },
{ prop = 'P2162', message ='$3 [$2 $1 profil] hos Deutsche Ultramarathon Vereinigung', langcode ='en', genitiv = true },
{ prop = 'P3765', message ='$3 [$2 $1 profil] hos All-Athletics.com', langcode = 'en', genitiv = true },
{ prop = 'P2090', message ='$3 [$2 $1 profil] hos Power of 10', langcode ='en', genitiv = true },
-- Golf
{ prop = 'P2811', message ='$3 [$2 $1 profil] hos [[PGA]]', langcode = 'en', genitiv = true },
{ prop = 'P2810', message ='$3 [$2 $1 profil] hos [[Ladies Professional Golf Association|LPGA]]', langcode = 'en', genitiv = true },
{ prop = 'P3568', message ='$3 [$2 $1 profil] hos Official World Golf Ranking', langcode = 'en', genitiv = true },
{ prop = 'P3521', message ='$3 [$2 $1 profil] hos EuroTour', langcode = 'en', genitiv = true },
{ prop = 'P3535', message ='$3 [$2 $1 profil] hos JapanTour', langcode = 'en', genitiv = true },
-- Hestesport
{ prop = 'P3111', message ='$3 [$2 $1 profil] på FEI.org', langcode= 'en', genitiv = true },
-- Håndball
{ prop = 'P3573', message ='$3 [$2 $1 profil] hos Det europeiske håndballforbundet', langcode = 'en', genitiv = true },
{ prop = 'P3700', message ='$3 [$2 $1 profil] hos NHF', langcode = 'en', genitiv = true },
-- Ishockey
{ prop = 'P3522', message ='$3 [$2 $1 profil] hos NHL.com', langcode = 'en', genitiv = true },
{ prop = 'P3652', message ='$3 [$2 $1 profil] hos Kontinental Hockey League', langcode = 'en', genitiv = true },
{ prop = 'P2601', message ='$3 [$2 $1 profil] på Eurohockey.com', langcode= 'en', genitiv = true },
{ prop = 'P3651', message ='$3 [$2 $1 profil] hos TheAHL.com', langcode = 'en', genitiv = true },
{ prop = 'P3687', message ='$3 [$2 $1 NHL-profil] hos ESPN', langcode = 'en', genitiv = true },
{ prop = 'P2602', message ='$3 [$2 $1 profil] på Hockeydb.com', langcode = 'en', genitiv = true },
{ prop = 'P3598', message ='$3 [$2 $1 profil] hos Hockey-Reference.com', langcode = 'en', genitiv = true },
{ prop = 'P3567', message ='$3 [$2 $1 profil] hos Legends of Hockey', langcode = 'en', genitiv = true },
-- Judo
{ prop = 'P2767', message ='$3 [$2 $1 profil] hos JudoInside', langcode = 'en', genitiv = true },
-- Kano/kajakk
{ prop = 'P3688', message ='$3 [$2 $1 profil] hos International Canoe Federation (sprint)', langcode = 'en', genitiv = true },
{ prop = 'P3689', message ='$3 [$2 $1 profil] hos International Canoe Federation (slalom)', langcode = 'en', genitiv = true },
-- Kampsport
{ prop = 'P2818', message ='$3 [$2 $1 profil] hos Sherdog', langcode ='en', genitiv = true },
{ prop = 'P2705', message ='$3 [$2 $1 profil] på Karate Records', langcode ='en', genitiv = true },
-- Klatring
{ prop = 'P3690', message ='$3 [$2 $1 profil] hos International Federation of Sport Climbing', langcode = 'en', genitiv = true },
-- Kunstløp
{ prop = 'P2694', message ='$3 [$2 $1 profil] hos [[International Skating Union|ISU]]', langcode = 'en', genitiv = true },
-- Landhockey
{ prop = 'P3742', message ='$3 [$2 $1 profil] hos [[Det internasjonale hockeyforbundet|FIH]]', langcode = 'en', genitiv = true },
-- Motorsport
{ prop = 'P3048', message ='$3 [$2 $1 profil] på racing-reference.info', langcode= 'en', genitiv = true },
{ prop = 'P3684', message ='$3 [$2 $1 profil] hos Driver Database', langcode = 'en', genitiv = true },
-- Orientering
{ prop = 'P3672', message ='$3 [$2 $1 profil] hos International Orienteering Federation', langcode = 'en', genitiv = true },
-- Roing
{ prop = 'P2091', message ='$3 [$2 $1 profil] på [[Det internasjonale roforbundet|FISA]]', langcode ='en', genitiv = true },
-- Rugby
{ prop = 'P861', message ='$3 [$2 $1 spillerprofil] hos Premiership Rugby', langcode ='en', genitiv = true },
{ prop = 'P3745', message ='$3 [$2 $1 profil] hos World Rugby Sevens Series', langcode = 'en', genitiv = true },
{ prop = 'P3769', message ='$3 [$2 $1 profil] hos Its Rugby', langcode = 'en', genitiv = true },
{ prop = 'P858', message ='$3 [$2 $1 spillerprofil] på ESPN Scrum', langcode ='en', genitiv = true },
-- Seiling
{ prop = 'P2804', message ='$3 [$2 $1 profil] hos [[Det internasjonale seilforbundet|ISAF]]', langcode = 'en', genitiv = true },
-- Sjakk
{ prop = 'P1440', message ='$3 [$2 $1 profil] hos [[Fédération internationale des échecs|FIDE]]', langcode = 'en', genitiv = true },
{ prop = 'P3558', message ='$3 [$2 $1 profil] hos US Chess Federation', langcode = 'en', genitiv = true },
{ prop = 'P1665', message ='$3 [$2 $1 profil og partier] på chessgames.com', langcode = 'en', genitiv = true },
-- Ski
{ prop = 'P2772', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (alpint)', langcode ='en', genitiv = true },
{ prop = 'P2773', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (langrenn)', langcode ='en', genitiv = true },
{ prop = 'P2774', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (freestyle)', langcode ='en', genitiv = true },
{ prop = 'P2775', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (skihopping)', langcode ='en', genitiv = true },
{ prop = 'P2776', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (kombinert)', langcode ='en', genitiv = true },
{ prop = 'P2777', message ='$3 [$2 $1 profil] hos [[Det internasjonale skiforbundet|FIS]] (snøbrett)', langcode ='en', genitiv = true },
{ prop = 'P3619', message ='$3 [$2 $1 profil] hos ski-db.com', langcode = 'en', genitiv = true },
-- Skiskyting
{ prop = 'P2459', message ='$3 [$2 $1 profil] hos [[International Biathlon Union|IBU]]', langcode ='en', genitiv = true },
-- Skyting
{ prop = 'P2730', message ='$3 [$2 $1 profil] hos [[International Shooting Sport Federation|ISSF]]', langcode = 'en', genitiv = true },
-- Skøyter
{ prop = 'P2350', message ='$3 [$2 $1 profil] i Speedskatingbase.eu', langcode ='en', genitiv = true },
{ prop = 'P2481', message ='$3 [$2 $1 profil] på Eliteprospects.com', langcode ='en', genitiv = true },
{ prop = 'P3694', message ='$3 [$2 $1 profil] hos SpeedSkatingNews.info', langcode = 'en', genitiv = true },
{ prop = 'P3695', message ='$3 [$2 $1 profil] hos SpeedSkatingStats.com', langcode = 'en', genitiv = true },
{ prop = 'P3693', message ='$3 [$2 $1 profil] hos ShorttrackOnLine.info', langcode = 'en', genitiv = true },
-- Squash
{ prop = 'P3476', message ='$3 [$2 $1 profil] hos PSA Worldtour', langcode = 'en', genitiv = true },
{ prop = 'P3286', message ='$3 [$2 $1 profil] hos squashinfo.com', langcode = 'en', genitiv = true },
-- Sumobryting
{ prop = 'P3385', message ='$3 [$2 $1 profil] hos Japan Sumo Association', langcode = 'en', genitiv = true },
-- Surfing
{ prop = 'P3338', message ='$3 [$2 $1 profil] hos Encyclopedia of Surfing', langcode = 'en', genitiv = true },
{ prop = 'P3339', message ='$3 [$2 $1 profil] hos World Surf League', langcode = 'en', genitiv = true },
-- Svømming
{ prop = 'P3408', message ='$3 [$2 $1 profil] hos FINA', langcode = 'en', genitiv = true },
{ prop = 'P3691', message ='$3 [$2 $1 profil] hos Swimming Hall of Fame', langcode = 'en', genitiv = true },
{ prop = 'P3669', message ='$3 [$2 $1 profil] hos Swimming Australia', langcode = 'en', genitiv = true },
{ prop = 'P2640', message ='$3 [$2 $1 profil] på swimrankings.net', langcode = 'en', genitiv = true },
-- Sykling
{ prop = 'P1409', message ='$3 [$2 $1 profil] hos Cycling Archives', langcode ='en', genitiv = true },
{ prop = 'P1541', message ='$3 [$2 $1 profil] på Cycling Quotient', langcode ='en', genitiv = true },
{ prop = 'P2709', message ='$3 [$2 $1 profil] på Cycling Quotient', langcode ='en', genitiv = true },
{ prop = 'P1664', message ='$3 [$2 $1 profil] på CyclingDatabase.com', langcode ='en', genitiv = true },
{ prop = 'P1663', message ='$3 [$2 $1 profil] på ProCyclingStats', langcode ='en', genitiv = true },
{ prop = 'P2327', message ='$3 [$2 $1 rittprofil] på ProCyclingStats', langcode ='en', genitiv = true },
-- Taekwondo
{ prop = 'P2987', message ='$3 [$2 $1 profil] på Taekwondo Data', langcode= 'en', genitiv = true },
-- Tennis
{ prop = 'P536', message ='$3 [$2 $1 profil] hos ATP World Tour', langcode ='en', genitiv = true },
{ prop = 'P597', message ='$3 [$2 $1 profil] hos WTA Tennis', langcode ='en', genitiv = true },
{ prop = 'P599', message ='$3 [$2 $1 profil] hos ITF Tennis', langcode ='en', genitiv = true },
{ prop = 'P2641', message ='$3 [$2 $1 profil] hos Davis Cup', langcode = 'en', genitiv = true },
{ prop = 'P2642', message ='$3 [$2 $1 profil] hos FedCup', langcode = 'en', genitiv = true },
{ prop = 'P3363', message ='$3 [$2 $1 profil] hos International Tennis Hall of Fame', langcode = 'en', genitiv = true },
{ prop = 'P3670', message ='$3 [$2 $1 profil] hos Tennis Archives', langcode = 'en', genitiv = true },
{ prop = 'P3698', message ='$3 [$2 $1 profil] hos Tennis Australia', langcode = 'en', genitiv = true },
{ prop = 'P3456', message ='$3 [$2 $1 profil] hos ATP', langcode = 'en', genitiv = true },
{ prop = 'P3469', message ='$3 [$2 $1 profil] hos WTA', langcode = 'en', genitiv = true },
-- Turn
{ prop = 'P2696', message ='$3 [$2 $1 profil] hos [[Det internasjonale turnforbundet|FIG]]', langcode = 'en', genitiv = true },
{ prop = 'P3671', message ='$3 [$2 $1 profil] hos USA Gymnastics', langcode = 'en', genitiv = true },
-- Vektløfting
{ prop = 'P3667', message ='$3 [$2 $1 profil] hos International Weightlifting Federation', langcode = 'en', genitiv = true },
-- Volleyball
{ prop = 'P2801', message ='$3 [$2 $1 profil] hos [[Fédération Internationale de Volleyball|FIVB]]', langcode = 'en', genitiv = true },
{ prop = 'P3725', message ='$3 [$2 $1 profil] hos European Volleyball Confederation', langcode = 'en', genitiv = true },
{ prop = 'P2800', message ='$3 [$2 $1 profil] hos Beach Volleyball Database', langcode = 'en', genitiv = true },
-- Wrestling
{ prop = 'P2764', message ='$3 [$2 $1 profil] på wrestlingdata.com', langcode ='en', genitiv = true },
-- Diverse
{ prop = 'P3427', message ='$3 [$2 $1 profil] hos as.com', langcode = 'es', genitiv = true },
{ prop = 'P3572', message ='$3 [$2 $1 profil] hos ESPNcricinfo', langcode = 'en', genitiv = true },
{ prop = 'P3715', message ='$3 [$2 $1 profil] hos NISH Hall of Fame', langcode = 'de', genitiv = true },
{ prop = 'P3604', message ='$3 [$2 $1 profil] hos International Triathlon Union', langcode = 'en', genitiv = true },
{ prop = 'P3664', message ='$3 [$2 $1 profil] hos Futsal Planet', langcode = 'en', genitiv = true },
{ prop = 'P3584', message ='$3 [$2 $1 profil] hos International Trail-Running Association', langcode = 'en', genitiv = true },
{ prop = 'P3653', message ='$3 [$2 $1 profil] hos ARRS', langcode = 'en', genitiv = true },
{ prop = 'P3760', message ='$3 [$2 $1 profil] hos Iditarod Trail Sled Dog Race', langcode = 'en', genitiv = true },
{ prop = 'P2778', message ='$3 [$2 $1 profil] hos Institut für Angewandte Trainingswissenschaft (triatlon)', langcode ='en', genitiv = true },
{ prop = 'P2779', message ='$3 [$2 $1 profil] hos Institut für Angewandte Trainingswissenschaft (vektløfting)', langcode ='de', genitiv = true },
{ prop = 'P2780', message ='$3 [$2 $1 profil] hos Institut für Angewandte Trainingswissenschaft (stuping)', langcode ='de', genitiv = true },
}
local messages_conf = {}
messages_conf['nb'] = {
['short-list-separator'] = ',',
['no-data-cat'] = '[[Kategori:Artikler uten sportslenker fra Wikidata]]',
['with-data-cat'] = '[[Kategori:Artikler med sportslenker fra Wikidata]]',
['no-data-text'] = "''Artikkelen har ingen egenskaper for sportsdatabaser i Wikidata''",
['no-wikilink'] = "''Artikkelen mangler oppslag i Wikidata''",
['no-wikilink-cat'] = "[[Kategori:Artikler med sportslenker og uten kobling til Wikidata]]",
['with-local-cat'] = '[[Kategori:Artikler med sportslenker fra lokale verdier]]',
['track-cat-wd-wd'] = '[[Kategori:Artikler med sportslenker for $1 fra Wikidata]]',
['track-cat-local-local'] = '[[Kategori:Artikler med sportslenker for $1 lokalt]]',
['track-cat-wd-local'] = '[[Kategori:Artikler med sportslenker med $1 fra Wikidata men verdi lokalt]]',
['track-cat-local-wd'] = '[[Kategori:Artikler med sportslenker med $1 definert lokalt men verdi fra Wikidata]]',
['track-cat-local-wd-equal'] = '[[Kategori:Artikler med sportslenker hvor $1 sin verdi lokalt er lik med Wikidata]]',
['track-cat-local-wd-unequal'] = '[[Kategori:Artikler med sportslenker hvor $1 sin verdi lokalt er ulik 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