Template:NBA playerfile/doc
This is a documentation subpage for Template:NBA playerfile. It contains usage information, categories and other content that is not part of the original template page. |
Usage
First parameter is the player's name as it appears in the NBA.com url, e.g. lebron_james in http://www.nba.com/playerfile/lebron_james/.
Second parameter is the player's name as it should appear in the visible text of the link, e.g. "LeBron James".
Both parameters default to the article title. Additionally the first one is converted to lowercase and spaces are changed to underscores for use in the url.
If the player's name is unambiguous and contains no diacritics, no parameters need to be entered.
Examples
When used on the article LeBron James: | |
{{NBA playerfile}} | LeBron James at NBA.com |
When used on the article Žydrūnas Ilgauskas: | |
{{NBA playerfile|zydrunas_ilgauskas}} | Žydrūnas Ilgauskas at NBA.com |
When used on the article Joe Smith (basketball): | |
{{NBA playerfile|joe_smith|Joe Smith}} | Joe Smith at NBA.com |
To-do
- support for coaches and "historical" pages (some retired players still have profiles in a different directory).
Related pages
- {{Basketballstats}}, for links to multiple basketball statistics sites