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..."
 
Lumosityfan (talk | contribs)
Added category and noinclude
Line 37: Line 37:
|-
|-
|}
|}
<noinclude>
[[Category:Templates]]
</noinclude>

Revision as of 18:57, 17 May 2020

Template:Color box/doc - 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!