Last edited 3 years ago

Template:Red: Difference between revisions

Registered User
mNo edit summary
Registered User
(Merge articles)
 
(One intermediate revision by one other user not shown)
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;}}''
|}
|}
==Maintenance==
This template is a template common to all ST wikis. <br>
Modifications must be done into the [[stwikimodel:Template:Red|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: red;">{{{1}}}</span>|&#35;FF0000}}
</noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|&#35;FF0000}}

Latest revision as of 18:30, 8 July 2021

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.

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. Maintenance

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

#FF0000

No categories assignedEdit