Module:External links/conf/Sports/doc

< Module:External links

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

Examples

message / short

Adding the below line in Module:External links/conf/Sports:

<syntaxhighlight lang="lua">{ prop='P1469', message='[$2 $1] at FIFA', short='[$2 FIFA]', langcode='en' },</syntaxhighlight>

Would show as one of the below 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 below line in Module:External links/conf/Sports:

<syntaxhighlight lang="lua">{ prop='P1469', message='[$2 $1 player profile] at FIFA', langcode='en', genitive=true },</syntaxhighlight>

Would show as the below in Antonio Cabrini:

{{#invoke:External links|getLinks|conf=Sports}}
Antonio Cabrini's player profile at FIFA

langcode

Entering the below line in Module:External links/conf/Sports:

<syntaxhighlight lang="lua">{ prop='P3446', message='[$2 $1] at the Italian Athletics Federation$3', langcode='it' },</syntaxhighlight>

Would show as the below 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 below line in Module:External links/conf/Sports:

<syntaxhighlight lang="lua">{ 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]+' },</syntaxhighlight>

Would show the below in John-Olav Einemo:

{{#invoke:External links |getLinks |conf=Sports |dbwrestling=B777A635A94B435AB78C5413C14BE233}}
John-Olav Einemo at the International Wrestling Database

Does not show a link if the ID does not match the regex:

{{#invoke:External links |getLinks |conf=Sports |dbwrestling=NonValidID}}

See also