Games:  Legacy Online | Legacy Dev Hunted Cow Studios 



Difference between revisions of "Template:Color Box"

To Login to the wiki, use your username for Legacy and then go here to get your temporary password. - Will (talk)

From Legacy Wiki

Jump to: navigation, search
(Created page with "<div style="background-color:{{{color|#000}}};border:1px solid {{{border|#888}}};border-left-width:5px;font-style:italic;text-align:left;padding:1em; overflow:hidden;color:{{{tex...")
 
(Example)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
The first unnamed parameter is the text to appear in the box.
 
The first unnamed parameter is the text to appear in the box.
  
<nowiki>{{Color box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}</nowiki>
+
<nowiki>{{Color Box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}</nowiki>
{{Color box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}
+
{{Color Box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}
  
<nowiki>{{Color box|color=#205|border=#60b|And this one is purple.}}</nowiki>
+
<nowiki>{{Color Box|color=#205|border=#60b|And this one is purple.}}</nowiki>
{{Color box|color=#205|border=#60b|And this one is purple.}}
+
{{Color Box|color=#205|border=#60b|And this one is purple.}}
  
<nowiki>{{Color box|color=#c0f|border=#a0f|text=#000|Too light}}</nowiki>
+
<nowiki>{{Color Box|color=#c0f|border=#a0f|text=#000|Too light}}</nowiki>
{{Color box|color=#c0f|border=#a0f|text=#000|Too light}}
+
{{Color Box|color=#c0f|border=#a0f|text=#000|Too light}}
  
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:22, 1 February 2011

{{{1}}}

Example

The 'color' parameter is the background color. The 'border' parameter is the border color. The background color should be a darker shade of the border color. If the background color is not dark, the white text may be difficult to read. In that case, use a black text by setting the 'text' parameter. The first unnamed parameter is the text to appear in the box.

{{Color Box|color=#144f1d|border=#2f8f2f|I made a colorful box!}}

I made a colorful box!

{{Color Box|color=#205|border=#60b|And this one is purple.}}

And this one is purple.

{{Color Box|color=#c0f|border=#a0f|text=#000|Too light}}

Too light