Registered User mNo edit summary |
Registered User (Merge articles) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
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. | ||
{{ | {{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 | This was a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey. | ||
</pre> | </pre> | ||
| | | | ||
This | This was a {{Grey|"classic MediaWiki" color: grey: █}}: 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 | {{Grey}} is the hexadecimal code of STMicroelectronics dark grey. | ||
</pre> | </pre> | ||
| | | | ||
{{Grey}} is the hexadecimal code of | {{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 | This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey. | ||
</pre> | </pre> | ||
| | | | ||
This | This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': 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 | This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey. | ||
</pre> | </pre> | ||
| | | | ||
This | This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey. | ||
|} | |} | ||
==Code== | ==Code== | ||
</noinclude>{{#if: {{{1|}}}|<span style="color: | </noinclude>{{#if: {{{1|}}}|<span style="color: {{STDarkGrey}};">{{{1}}}</span>|{{STDarkGrey}}}} |
Revision as of 11:19, 7 September 2020
1. Usage
Historically, the Grey template 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.
<text to color>}}Usage: {{Grey|
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.
2. Basic examples
You type | You get |
---|---|
Coloring text in "classic MediaWiki" grey: it is now mapped on the STDarkGrey template
This was a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey.
|
This 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 STMicroelectronics dark grey.
|
#464650 is the hexadecimal code of STMicroelectronics dark grey. |
3. More examples
You type | You get |
---|---|
Grey and bold
This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey.
|
This was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey. |
Grey and italic
This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey.
|
This was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey. |
4. Code
#464650