Jump to content

Template:Color box: Difference between revisions

From Wiki - Scioly.org
Created page with "<span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|black}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}| {{{2}}} |&nb..."
 
fixing template
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|black}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;}}</span><noinclude><!-- Some parts of this template were borrowed from the Wikipedia template: https://en.wikipedia.org/wiki/Template:Color_box -->{{Color box/doc}}[[Category:Templates]]</noinclude>
<span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|black}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;}}</span><noinclude><!-- Some parts of this template were borrowed from the Wikipedia template: https://en.wikipedia.org/wiki/Template:Color_box --><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>

Latest revision as of 03:26, 6 August 2020

    

Template documentation

The Color box template is used to create a colored box.

Parameters

1 - the background of the box
2 - optional - the text inside the box
3 - optional - the color of the text inside the box
border - optional - the border around the box

Examples

{{Color box|white}}
    
{{Color box|#F5A9B8}}
    
{{Color box|#F5A9B8|This text is inside a pink box!}}
 This text is inside a pink box! 
{{Color box|#F5A9B8|Now with red text!|red}}
 Now with red text! 
{{Color box|#F5A9B8|Now with a '''blue''' border!|red|border=#5BCEFA}}
 Now with a blue border!