Jump to content

Template:MLS player/doc

From Wikipedia, the free encyclopedia

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

[edit]
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]

Unnamed parameters

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

Named parameters

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

No parameters and Wikidata property not defined

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

TemplateData

[edit]
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]
template with ID
template missing ID

See also

[edit]
[edit]