Jump to content

Template:Color box/doc: Difference between revisions

From Wiki - Scioly.org
Created page with "{{TemplateDocStart}} The '''Color box''' template is used to create a colored box. == Parameters == :<code><nowiki>1</nowiki></code> - the background of the box :<code><nowik..."
 
m attempting a fix
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TemplateDocStart}}
The '''Color box''' template is used to create a colored box.
The '''Color box''' template is used to create a colored box.


Line 37: Line 36:
|-
|-
|}
|}
<noinclude>
[[Category:Templates]]
</noinclude>

Latest revision as of 21:18, 8 September 2020

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!