Difference between revisions of "Template:CollegePrimaryStyle"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
Line 1: | Line 1: | ||
− | background-color:#{{CollegePrimaryHex|{{{1}}}}}; {{#ifexpr:{{{border|2}}}>0|border: {{{border|2}}}px solid #{{CollegeSecondaryHex|{{{1}}}}};}} color:{{{color|#{{CollegeSecondaryHex|{{{1}}}}}}}};<noinclude> | + | background-color:#{{CollegePrimaryHex|{{{1}}}}}; {{#ifexpr:{{{border|2}}}>0|{{#ifeq:{{CollegeSecondaryHex|{{{1}}}}}|FFFFFF||border: {{{border|2}}}px solid #{{CollegeSecondaryHex|{{{1}}}}};}}}} color:{{{color|#{{CollegeSecondaryHex|{{{1}}}}}}}};<noinclude> |
{{documentation|content= | {{documentation|content= | ||
This template may be used to generate the {{para|titlestyle}} for a {{tl|navbox}} template. It uses the colors specified by the {{tl|CollegePrimaryHex}} and {{tl|CollegeSecondaryHex}} templates. By default, it uses the primary color for the background, and the secondary color for the border and text. To override the text color, use {{para|color}}. To remove the border, use {{para|border|0}}. | This template may be used to generate the {{para|titlestyle}} for a {{tl|navbox}} template. It uses the colors specified by the {{tl|CollegePrimaryHex}} and {{tl|CollegeSecondaryHex}} templates. By default, it uses the primary color for the background, and the secondary color for the border and text. To override the text color, use {{para|color}}. To remove the border, use {{para|border|0}}. |
Revision as of 11:06, 10 September 2013
background-color:#DCDCDC; border: 2px solid #000000; color:#000000;
Template documentation
This template may be used to generate the |titlestyle=
for a {{navbox}} template. It uses the colors specified by the {{CollegePrimaryHex}} and {{CollegeSecondaryHex}} templates. By default, it uses the primary color for the background, and the secondary color for the border and text. To override the text color, use |color=
. To remove the border, use |border=0
.
See also
- {{CollegeSecondaryStyle}}
- {{Baseball primary color}}
- {{NBA color}}
- {{NFLPrimaryColor}}
The above documentation is transcluded from Template:CollegePrimaryStyle/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |