Difference between revisions of "Template:Baseball secondary link"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
{{#if:{{{2|}}}
 
{{#if:{{{2|}}}
   |[[{{{2}}}|<span style="color:#{{Baseball color|{{{1}}}|4}}">{{{3|{{{2}}}}}}</span>]]
+
   |[[{{{2}}}|<span style="color:#{{#invoke:Sports color|color|sport=baseball|{{{1}}}|4}}">{{{3|{{{2}}}}}}</span>]]
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}  
 
{{documentation}}  
 
</noinclude>
 
</noinclude>

Revision as of 14:22, 9 July 2018

50px Template documentation[view] [edit] [history] [purge]

This template is designed to be used with templates to automatically apply the color to a link corresponding to the secondary style for a team in Major League Baseball and other professional leagues. It can be used in conjunction with Template:Baseball secondary color.

Usage

{{Baseball secondary link|TEAMNAME|link target|link text}}

or

{{Baseball secondary link|TEAMNAME|link target}}

For example:

{{Baseball secondary link|Arizona Diamondbacks|Arizona}}
{{Baseball secondary link|Miami Marlins|Miami}}

Supported teams

See Module:Sports color/baseball.

See also