Last edited 4 years ago

Template:Red: Difference between revisions

Registered User
mNo edit summary
Registered User
(Merge articles)
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" (&#9608;)}} color.
The [[Template:Red|Red]] template is used '''to color text''' in pages, with the {{Red|"classic MediaWiki red" (&#9608;)}} 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 brand colors.}}
{{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: &#9608;}}
This is a {{Red|"classic MediaWiki" color: red: &#9608;}}
</pre>
</pre>
|
|
This is a {{Red|"classic" color: red: &#9608;}}
This is a {{Red|"classic MediaWiki" color: red: &#9608;}}
|-
|-
| 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: &#9608;}}'''
This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: &#9608;}}'''
</pre>
</pre>
|
|
This is a {{Red|'''"classic"'''}} color: '''{{Red|red: &#9608;}}'''
This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: &#9608;}}'''
|-
|-
| 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: &#9608;}}''
This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: &#9608;}}''
</pre>
</pre>
|
|
This is a {{Red|''"classic"''}} color: ''{{Red|red: &#9608;}}''
This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: &#9608;}}''
|}
|}


==Code==
==Code==
</noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|&#35;FF0000}}
</noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|&#35;FF0000}}

Revision as of 11:23, 7 September 2020

1. Usage

The Red template is used to color text in pages, with the "classic MediaWiki red" (█) color.

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

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.

File:Info.png 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