Last edited 3 years ago

Template:Red: Difference between revisions

Registered User
mNo edit summary
Registered User
(Merge articles)
 
Line 44: Line 44:
This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: █}}''
This is a {{Red|''"classic MediaWiki"''}} color: ''{{Red|red: █}}''
|}
|}
==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