Template:NBA color cell

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is used for generating color style statements for NBA templates and articles

Usage

<span style="{{NBA color cell2|Team name}}">Some Text</span>

or

{|
| style="{{NBA color cell2|Team name}}" | Some Text
|}

Optional border

To add a 2px outer border, use

<span style="{{NBA color cell2|Team name|border=2}}">Some Text</span>

or

{|
| style="{{NBA color cell2|Team name|border=2}}" | Some Text
|}

Code

background-color: #{{NBA color|{{{1}}}|1}}; color: #{{NBA color|{{{1}}}|2}};{{#if:{{{border|}}}|border:{{{border}}}px solid #{{NBA color|{{{1}}}|2}};}}

Related pages