Module:External links/conf/Sports/doc

From blackwiki
Jump to navigation Jump to search

This is the documentation page for Module:External links/conf/Sports

Module:External links/conf/documentation page

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