Difference between revisions of "Template:Red"

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

1 Usage[edit]

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 white.png Information
Prefer the STMicroelectronics corporate colors.

2 Basic examples[edit]

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[edit]

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[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]

#FF0000

<noinclude>

==Usage==
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>}}}}
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 corporate colors.}}

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

This is a {{Red|"classic MediaWiki" color: red: &#9608;}}</pre>

|
This is a {{Red|"classic MediaWiki" color: red: &#9608;}}
|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

{{Red}} is the hexadecimal code of the "classic MediaWiki" red.</pre>

|
{{Red}} is the hexadecimal code of the "classic MediaWiki" red.
|}

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

This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: &#9608;}}'''</pre>

|
This is a {{Red|'''"classic MediaWiki"'''}} color: '''{{Red|red: &#9608;}}'''
|-
| Red and italic<pre style="white-space: pre-wrap;">

This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: &#9608;}}''</pre>

|
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==</noinclude>{{#if: {{{1|}}}|<span style="color: red;">{{{1}}}</span>|&#35;FF0000}}
Line 44: Line 44:
 
This is a {{Red|''"classic MediaWiki"''}} 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}}