Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color/doc: Difference between revisions

Template page
mNo edit summary
 
Line 75: Line 75:
{{Color|text=Admin|color=white|bg=#d33|weight=bold|padding=3px 8px|radius=6px}}
{{Color|text=Admin|color=white|bg=#d33|weight=bold|padding=3px 8px|radius=6px}}


=== And plenty more styles! ===
''' And plenty more styles! '''


<noinclude>
<noinclude>
[[Category:Template]]
[[Category:Template]]
<noinclude>
<noinclude>

Latest revision as of 06:24, 22 April 2026


Documentation subpage

This is a documentation subpage for a template. It is not included when the template is used.




Description

This template formats text with custom colors and styles using inline CSS.


Usage

{{Color
| text  = 
| color = 
}}

or 

{{Color|text=TEXTHERE|color=COLORHERE}}


Parameters

Basic

Parameter Description Default
text The text to display (empty)
color Text color (name, hex, rgb) inherit
bg Background color transparent

Styling

Parameter Description Default
weight Font weight (e.g. bold) normal
style Font style (e.g. italic) normal
size Font size (e.g. 120%, 14px) 100%
border CSS border (e.g. 1px solid black) none
padding Space inside element (e.g. 3px 6px) 0
radius Border radius (rounded corners) 0


Examples

Basic color

Warning!





Warning texts

This is

very important





information.

Custom hexcode colors

Dodecahedron





Tag Style

Building






Role badge

Admin






And plenty more styles!