Difference between revisions of "Template:Grey"

[quality revision] [quality revision]
m
(Merge articles)
 

1 Usage[edit]

The Historically, the Grey template is was used to color text in pages, with the "classic MediaWiki grey" (█) color. It is now mapped on the STDarkGrey template that is a STMicroelectronics corporate 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.

Prefer the STMicroelectronics brand colors
Info white.png Information
Warning white.png Warning
Do not use this template anymore: use the STDarkGrey template instead.

2 Basic examples[edit]

You type You get
Coloring text in "classic MediaWiki" grey: it is now mapped on the STDarkGrey template
This iswas a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey.

This is was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

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

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

3 More examples[edit]

You type You get
Grey and bold
This iswas a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey.

This is was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

Grey and italic
This iswas a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey.

This is was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

4 Maintenance[edit]

This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.

5 Code[edit]

#808080 #464650

<noinclude>

==Usage==The Historically, the [[Template:Grey|Grey]] template iswas used '''to color text''' in pages, with the {{Grey|"classic MediaWiki grey" (&#9608;)}} color. It is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template that is a STMicroelectronics corporate 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 colorsWarning|Do not use this template anymore: use the [[Template:STDarkGrey|STDarkGrey]] template instead.}}

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

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

|
This is a {{Grey|"classic" color: grey: &#9608;}}: it is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template<pre style="white-space: pre-wrap;">

This was a {{Grey|"classic MediaWiki" color: grey: &#9608;}}: it is now mapped on the ST dark grey.</pre>

|
This was a {{Grey|"classic MediaWiki" color: grey: &#9608;}}: it is now mapped on the ST dark grey.|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

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

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

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

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

|
This is a {{Grey|'''"classic: it is now mapped on the ST dark grey.</pre>

|
This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: &#9608;}}'''
: it is now mapped on the ST dark grey.|-
| Grey and italic<pre style="white-space: pre-wrap;">

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

|
This is a {{Grey|''"classic: it is now mapped on the ST dark grey.</pre>

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

|}	

==: it is now mapped on the ST dark grey.
|}	

==Maintenance==
This template is a template common to all ST wikis. <br>

Modifications must be done into the [[stwikimodel:Template:Grey|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>

When approved, the template can be pushed/merged towards all ST wikis.

==Code==</noinclude>{{#if: {{{1|}}}|<span style="color: grey{{STDarkGrey}};">{{{1}}}</span>|&#35;808080}}{{STDarkGrey}}}}
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:Grey|Grey]] template is used '''to color text''' in pages, with the {{Grey|"classic grey" (&#9608;)}} color.
+
Historically, the [[Template:Grey|Grey]] template was used '''to color text''' in pages, with the "classic MediaWiki grey" color. It is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template that is a STMicroelectronics corporate color.
   
 
  Usage:  <nowiki>{{</nowiki>Grey|{{HighlightParam|<text to 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.
 
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.}}
+
{{Warning|Do not use this template anymore: use the [[Template:STDarkGrey|STDarkGrey]] template instead.}}
   
 
==Basic examples==
 
==Basic examples==
Line 11: Line 11:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| Coloring text in "classic" grey
+
| Coloring text in "classic MediaWiki" grey: it is now mapped on the [[Template:STDarkGrey|STDarkGrey]] template
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Grey|"classic" color: grey: &#9608;}}
+
This was a {{Grey|"classic MediaWiki" color: grey: &#9608;}}: it is now mapped on the ST dark grey.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Grey|"classic" color: grey: &#9608;}}
+
This was a {{Grey|"classic MediaWiki" color: grey: &#9608;}}: it is now mapped on the ST dark grey.
 
|-
 
|-
 
| Getting the hexadecimal code of the color
 
| Getting the hexadecimal code of the color
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
{{Grey}} is the hexadecimal code of the "classic" grey.
+
{{Grey}} is the hexadecimal code of STMicroelectronics dark grey.
 
</pre>
 
</pre>
 
|
 
|
{{Grey}} is the hexadecimal code of the "classic" grey.
+
{{Grey}} is the hexadecimal code of STMicroelectronics dark grey.
 
|}
 
|}
   
Line 32: Line 32:
 
| Grey and bold
 
| Grey and bold
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Grey|'''"classic"'''}} color: '''{{Grey|grey: &#9608;}}'''
+
This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: &#9608;}}''': it is now mapped on the ST dark grey.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Grey|'''"classic"'''}} color: '''{{Grey|grey: &#9608;}}'''
+
This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: &#9608;}}''': it is now mapped on the ST dark grey.
 
|-
 
|-
 
| Grey and italic
 
| Grey and italic
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Grey|''"classic"''}} color: ''{{Grey|grey: &#9608;}}''
+
This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: &#9608;}}'': it is now mapped on the ST dark grey.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Grey|''"classic"''}} color: ''{{Grey|grey: &#9608;}}''
+
This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: &#9608;}}'': it is now mapped on the ST dark grey.
 
|}
 
|}
  +
  +
==Maintenance==
  +
This template is a template common to all ST wikis. <br>
  +
Modifications must be done into the [[stwikimodel:Template:Grey|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>
  +
When approved, the template can be pushed/merged towards all ST wikis.
   
 
==Code==
 
==Code==
</noinclude>{{#if: {{{1|}}}|<span style="color: grey;">{{{1}}}</span>|&#35;808080}}
+
</noinclude>{{#if: {{{1|}}}|<span style="color: {{STDarkGrey}};">{{{1}}}</span>|{{STDarkGrey}}}}