Registered User mNo edit summary |
Registered User mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
The [[Template:Red|Red]] template is used '''to color text''' in pages, with the {{Red|"classic red" (█)}} color. | The [[Template:Red|Red]] template is used '''to color text''' in pages, with the {{Red|"classic MediaWiki red" (█)}} color. | ||
Usage: <nowiki>{{</nowiki>Red|{{HighlightParam|<text to color>}}}} | Usage: <nowiki>{{</nowiki>Red|{{HighlightParam|<text to color>}}}} | ||
Where {{HighlightParam|<text to color>}} is the text to format in red. 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 red. If this template is called with no text, the hexadecimal code of the color is returned. | ||
{{Info|Prefer the STMicroelectronics | {{Info|Prefer the STMicroelectronics corporate colors.}} | ||
==Basic examples== | ==Basic examples== | ||
Line 11: | Line 11: | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| Coloring text in "classic" red | | Coloring text in "classic MediaWiki" red | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Red|"classic" color: red: █}} | This is a {{Red|"classic MediaWiki" color: red: █}} | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Red|"classic" color: red: █}} | This is a {{Red|"classic MediaWiki" color: red: █}} | ||
|- | |- | ||
| 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;"> | ||
{{Red}} is the hexadecimal code of the "classic" red. | {{Red}} is the hexadecimal code of the "classic MediaWiki" red. | ||
</pre> | </pre> | ||
| | | | ||
{{Red}} is the hexadecimal code of the "classic" red. | {{Red}} is the hexadecimal code of the "classic MediaWiki" red. | ||
|} | |} | ||
Line 32: | Line 32: | ||
| Red and bold | | Red and bold | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Red|'''"classic"'''}} color: '''{{Red|red: █}}''' | This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: █}}''' | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Red|'''"classic"'''}} color: '''{{Red|red: █}}''' | This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: █}}''' | ||
|- | |- | ||
| Red and italic | | Red and italic | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Red|''"classic"''}} color: ''{{Red|red: █}}'' | This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: █}}'' | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Red|''"classic"''}} color: ''{{Red|red: █}}'' | This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: █}}'' | ||
|} | |} | ||
==Code== | ==Code== | ||
</noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|#FF0000}} | </noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|#FF0000}} |
Revision as of 12:43, 7 August 2020
1. Usage
The Red template is used to color text in pages, with the "classic MediaWiki red" (█) color.
<text to color>}}Usage: {{Red|
Where <text to color> is the text to format in red. If this template is called with no text, the hexadecimal code of the color is returned.
![]() |
Prefer the STMicroelectronics corporate colors. |
2. Basic examples
You type | You get |
---|---|
Coloring text in "classic MediaWiki" red
This is a {{Red|"classic MediaWiki" color: red: █}}
|
This is a "classic MediaWiki" color: red: █ |
Getting the hexadecimal code of the color
{{Red}} is the hexadecimal code of the "classic MediaWiki" red.
|
#FF0000 is the hexadecimal code of the "classic MediaWiki" red. |
3. More examples
You type | You get |
---|---|
Red and bold
This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: █}}'''
|
This is a "classic MediaWiki" color: red: █ |
Red and italic
This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: █}}''
|
This is a "classic MediaWiki" color: red: █ |
4. Code
#FF0000