Last edited 4 years ago

Template:Green: Difference between revisions


Latest revision as of 16:27, 9 March 2021

1. Usage

Historically, the Green template was used to color text in pages, with the "classic MediaWiki green" color. It is now mapped on the STDarkGreen template that is a STMicroelectronics corporate color.

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

Where <text to color> is the text to format in green. If this template is called with no text, the hexadecimal code of the color is returned.

2. Basic examples

You type You get
Coloring text in "classic MediaWiki" green: it is now mapped on the STDarkGreen template
This was a {{Green|"classic MediaWiki" color: green: █}}: it is now mapped on the ST dark green.

This was a "classic MediaWiki" color: green: █: it is now mapped on the ST dark green.

Getting the hexadecimal code of the color
{{Green}} is the hexadecimal code of STMicroelectronics dark green.

#003D14 is the hexadecimal code of STMicroelectronics dark green.

3. More examples

You type You get
Green and bold
This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: █}}''': it is now mapped on the ST dark green.

This was a "classic MediaWiki" color: green: █: it is now mapped on the ST dark green.

Green and italic
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: █}}'': it is now mapped on the ST dark green.

This was a "classic MediaWiki" color: green: █: it is now mapped on the ST dark green.

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

#003D14

No categories assignedEdit