Difference between revisions of "Template:Basketball roster header"
Jump to navigation
Jump to search
imported>DylanI00 |
imported>DylanI00 |
||
Line 8: | Line 8: | ||
| fontcolor={{#if:{{{color1|}}}|{{{color1}}}|{{Greater color contrast ratio|{{#if:{{{bg1|}}}| {{{bg1}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|1}} }} |black|white}} }} | | fontcolor={{#if:{{{color1|}}}|{{{color1}}}|{{Greater color contrast ratio|{{#if:{{{bg1|}}}| {{{bg1}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|1}} }} |black|white}} }} | ||
}} | }} | ||
− | | <span style="color:{{#if:{{{color1|}}}|{{{color1}}}|{{Greater color contrast ratio|{{#if:{{{bg1|}}}| {{{bg1}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|1}} }} |black|white}} }};">{{{title|{{{team}}} roster}}}</span> | + | | <span style="color:{{#if:{{{color1|}}}|{{{color1}}}|{{Greater color contrast ratio|{{#if:{{{bg1|}}}| {{{bg1}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|1}} }} |black|white}} }};">{{{title|{{#if:{{{season|}}}|{{{season|}}} |}} {{{team}}} roster}}}</span> |
}} | }} | ||
|- style="{{#if:{{{bg2|{{{color1|}}}}}}|background-color: {{{bg2|{{{color1}}}}}}|background-color: #{{#invoke:Sports color|color|sport=basketball|{{{team}}}|3}} }}; {{#if:{{{color2|{{{bg1|}}}}}}|color: {{{color2|{{{bg1}}}}}}|color: {{Greater color contrast ratio|{{#if:{{{bg2|{{{color1|}}}}}}|{{{bg2|{{{color1}}}}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|3}} }} |black|white}} }}; text-align: center;" | |- style="{{#if:{{{bg2|{{{color1|}}}}}}|background-color: {{{bg2|{{{color1}}}}}}|background-color: #{{#invoke:Sports color|color|sport=basketball|{{{team}}}|3}} }}; {{#if:{{{color2|{{{bg1|}}}}}}|color: {{{color2|{{{bg1}}}}}}|color: {{Greater color contrast ratio|{{#if:{{{bg2|{{{color1|}}}}}}|{{{bg2|{{{color1}}}}}}|{{#invoke:Sports color|color|sport=basketball|{{{team}}}|3}} }} |black|white}} }}; text-align: center;" |
Latest revision as of 07:47, 17 October 2019
{{{team}}} roster | ||||||||
---|---|---|---|---|---|---|---|---|
Players | Coaches | |||||||
|
click to view → | |
---|---|
Note: no parameters of these templates should be wiki-linked. | |
{{Basketball roster header | |
| template_name = | this should match the name of the template you are editing. |
| teamlink = | The page link to the team, where the title links to |
| team = | name of team. |
| season = | season to show with title (for use on seasonal articles). |
| color1 = | bg1 = |
color scheme for the first header of the table. default is black-on-white. should match team colors. |
| color2 = | bg2 = |
second-level headers, default is white-on-black. |
}} {{player3 | |
| first = | last = |
player's first and last name are all you'd need to enter in most cases |
| dab = | e.g. "basketball" if the title of the player's bio ends with "...(basketball)". |
| name = | Chinese names, for example, should use this parameter only. e.g. "name = Yao Ming" |
| link = | alt= |
use in complex cases instead of the above, e.g. "link = Mike Conley Jr." and "alt=Conley, Mike Jr." links like this Conley, Mike Jr. as it should |
| num = | number on player's uniform, e.g. "10" |
| nat = | nationality, e.g. "United States", "Spain", "Russia", etc. or... the corresponding 3-letter abbr. (e.g. "USA", "ESP", "RUS") from the List of IOC country codes |
| nat2 = | A second nationality with the same syntax as the |nat= parameter
|
| pos = | See basketball positions. Acceptable values are (PG|G|SG|GF|SF|F|PF|FC|C). Column will sort in this order. |
| m = | kgs = |
height and weight. Meters use like this example 2.10 and for kilograms just put number without anything else. |
| inj = | If inj=yes, injury symbol appears by player's name. |
| year/month/day = | To show a player's age, include all three of year/month/day as separate parameters. Invalid values or missing month/day will generate an error. |
}} {{Basketball roster footer | |
| head_coach = | asst_coach = |
coaching staff |
| roster_url= | URL where official roster can be found. |
| accessdate= | last date the team template is known to have been updated from above URLs ISO (DD-MM-YYYY) format please or (Month DD, YYYY), just like "cite" templates. |
}} |
See also
- {{Basketball roster footer}}
- {{Player3}}
- {{NBA roster header}}, {{NBA roster footer}}, and {{Player2}}
- {{Basketball roster start}}, {{Basketball roster mid}}, {{Basketball roster end}}, and {{Basketball roster player}}
The above documentation is transcluded from Template:Basketball roster doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |