Jump to content

Template:වර්ණ ගැන්වූ පෙළ/උපදෙස්

From Wikisource

භාවිතය

[edit]

{{color|name of color or hex code of color|Text}}

For example:

{{color|red|Hello, world!}} results in Hello, world!
{{color|#00F000|Hello, world!}} results in Hello, world!

See w:Web colors#HTML color names for a list of colors.

Use {{color block|name of color or hex code of color|block content}} where the content to be colored extends over a number of paragraphs.

මේවාත් බලන්න

[edit]

There are individual (inline) templates for the most common colors and Web colors. Don't create more without a compelling reason:

TemplateData

[edit]

The color template can be used to add a span of text with any given text color

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Color name or code1 color

Name of color or hex code of color

Stringrequired
Alpha-numeric text2 text

The string of text to be formatted in the desired color

Stringrequired