User:ITeachThem/box/doc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Usage[edit | edit source]

This template is used to visually draw attention inline in a message, to a warning about something, such as inappropriate editor behavior, a coding difficulty to watch out for, etc. It is not used in articles, only user space pages (prefixed with User:). This template does not, and will likely never, support images as the purpose of it is to be as minimal as possible. As a result, soft colors are suggested rather than using hard colors (for red, use #733 instead of #F00).

When using a darkened template, I recommend using #333 as a base for other darker color choices. When using as a lightened template, I recommend using #DDD as a base for other lighter color choices.

This template uses four parameters; the first three are required. The parameters control the following options of the template, in this order: Text, Background Color, Text Color, Border Color (optional).

{{User:ITeachThem/box|Text to display|#333|#DDD}}

Will render the following:

Text to display
{{User:ITeachThem/box|Text to display|#333|#DDD|#F00}}

Will render the following:

Text to display

Examples[edit | edit source]

Dark[edit | edit source]

{{User:ITeachThem/box|Dark|#333|#DDD}}
Dark



{{User:ITeachThem/box|Dark Red|#733|#DDD}}
Dark Red



{{User:ITeachThem/box|Dark Blue|#337|#DDD}}
Dark Blue



{{User:ITeachThem/box|Dark Green|#373|#DDD}}
Dark Green



{{User:ITeachThem/box|Dark Purple|#337|#DDD}}
Dark Purple



Light[edit | edit source]

{{User:ITeachThem/box|Light|#CCC|#222}}
Light



{{User:ITeachThem/box|Light Red|#FCC|#222}}
Light Red



{{User:ITeachThem/box|Light Blue|#CCF|#222}}
Light Blue



{{User:ITeachThem/box|Light Green|#CFC|#222}}
Light Green



{{User:ITeachThem/box|Light Pink|#FCF|#222}}
Light Pink