Template:Color/doc

From Nookipedia, the Animal Crossing wiki
< Template:Color
Revision as of 00:33, December 25, 2020 by SuperHamster (talk | contribs) (→‎Usage: Adding center option)

Usage

{{Color|<color>|height=<optional>|width=<optional>|margin=<optional>|display=<optional>|roundy=<optional>|small=<optional>|center=<optional>}}

This template creates a div with a background of a given color, with the name of the color centered inside. If no value is entered, a default color is used and box displays 'N/A'. Setting any value for the small parameter will result in the colored box being placed to the left of the text rather than enveloping it.

 Supported Colors
Red
Green
Blue
Yellow
Orange
Pink
Purple
L. Blue
Beige
Brown
Gray
White
Colorful
Black
Default

Example

{{Color|Red|width=100px}}
Red
{{Color|Red|small=yes}}
 
Red