మూస:Colour/doc

వికీపీడియా నుండి
Jump to navigation Jump to search


The quick Template:Color can be used to add a span of text with any given text color, such as an RGB hex code, #C9E72A, or any of the web colors: red, blue, green, moccasin, or darkorchid, etc. The foreground text color is set, but to reset the background color, see: {{bg}}.

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

For example:

{{color|red|Hello, world!}}         gives:  Hello, world!
{{color|#00F000|Hello, world!}}   gives:  Hello, world!

Wikitext generated:

<span style="color:{{{1|}}}">{{{2|}}}</span>

See: Web colors, for a list of colors. A misspelled color name will not be reported, but will cause the text to remain as black text.

Performance considerations

[మార్చు]

The template merely uses a span tag:  <span style="color:{{{1}}}">{{{2}}}</span>. It runs at speeds in excess of 700 per second, and so it is functionally identical to the longer span-tag markup.

Template data

[మార్చు]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Colour in articles based on its TemplateData.

TemplateData for Colour

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

మూస పరామితులు

పరామితివివరణరకంస్థితి
Color1

CSS name of color or hex code of color, e.g. 'red' or '#00F000'.

స్ట్రింగుతప్పనిసరి
Text2

The string of text to be be formatted in the desired color

స్ట్రింగుతప్పనిసరి


"https://te.wikipedia.org/w/index.php?title=మూస:Colour/doc&oldid=933114" నుండి వెలికితీశారు