Tài liệu mẫu như sau:
Ghi chú: mẫu này có thể nhìn thấy 1 phần hoặc toàn bộ
Visit Bản mẫu:Color/doc to edit this documentation. (How does this work?)

Description

This template simply changes the color of text. It can optionally change the background color as well.

Syntax

If only 2 parameters are passed, the template changes the color of the text. If 3 parameters are passed it changes both the text color and background color. Note that this template uses unnamed parameters, and both parameter options use different layouts, as seen below.

Text Color Only

{{Color|Text-Color|Text}}
Text-Color - Required - Any html acceptable color (eg. red, green, #CCCCCC, #AAA, initial etc.).
Text - Required - The text you wish to color.

Text and Background Colors

{{Color|Text-Color|Background-Color|Text}}
Text-Color - Required - Any html acceptable color (eg. red, green, #CCCCCC, #AAA, initial etc.).
Background-Color - Required - Any html acceptable color.
Text - Required - The text you wish to color.

Samples

{{Color|blue|This is Some Text.}}
This is Some Text.

{{Color|#AAA|This is Some Text.}}
This is Some Text.

{{Color|red|black|This is Some Text.}}
This is Some Text.

{{Color||green|This is Some Text.}}

This is Some Text.
Community content is available under CC-BY-SA unless otherwise noted.