Module:External links/conf/Sports/doc
This is the documentation page for Module:External links/conf/Sports
Examples
changemessage / short
changeAdding the below line in Module:External links/conf/Sports:
{ prop='P1469', message='[$2 $1] at [[FIFA]]', short='[$2 FIFA]', langcode='en' },
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
changeEntering the below line in Module:External links/conf/Sports:
{ prop='P1469', message='[$2 $1 player profile] at FIFA', langcode='en', genitive=true },
Would show as the below in Antonio Cabrini:
{{#invoke:External links|getLinks|conf=Sports}}
→- Antonio Cabrini's player profile at FIFA
langcode
changeEntering the below line in Module:External links/conf/Sports:
{ prop='P3446', message='[$2 $1] at the [[Italian Athletics Federation]]$3', langcode='it' },
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
changeEntering the below 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 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}}