Jump to content

Module:External links/conf/Sports/doc

From Simple English Wikipedia, the free encyclopedia

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

Examples

[change source]

message / short

[change source]

Adding 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

[change source]

Entering 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

[change source]

Entering 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

[change source]

Entering 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}}

See also

[change source]