Template:Infobox basketball biography/style/doc

This subtemplate of Infobox basketball biography is used to generate the colored headers corresponding to the team colors for the individual's current professional team.

Usage


or

How it works
The template checks to see if the team is known by checking the return code from the following templates, These templates return a value of "unknown" in response to a "type" query, if the team is not known. Once a match is found, the template then calls either to get a style statement to specify the coloring. If a second team_link parameter is passed, this style statement is used to generate a colored link, otherwise the template simply returns the style statement.
 * 1) NBA color
 * 2) Euroleague color
 * 3) NBL colour
 * 4) PBA color
 * 1) NBA color cell, or
 * 2) Euroleague color cell, or
 * 3) NBL colour cell, or
 * 4) PBA color cell

Complexity
In principle, more leagues could be added, but there is a risk that this would increase the template's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded transclusion depth limit.