Difference between revisions of "Template:Colorbox"

From Goon Wiki
Jump to: navigation, search
(Created page with "<span style="background-color:{{{1|}}}; color:{{{3|}}}; text-align:center; border-radius:1em; border:solid #ccc thin;">{{#if:{{{2|}}}| {{{2}}} |   &nb...")
 
Line 1: Line 1:
<span style="background-color:{{{1|}}}; color:{{{3|}}}; text-align:center; border-radius:1em; border:solid #ccc thin;">{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;}}</span><noinclude>{{documentation}}</nowiki>
<span style="background-color:{{{1|}}}; color:{{{3|}}}; text-align:center; border-radius:1em; border:solid #ccc thin;">{{#if:{{{2|}}}|&nbsp;{{{2}}}&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;}}</span>
[[Category:Template]]</noinclude>
<noinclude>{{documentation}}[[Category:Template]]</noinclude>

Revision as of 08:00, 11 November 2021

    

[edit] Template-info.png Template documentation

This is a simple color box template, for use on pages where a color needs to be displayed in-line with text. To set a color for the box, add a pipe, a # symbol, and then the hex code of the color after the usual template syntax, EG: {{template:color_box|#00ff00}}