Template:MLS player/doc

From WikiProjectMed
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.

Usage

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

Unnamed parameters

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

Named parameters

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

No parameters and Wikidata property not defined

Usage
{{MLS player}}
Output
{{MLS player}} template missing ID and not present in Wikidata.

TemplateData

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

template with ID
template missing ID

See also

External links