Template:Colors: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
<noinclude>==Usage==</noinclude>
{| style="border:solid {{{favcolor|black}}} 2px; width:250px; text-align:center"
{| style="border:solid {{{favcolor}}} 2px;" width=250
| rowspan=2 | [[Image:crayons.jpg|80px]]
| style="background:{{{favcolor|black}}}; color:{{{othercolor|white}}}; width:100%" | '''Colors'''
|-
|-
| rowspan=2 | [[Image:crayons.jpg|80px]] || style="background:{{{favcolor}}}; color:{{{othercolor}}};" width=200 align="center" | '''Colors'''
| style="font-size:xx-small" | This user's favorite color is {{{favcolor|black}}}.
|-
|}<noinclude>{{FlagboxDoc2|favcolor|your favorite color, which will appear as the border color and in the text|othercolor|the color you want for the title|blue|orange}}[[Category:User Templates|{{PAGENAME}}]]</noinclude>
| align="center"  style="font-size: xx-small" | This user's favorite color is {{{favcolor}}}.
|}<noinclude>
 
 
It may not look like much, but this template can take on a wide variety of appearances, a few of which are shown below:
{{Colors|favcolor=blue|othercolor=black}}'''<nowiki>{{Colors|favcolor=blue|othercolor=black}}</nowiki>'''<br /><br />
{{Colors|favcolor=orange|othercolor=green}}'''<nowiki>{{Colors|favcolor=orange|othercolor=green}}</nowiki>'''<br /><br />
{{Colors|favcolor=lime|othercolor=red}}'''<nowiki>{{Colors|favcolor=lime|othercolor=red}}</nowiki>'''<br /><br />
Use it to show other users what your favorite color is by typing in <nowiki>{{Colors|favcolor=your favorite color|othercolor=any other color}}</nowiki>. Whatever color you type in for <nowiki>{{{favcolor}}}</nowiki> will be the color of the border and heading background. Whatever color you put in for <nowiki>{{{othercolor}}}</nowiki> will be the color of the header text (so make sure the colors are different, or else it won't show up). Also, this won't work if the color you name isn't recognized by the wiki (here is a list of [[Web_colors|colors recognized by the wiki]]). You don't have to put in the hexicode, just the name.
 
[[Category:Flagboxes|{{PAGENAME}}]]
[[Category:User Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:47, 25 July 2009

Crayons.jpg Colors
This user's favorite color is black.

Usage

Variables

This flagbox takes two variables:

  • "favcolor" where you should enter your favorite color, which will appear as the border color and in the text.
  • "othercolor" where you should enter the color you want for the title.

For example, if you were to enter "blue" and "orange" using this code:

{{Colors|favcolor=blue|othercolor=orange}}

this would produce

Crayons.jpg Colors
This user's favorite color is blue.