Difference between revisions of "Template:STDarkGreen"

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

1 Usage[edit]

The STDarkGreen template is used to color text in pages, with the STMicroelectronics corporate secondary primary color shade of dark green (█).

Where:

Usage:  {{STDarkGreen|<text to color>|tint=<tint>}}
Where
  • <text to color> is the text to format in dark green. If this template is called with no text, the hexadecimal code of the color is returned.
  • <tint> is the tint of the color expressed in percentage. If tint is not set then the original color is used (tint = 100%). The possible value are:
    • 75: 75% of the original color tint
    • 50: 50% of the original color tint
    • 25: 25% of the original color tint

2 Basic examples[edit]

You type You get
Coloring text in dark green
This is a {{STDarkGreen|STMicroelectronics corporate color: shade of dark green: █}}

This is a STMicroelectronics corporate color: shade of dark green: █

Coloring text in 75% tint of dark green

This is a {{STDarkGreen|STMicroelectronics corporate color: 75% tint of dark green: █ | tint=75}}

This is a STMicroelectronics corporate color: 75% tint of dark green: █

Coloring text in 50% tint of dark green

This is a {{STDarkGreen|STMicroelectronics corporate color: 50% tint of dark green: █ | tint=50}}

This is a STMicroelectronics corporate color: 50% tint of dark green: █

Coloring text in 25% tint of dark green

This is a {{STDarkGreen|STMicroelectronics corporate color: 25% tint of dark green: █ | tint=25}}

This is a STMicroelectronics corporate color: 25% tint of dark green: █

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

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

Getting the hexadecimal code of the 75% tint of the color

{{STDarkGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of dark green.

#438163 is the hexadecimal code of STMicroelectronics 75% tint of dark green.

Getting the hexadecimal code of the 50% tint of the color

{{STDarkGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of dark green.

#81AB97 is the hexadecimal code of STMicroelectronics 50% tint of dark green.

Getting the hexadecimal code of the 25% tint of the color

{{STDarkGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of dark green.

#BDD3C8 is the hexadecimal code of STMicroelectronics 25% tint of dark green.

3 More examples[edit]

You type You get
Dark dark green and bold
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: █}}'''

This is a STMicroelectronics corporate color: shade of dark green: █

Dark dark green and italic
This is a {{STDarkGreen|''STMicroelectronics''}} corporate color: ''{{STDarkGreen|shade of dark green: █}}''

This is a STMicroelectronics corporate color: shade of dark green: █

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]

#04572F

<noinclude>

==Usage==
The [[Template:STDarkGreen|STDarkGreen]] template is used '''to color text''' in pages, with the STMicroelectronics corporate secondaryprimary color {{STDarkGreen|shade of dark green (&#9608;)}}.
 Where:Usage:  <nowiki>{{</nowiki>STDarkGreen|{{HighlightParam|<text to color>}}}}
Where |tint={{HighlightParam|<tint>}}}}
*{{HighlightParam|<text to color>}} is the text to format in dark green. If this template is called with no text, the hexadecimal code of the color is returned.

==*{{HighlightParam|<tint>}} is the tint of the color expressed in percentage. If tint is not set then the original color is used (tint = 100%). The possible value are:
**'''75''': 75% of the original color tint
**'''50''': 50% of the original color tint
**'''25''': 25% of the original color tint

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

This is a {{STDarkGreen|STMicroelectronics corporate color: shade of dark green: &#9608;}}</pre>

|
This is a {{STDarkGreen|STMicroelectronics corporate color: shade of dark green: &#9608;}}
|-
|  Coloring text in 75% tint of dark green<pre style="white-space: pre-wrap;">

This is a {{STDarkGreen|STMicroelectronics corporate color: 75% tint of dark green: &#9608; | tint=75}}</pre>

|
This is a {{STDarkGreen|STMicroelectronics corporate color: 75% tint of dark green: &#9608; | tint=75}}
|-
|  Coloring text in 50% tint of dark green<pre style="white-space: pre-wrap;">

This is a {{STDarkGreen|STMicroelectronics corporate color: 50% tint of dark green: &#9608; | tint=50}}</pre>

|
This is a {{STDarkGreen|STMicroelectronics corporate color: 50% tint of dark green: &#9608; | tint=50}}
|-
|  Coloring text in 25% tint of dark green<pre style="white-space: pre-wrap;">

This is a {{STDarkGreen|STMicroelectronics corporate color: 25% tint of dark green: &#9608; | tint=25}}</pre>

|
This is a {{STDarkGreen|STMicroelectronics corporate color: 25% tint of dark green: &#9608; | tint=25}}
|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

{{STDarkGreen}} is the hexadecimal code of STMicroelectronics dark green.</pre>

|
{{STDarkGreen}} is the hexadecimal code of STMicroelectronics dark green.
|}

==-
| Getting the hexadecimal code of the 75% tint of the color<pre style="white-space: pre-wrap;">

{{STDarkGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of dark green.</pre>

|
{{STDarkGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of dark green.
|-
| Getting the hexadecimal code of the 50% tint of the color<pre style="white-space: pre-wrap;">

{{STDarkGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of dark green.</pre>

|
{{STDarkGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of dark green.
|-
| Getting the hexadecimal code of the 25% tint of the color<pre style="white-space: pre-wrap;">

{{STDarkGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of dark green.</pre>

|
{{STDarkGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of dark green.
|}

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

This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''</pre>

|
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''
|-
| Darkdark green and italic<pre style="white-space: pre-wrap;">

This is a {{STDarkGreen|''STMicroelectronics''}} corporate color: ''{{STDarkGreen|shade of dark green: &#9608;}}''</pre>

|
This is a {{STDarkGreen|''STMicroelectronics''}} corporate color: ''{{STDarkGreen|shade of dark green: &#9608;}}''
|}	

==Maintenance==
This template is a template common to all ST wikis. <br>

Modifications must be done into the [[stwikimodel:Template:STDarkGreen|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>{{#switch:{{{tint|none}}}
| 75 = {{#vardefine:tintval|438163}}
| 50 = {{#vardefine:tintval|81AB97}}
| 25 = {{#vardefine:tintval|BDD3C8}}
| #default = {{#vardefine:tintval|04572F}}
}}{{#if: {{{1|}}}|<span style="color: #04572F#{{#var:tintval}};">{{{1}}}</span>|&#35;04572F}}{{#var:tintval}}}}
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:STDarkGreen|STDarkGreen]] template is used '''to color text''' in pages, with the STMicroelectronics corporate secondary color {{STDarkGreen|shade of dark green (&#9608;)}}.
+
The [[Template:STDarkGreen|STDarkGreen]] template is used '''to color text''' in pages, with the STMicroelectronics corporate primary color {{STDarkGreen|shade of dark green (&#9608;)}}.
   
  Usage:  <nowiki>{{</nowiki>STDarkGreen|{{HighlightParam|<text to color>}}}}
+
Where:
Where {{HighlightParam|<text to color>}} is the text to format in dark green. If this template is called with no text, the hexadecimal code of the color is returned.
+
  Usage:  <nowiki>{{</nowiki>STDarkGreen|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}}
  +
*{{HighlightParam|<text to color>}} is the text to format in dark green. If this template is called with no text, the hexadecimal code of the color is returned.
  +
*{{HighlightParam|<tint>}} is the tint of the color expressed in percentage. If tint is not set then the original color is used (tint = 100%). The possible value are:
  +
**'''75''': 75% of the original color tint
  +
**'''50''': 50% of the original color tint
  +
**'''25''': 25% of the original color tint
   
 
==Basic examples==
 
==Basic examples==
Line 16: Line 21:
 
|
 
|
 
This is a {{STDarkGreen|STMicroelectronics corporate color: shade of dark green: &#9608;}}
 
This is a {{STDarkGreen|STMicroelectronics corporate color: shade of dark green: &#9608;}}
  +
|-
  +
|  Coloring text in 75% tint of dark green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 75% tint of dark green: &#9608; | tint=75}}
  +
</pre>
  +
|
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 75% tint of dark green: &#9608; | tint=75}}
  +
|-
  +
|  Coloring text in 50% tint of dark green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 50% tint of dark green: &#9608; | tint=50}}
  +
</pre>
  +
|
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 50% tint of dark green: &#9608; | tint=50}}
  +
|-
  +
|  Coloring text in 25% tint of dark green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 25% tint of dark green: &#9608; | tint=25}}
  +
</pre>
  +
|
  +
This is a {{STDarkGreen|STMicroelectronics corporate color: 25% tint of dark green: &#9608; | tint=25}}
 
|-
 
|-
 
| Getting the hexadecimal code of the color
 
| Getting the hexadecimal code of the color
Line 23: Line 49:
 
|
 
|
 
{{STDarkGreen}} is the hexadecimal code of STMicroelectronics dark green.
 
{{STDarkGreen}} is the hexadecimal code of STMicroelectronics dark green.
  +
|-
  +
| Getting the hexadecimal code of the 75% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STDarkGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of dark green.
  +
</pre>
  +
|
  +
{{STDarkGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of dark green.
  +
|-
  +
| Getting the hexadecimal code of the 50% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STDarkGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of dark green.
  +
</pre>
  +
|
  +
{{STDarkGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of dark green.
  +
|-
  +
| Getting the hexadecimal code of the 25% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STDarkGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of dark green.
  +
</pre>
  +
|
  +
{{STDarkGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of dark green.
 
|}
 
|}
   
Line 29: Line 76:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| Dark green and bold
+
| dark green and bold
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
 
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''
 
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''
Line 36: Line 83:
 
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''
 
This is a {{STDarkGreen|'''STMicroelectronics'''}} corporate color: '''{{STDarkGreen|shade of dark green: &#9608;}}'''
 
|-
 
|-
| Dark green and italic
+
| dark green and italic
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
 
This is a {{STDarkGreen|''STMicroelectronics''}} corporate color: ''{{STDarkGreen|shade of dark green: &#9608;}}''
 
This is a {{STDarkGreen|''STMicroelectronics''}} corporate color: ''{{STDarkGreen|shade of dark green: &#9608;}}''
Line 50: Line 97:
   
 
==Code==
 
==Code==
</noinclude>{{#if: {{{1|}}}|<span style="color: #04572F;">{{{1}}}</span>|&#35;04572F}}
+
</noinclude>{{#switch:{{{tint|none}}}
  +
| 75 = {{#vardefine:tintval|438163}}
  +
| 50 = {{#vardefine:tintval|81AB97}}
  +
| 25 = {{#vardefine:tintval|BDD3C8}}
  +
| #default = {{#vardefine:tintval|04572F}}
  +
}}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|&#35;{{#var:tintval}}}}