Difference between revisions of "Template:ColorBox/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Usage)
m
Line 17: Line 17:
 
! Visual effect !! Markup
 
! Visual effect !! Markup
 
|-
 
|-
−
| {{ColorBox|green}} || <code><nowiki>{{color box|Green}}</nowiki></code>
+
| {{ColorBox|green}} || <code><nowiki>{{ColorBox|Green}}</nowiki></code>
 
|-
 
|-
 
| {{ColorBox|Yellow|Default color for this text}} || <code><nowiki>{{ColorBox|Yellow|Default color for this text}}</nowiki></code>
 
| {{ColorBox|Yellow|Default color for this text}} || <code><nowiki>{{ColorBox|Yellow|Default color for this text}}</nowiki></code>

Revision as of 02:19, 11 May 2018

Template

Usage

{{ColorBox|colour|text|text colour|border colour}}

{{ColorBox
|Green           - background colour of the box
|Cat             - text in the box; otherwise an empty coloured square. Optional
|Blue            - colour of the text inside the box. Optional
|border=#fff000  - colour of the border around the box. Optional
}}
Examples
Visual effect Markup
     {{ColorBox|Green}}
 Default color for this text  {{ColorBox|Yellow|Default color for this text}}
 White color for this text  {{ColorBox|Blue|White color for this text|White}}
 Using X11 color names  {{ColorBox|SteelBlue|'''Using X11 color names'''|Gold}}
 Using RGB hex triplets  {{ColorBox|#012345|''Using RGB hex triplets''|#fedcba}}
 Red  {{ColorBox|Yellow|Red|#f00|border=#f00}}

Source: Copied from Template:Color boxWikipedia-W.svg