Template:Infobox basketball biography/style
This template is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This template uses Lua: |
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
{{Infobox basketball biography/style|team}}
or
{{Infobox basketball biography/style|team|team_link}}
How it works
The template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return known
, and the template uses coloring specified by the 'colorcell' function in Module:Sports color. If the team is not known by the module, then it will return nothing, and the template uses the coloring specified by the 'header' function in Module:College color.
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.
Tests
The following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
Test | League | Result | |||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Blank | N/A |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Retired | N/A |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Free Agent | N/A |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Washington Wizards | NBA |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Žalgiris Kaunas | Euroleague |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Wollongong Hawks | NBL |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Talk 'N Text Tropang Texters | PBA |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Smart Gilas Pilipinas | PBA |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
s.Oliver Baskets | European leagues |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Wonju Dongbu Promy | KBL |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
South Korea national basketball team | KBL |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Youngstown State Penguins | NCAA |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Moncton Magic | Canada |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
| |||||||||||||||||||||||||||||||||||||||||||||||||
Raleigh Firebirds | The Basketball League |
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 worksThe template checks to see if the team is known by checking the return code from the 'check' function in Module:Sports color. If the team is known by the module, then it will return 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. TestsThe following are tests to make sure the template has not been broken. The tests check the last team in a few sections of the module, and in the NCAA color template.
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default). ComplexityIn principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error. See also
|
The third column in the table above should not be blank for any of the queries. Only the first three should return DCDCDC/000000 (the default).
Complexity
In principle, more leagues could be added, but there is a risk that this would increase the module's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded script error.
See also
- To check if colors are known for the given team: {{GotCollegeColorsFor}}
- {{CollegePrimaryHex}} and {{CollegeSecondaryHex}}
- {{CollegePrimaryStyle}} and {{CollegeSecondaryStyle}}
- {{CollegePrimaryColorLink}} and {{CollegeSecondaryColorLink}}
- {{NCAA color}}, {{NCAA color cell}} and {{NCAA secondary color cell}}
- {{Infobox baseball biography/style}} and {{Infobox basketball biography/style}}
- {{Baseball primary style}} and {{Baseball secondary style}}
- {{NFLPrimaryColor}} and {{NFLSecondaryColor}}
- {{CBB roster/Header}}
- {{NBA color}}