Difference between revisions of "Template:Basketball roster header/sandbox"
Jump to navigation
Jump to search
imported>Tvisko (←Blanked the page) |
imported>Jonesey95 (Fix Linter errors) |
||
| Line 1: | Line 1: | ||
| − | + | {{#ifeq:{{{nationality|}}}|y|{{Basketball roster nationality note}}}} | |
| + | {| class="toccolours {{#if:{{{collapsed|}}}|collapsible collapsed}}" style="font-size:{{{font-size|90}}}%; {{#ifeq:{{NAMESPACE}}|{{ns:10}}|width:100%;}}" | ||
| + | |- | ||
| + | ! colspan="2" style="{{#if:{{{bg1|}}}|background-color: {{{bg1}}}|background-color: #{{#invoke:Sports color|color|sport=basketball|{{{team}}}|1}} }}; text-align: center;" | {{#if:{{{template_name|}}} | ||
| + | | {{Navbar-header | ||
| + | | 1 = {{{title|{{{team}}} roster}}} | ||
| + | | 2 = {{{template_name|}}} | ||
| + | | 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> | ||
| + | }} | ||
| + | |- 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;" | ||
| + | ! Players !! Coaches | ||
| + | |- | ||
| + | | style="vertical-align:top;" | | ||
| + | {| class="sortable" style="background:transparent; margin:0px; width:100%;" | ||
| + | ! {{Abbr|Pos.|Position(s)}} !! {{Abbr|No.|Jersey number}} !! {{Abbr|Nat.|Nationality}} !! Name !! {{#ifeq:{{{ht|}}}|n|class="unsortable"}} | {{#ifeq:{{{ht|}}}|n||{{Abbr|Ht.|Height}}}} !! {{#ifeq:{{{wt|}}}|n|class="unsortable"}} | {{#ifeq:{{{wt|}}}|n||{{Abbr|Wt.|Weight}}}} !! {{#ifeq:{{{dob|}}}|y|data-sort-type="isoDate"|{{#ifeq:{{{age|}}}|n|class="unsortable"}}}} | {{#ifeq:{{{dob|}}}|y|DOB (YYYY-MM-DD)|{{#ifeq:{{{age|}}}|n||Age}}}} !! {{#ifeq:{{{from|}}}|y||class="unsortable"}} | {{#ifeq:{{{from|}}}|y|From}} | ||
| + | |-<noinclude> | ||
| + | |} | ||
| + | |} | ||
| + | {{Documentation|Template:Basketball roster doc}} | ||
| + | </noinclude> | ||
Latest revision as of 16:25, 7 February 2019
| {{{team}}} roster | ||||||||
|---|---|---|---|---|---|---|---|---|
| Players | Coaches | |||||||
| ||||||||
| This is the template sandbox page for Template:Basketball roster header (diff). |
| 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. |