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..."
 
Pi-Bot (talk | contribs)
m Replaced old documentation references with the Documentation template.
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:{{Documentation}}[[Category:Templates]]</noinclude>

Revision as of 23:00, 5 August 2020

<span style="background-color:

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}}
<span style="background-color:Template loop detected: Template:Documentation</noinclude>
{{Color box|#F5A9B8}}
<span style="background-color:Template loop detected: Template:Documentation</noinclude>
{{Color box|#F5A9B8|This text is inside a pink box!}}
<span style="background-color:Template loop detected: Template:Documentation</noinclude>
{{Color box|#F5A9B8|Now with red text!|red}}
<span style="background-color:Template loop detected: Template:Documentation</noinclude>
{{Color box|#F5A9B8|Now with a '''blue''' border!|red|border=#5BCEFA}}
<span style="background-color:Template loop detected: Template:Documentation</noinclude>