Difference between revisions of "Template:ColorBox/doc"
Jump to navigation
Jump to search
(Created page with "Template === Usage === <code><nowiki>{{ColorBox|colour|text|text colour}}</nowiki></code> <pre> {{ColorBox |green - background colour of the box |Cat...") |
m (→Usage) |
||
| Line 1: | Line 1: | ||
[[Template:ColorBox|Template]] | [[Template:ColorBox|Template]] | ||
=== Usage === | === Usage === | ||
| − | <code><nowiki>{{ColorBox|colour|text|text colour}}</nowiki></code> | + | <code><nowiki>{{ColorBox|colour|text|text colour|border colour}}</nowiki></code> |
<pre> | <pre> | ||
{{ColorBox | {{ColorBox | ||
| − | | | + | |Green - background colour of the box |
| − | |Cat | + | |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 |
}} | }} | ||
</pre> | </pre> | ||
| + | |||
| + | {| class="wikitable" | ||
| + | |+ '''Examples''' | ||
| + | |- | ||
| + | ! Visual effect !! Markup | ||
| + | |- | ||
| + | | {{ColorBox|green}} || <code><nowiki>{{color box|Green}}</nowiki></code> | ||
| + | |- | ||
| + | | {{ColorBox|Yellow|Default color for this text}} || <code><nowiki>{{ColorBox|Yellow|Default color for this text}}</nowiki></code> | ||
| + | |- | ||
| + | | {{ColorBox|Blue|White color for this text|White}} || <code><nowiki>{{ColorBox|Blue|White color for this text|White}}</nowiki></code> | ||
| + | |- | ||
| + | | {{ColorBox|SteelBlue|'''Using X11 color names'''|Gold}} || <code><nowiki>{{ColorBox|SteelBlue|'''</nowiki>Using X11 color names<nowiki>'''|Gold}}</nowiki></code> | ||
| + | |- | ||
| + | | {{ColorBox|#012345|''Using RGB hex triplets''|#fedcba}} || <code><nowiki>{{ColorBox|#012345|''</nowiki>Using RGB hex triplets<nowiki>''|#fedcba}}</nowiki></code> | ||
| + | |- | ||
| + | | {{ColorBox|Yellow|Red|#f00|border=#f00}} || <code><nowiki>{{ColorBox|Yellow|Red|#f00|border=#f00}}</nowiki></code> | ||
| + | |} | ||
Source: Copied from {{wpl|Template:Color_box}} | Source: Copied from {{wpl|Template:Color_box}} | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 02:19, 11 May 2018
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
}}
| Visual effect | Markup |
|---|---|
{{color box|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 box