Difference between revisions of "Template:CollegePrimaryStyle"

From Ava Zinn Wiki
Jump to: navigation, search
[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;

Documentation icon 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