Template:MLS player/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:MLS player displays an external link to a soccer (association football) player's profile at MLSsoccer.com, the official website of Major League Soccer (MLS). It is intended for use in the external links section of an article.

Unnamed parameters
* {{MLS player | ID }}
* {{MLS player | ID | NAME }}
Named parameters
* {{MLS player | id= ID }}
* {{MLS player | id= ID | name= NAME }}
Using Wikidata property
* {{MLS player}}
* {{MLS player | name= NAME }}

Examples

[edit source]

Unnamed parameters

[edit source]
Usage
* {{MLS player | michael-bradley | Michael Bradley }}
Output
URL
https://www.mlssoccer.com/players/michael-bradley

Named parameters

[edit source]
Usage
* {{MLS player | id= kaka | name= Kaká }}
Output
URL
https://www.mlssoccer.com/players/kaka

No parameters and Wikidata property not defined

[edit source]
Usage
{{MLS player}}
Output
MLS player/doc at Major League SoccerLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:MLS player in articles based on its TemplateData.

TemplateData for MLS player

This template displays an external link to a soccer (association football) player's profile at MLSsoccer.com, the official website of Major League Soccer (MLS). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as michael-bradley in https://www.mlssoccer.com/players/michael-bradley. This parameter is optional if Wikidata property P2398 exists, but required if not.

Default
Wikidata property P2398
Stringoptional
Namename 2

The link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(soccer)" or "(footballer)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

[edit source]
template with ID
template missing ID

See also

[edit source]
[edit source]