Difference between revisions of "Template:Grey"

[unchecked revision] [quality revision]
m
m

1 Usage[edit]

The Grey template is used to color text in pages, with the "classic grey" (█) color.

Usage:  {{Grey|<text to color>}}

Where <text to color> is the text to format in grey. If this template is called with no text, the hexadecimal code of the color is returned.

Info white.png Information
Prefer the STMicroelectronics brand colors.

2 Basic examples[edit]

You type You get
Coloring text in "classic" grey
This is a {{Grey|"classic" color: grey: █}}

This is a Classic "classic" color: grey: █

Getting the hexadecimal code of the color
{{Grey}} is the hexadecimal code of the "classic" grey.

#464650 is the hexadecimal code of the "classic" grey.

3 More examples[edit]

You type You get
Grey and bold
This is a {{Grey|'''"classic"'''}} color: '''{{Grey|grey: █}}'''

This is a "classic" color: grey: █

Grey and italic
This is a {{Grey|''"classic"''}} color: ''{{Grey|grey: █}}''

This is a "classic" color: grey: █

4 Code[edit]

#808080

<noinclude>

==Usage==
The [[Template:Grey|Grey]] template is used '''to color text''' in pages, with the {{Grey|"classic grey" (&#9608;)}} color.

 Usage:  <nowiki>{{</nowiki>Grey|{{HighlightParam|<text to color>}}}}
Where {{HighlightParam|<text to color>}} is the text to format in grey. If this template is called with no text, the hexadecimal code of the color is returned.
{{Info|Prefer the STMicroelectronics brand colors.}}

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| Coloring text in "classic" grey<pre style="white-space: pre-wrap;">

This is a {{Grey|"classic" color: grey: &#9608;}}</pre>

|
This is a {{Grey|Classic"classic" color: grey: &#9608;}}
|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

{{Grey}} is the hexadecimal code of the "classic" grey.</pre>

|
{{Grey}} is the hexadecimal code of the "classic" grey.
|}

==More examples==
{| class="st-table"
! You type !! You get
|-
| Grey and bold<pre style="white-space: pre-wrap;">

This is a {{Grey|'''"classic"'''}} color: '''{{Grey|grey: &#9608;}}'''</pre>

|
This is a {{Grey|'''"classic"'''}} color: '''{{Grey|grey: &#9608;}}'''
|-
| Grey and italic<pre style="white-space: pre-wrap;">

This is a {{Grey|''"classic"''}} color: ''{{Grey|grey: &#9608;}}''</pre>

|
This is a {{Grey|''"classic"''}} color: ''{{Grey|grey: &#9608;}}''
|}	

==Code==</noinclude>{{#if: {{{1|}}}|<span style="color: grey;">{{{1}}}</span>|&#35;808080}}
Line 16: Line 16:
 
</pre>
 
</pre>
 
|
 
|
This is a {{Grey|Classic color: grey: &#9608;}}
+
This is a {{Grey|"classic" color: grey: &#9608;}}
 
|-
 
|-
 
| Getting the hexadecimal code of the color
 
| Getting the hexadecimal code of the color