Difference between revisions of "Template:Color"
From Nookipedia, the Animal Crossing wiki
m (Redirected page to Template:UB Fav Color) |
(Color template for item tables) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
− | # | + | <div style="background:{{#switch:{{{1|}}} |
+ | | red | ||
+ | | Red = #ff9999 | ||
+ | | green | ||
+ | | Green = #adebad | ||
+ | | blue | ||
+ | | Blue = #9999ff | ||
+ | | yellow | ||
+ | | Yellow = #ffeb99 | ||
+ | | orange | ||
+ | | Orange = #ffc299 | ||
+ | | pink | ||
+ | | Pink = #fab4e6 | ||
+ | | purple | ||
+ | | Purple = #cc99ff | ||
+ | | aqua | ||
+ | | Aqua | ||
+ | | cyan | ||
+ | | Cyan | ||
+ | | lightblue | ||
+ | | light blue | ||
+ | | LightBlue | ||
+ | | Light Blue | ||
+ | | L. Blue | ||
+ | | L. blue | ||
+ | | l. blue = #add8E6 | ||
+ | | beige | ||
+ | | Beige = #e9e9af | ||
+ | | brown | ||
+ | | Brown = #e6ccb3 | ||
+ | | grey | ||
+ | | Grey | ||
+ | | gray | ||
+ | | Gray = #ccc | ||
+ | | white | ||
+ | | White = #fff | ||
+ | | black | ||
+ | | Black = #b3b3b3 | ||
+ | | colorful | ||
+ | | Colorful = linear-gradient(to right, #ff9999,#adebad 40%, #adebad, #adebad 60%, #9999ff) | ||
+ | | #default= #e6e6e6 | ||
+ | }}; {{roundy|{{{roundy|9px}}}}}; {{#if:{{{height|}}}|line-height:{{{height|}}};}}text-align:center; padding:4px 3px 3px 3px; margin:3px; width:{{{width|4.5em}}};"><small>{{{1|Unknown}}}</small></div><noinclude> | ||
+ | |||
+ | ==Usage== | ||
+ | |||
+ | <pre> | ||
+ | {{Color|<color>|height=<optional>|width=<optional>|roundy=<optional>}} | ||
+ | </pre> | ||
+ | Creates a div with a background of a given color, with a color name centered inside. If no value is entered, default color is used and box displays 'Unknown'. | ||
+ | |||
+ | {| style="border-collapse:collapse;" | ||
+ | !colspan=4 style="text-align:left;"| Supported Colors | ||
+ | |- | ||
+ | |{{Color|Red}} | ||
+ | {{Color|Green}} | ||
+ | {{Color|Blue}} | ||
+ | {{Color|Yellow}} | ||
+ | |{{Color|Orange}} | ||
+ | {{Color|Pink}} | ||
+ | {{Color|Purple}} | ||
+ | {{Color|L. Blue}} | ||
+ | |{{Color|Beige}} | ||
+ | {{Color|Brown}} | ||
+ | {{Color|Gray}} | ||
+ | {{Color|White}} | ||
+ | |style="vertical-align:bottom;"|{{Color|Colorful}} | ||
+ | {{Color|Black}} | ||
+ | {{Color|Default}} | ||
+ | |} |
Revision as of 19:37, April 16, 2020
Unknown
Usage
{{Color|<color>|height=<optional>|width=<optional>|roundy=<optional>}}
Creates a div with a background of a given color, with a color name centered inside. If no value is entered, default color is used and box displays 'Unknown'.
Supported Colors | |||
---|---|---|---|
Red
Green
Blue
Yellow
|
Orange
Pink
Purple
L. Blue
|
Beige
Brown
Gray
White
|
Colorful
Black
Default
|