Difference between revisions of "Template:Green"

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

1 Usage[edit]

The Historically, the Green template is 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.

Prefer the STMicroelectronics brand colors
Info white.png Information
Warning white.png Warning
Do not use this template anymore: use the STDarkGreen template instead.

2 Basic examples[edit]

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

This is 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 theSTMicroelectronics "classic"dark green.

#04572F is the hexadecimal code of the "classic" STMicroelectronics dark green.

3 More examples[edit]

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

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

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

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

4 Code[edit]

#008000 #04572F

<noinclude>

==Usage==The Historically, the [[Template:Green|Green]] template iswas used '''to color text''' in pages, with the {{Green|"classic MediaWiki green" (&#9608;)}} color. It is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template that is a STMicroelectronics corporate color.

 Usage:  <nowiki>{{</nowiki>Green|{{HighlightParam|<text to color>}}}}
Where {{HighlightParam|<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.
{{Info|Prefer the STMicroelectronics brand colorsWarning|Do not use this template anymore: use the [[Template:STDarkGreen|STDarkGreen]] template instead.}}

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

This is a {{Green|"classic" color: green: &#9608;}}</pre>

|
This is a {{Green|"classic" color: green: &#9608;}}: it is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template<pre style="white-space: pre-wrap;">

This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.</pre>

|
This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

{{Green}} is the hexadecimal code of the "classic"STMicroelectronics dark green.</pre>

|
{{Green}} is the hexadecimal code of the "classic"STMicroelectronics dark green.
|}

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

This iswas a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}'''
</pre>

|
This is a {{Green|'''"classic: it is now mapped on the ST dark green.</pre>

|
This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}'''
: it is now mapped on the ST dark green.|-
| Green and italic<pre style="white-space: pre-wrap;">

This iswas a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}''
</pre>

|
This is a {{Green|''"classic: it is now mapped on the ST dark green.</pre>

|
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}''

|}	

==Code==</noinclude>{{#if: {{{1|}}}|<span style="color: green;">{{{1}}}</span>|&#35;008000}}: it is now mapped on the ST dark green.
|}	

==Code==</noinclude>{{STDarkGreen|{{{1|}}}}}
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:Green|Green]] template is used '''to color text''' in pages, with the {{Green|"classic green" (&#9608;)}} color.
+
Historically, the [[Template:Green|Green]] template was used '''to color text''' in pages, with the "classic MediaWiki green" color. It is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template that is a STMicroelectronics corporate color.
   
 
  Usage:  <nowiki>{{</nowiki>Green|{{HighlightParam|<text to color>}}}}
 
  Usage:  <nowiki>{{</nowiki>Green|{{HighlightParam|<text to color>}}}}
 
Where {{HighlightParam|<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.
 
Where {{HighlightParam|<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.
{{Info|Prefer the STMicroelectronics brand colors.}}
+
{{Warning|Do not use this template anymore: use the [[Template:STDarkGreen|STDarkGreen]] template instead.}}
   
 
==Basic examples==
 
==Basic examples==
Line 11: Line 11:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| Coloring text in "classic" green
+
| Coloring text in "classic MediaWiki" green: it is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Green|"classic" color: green: &#9608;}}
+
This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Green|"classic" color: green: &#9608;}}
+
This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.
 
|-
 
|-
 
| 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;">
{{Green}} is the hexadecimal code of the "classic" green.
+
{{Green}} is the hexadecimal code of STMicroelectronics dark green.
 
</pre>
 
</pre>
 
|
 
|
{{Green}} is the hexadecimal code of the "classic" green.
+
{{Green}} is the hexadecimal code of STMicroelectronics dark green.
 
|}
 
|}
   
Line 32: Line 32:
 
| Green and bold
 
| Green and bold
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Green|'''"classic"'''}} color: '''{{Green|green: &#9608;}}'''
+
This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}''': it is now mapped on the ST dark green.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Green|'''"classic"'''}} color: '''{{Green|green: &#9608;}}'''
+
This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}''': it is now mapped on the ST dark green.
 
|-
 
|-
 
| Green and italic
 
| Green and italic
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{Green|''"classic"''}} color: ''{{Green|green: &#9608;}}''
+
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.
 
</pre>
 
</pre>
 
|
 
|
This is a {{Green|''"classic"''}} color: ''{{Green|green: &#9608;}}''
+
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.
 
|}
 
|}
   
 
==Code==
 
==Code==
</noinclude>{{#if: {{{1|}}}|<span style="color: green;">{{{1}}}</span>|&#35;008000}}
+
</noinclude>{{STDarkGreen|{{{1|}}}}}