Template:Color box: Difference between revisions
Appearance
Pepperonipi (talk | contribs) 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..." |
Jaspattack (talk | contribs) 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|}}}| {{{2}}} | }}</span><noinclude><!-- Some parts of this template were borrowed from the Wikipedia template: https://en.wikipedia.org/wiki/Template:Color_box -->{{ | <span style="background-color:{{{1|}}}; color:{{#if:{{{3|}}}|{{{3}}}|black}}; border:1px solid {{{border|#000000}}}; text-align:center;">{{#if:{{{2|}}}| {{{2}}} | }}</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
The Color box template is used to create a colored box.
Parameters
1- the background of the box2- optional - the text inside the box3- optional - the color of the text inside the boxborder- 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! |