Difference between revisions of "Template:STLightGreen"

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

1 Usage[edit]

The STLightGreen template is used to get the hexadecimal code of the color text in pages, with the STMicroelectronics corporate secondary primary color shade of light green (█).

Usage:  {{STLightGreen|<text to color>|tint=<tint>}}

Where:

  • <text to color> is the text to format in light 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 light green

This is a {{STLightGreen|STMicroelectronics corporate color: shade of light green: █}}

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

Coloring text in 75% tint of light green

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

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

Coloring text in 50% tint of light green

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

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

Coloring text in 25% tint of light green

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

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

Getting the hexadecimal code of the color
{{STLightGreen}} is the hexadecimal code of STMicroelectronics light green.

#49B170 is the hexadecimal code of STMicroelectronics light green.

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

{{STLightGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light green.

#77C594 is the hexadecimal code of STMicroelectronics 75% tint of light green.

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

{{STLightGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light green.

#A4D8B7 is the hexadecimal code of STMicroelectronics 50% tint of light green.

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

{{STLightGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light green.

#C7E7D3 is the hexadecimal code of STMicroelectronics 25% tint of light green.

3 More examples[edit]

You type You get
Parameter is ignored light green and bold
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color: '''{{STLightGreen|shade of light green: █}}'''

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

light green and italic

This is a {{STLightGreen|''STMicroelectronics''}} corporate color: ''{{STLightGreen|shade of light green: █}}''

This is a STMicroelectronics corporate color: shade of light 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]

#49B170

<noinclude>

==Usage==
The [[Template:STLightGreen|STLightGreen]] template is used '''to get the hexadecimal code''' of the STMicroelectronics corporate secondary color <span style="color: {{STLightGreen}};">color text''' in pages, with the STMicroelectronics corporate primary color {{STLightGreen|shade of light green (&#9608;)</span>}}.

 Usage:  <nowiki>{{</nowiki>STLightGreen}}

==|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}}
Where:
*{{HighlightParam|<text to color>}} is the text to format in light 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 light green<pre style="white-space: pre-wrap;">

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

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

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

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

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

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

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

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

{{STLightGreen}} is the hexadecimal code of STMicroelectronics light green.</pre>

|
{{STLightGreen}} is the hexadecimal code of STMicroelectronics light green.
|}

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

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

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

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

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

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

|
{{STLightGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light green.
|}

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

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

|
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color

|}: '''{{STLightGreen|shade of light green: &#9608;}}'''
|-
| light green and italic<pre style="white-space: pre-wrap;">

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

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


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

Modifications must be done into the [[stwikimodel:Template:STLightGreen|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>&#35;49B170{{#switch:{{{tint|none}}}
| 75 = {{#vardefine:tintval|77C594}}
| 50 = {{#vardefine:tintval|A4D8B7}}
| 25 = {{#vardefine:tintval|C7E7D3}}
| #default = {{#vardefine:tintval|49B170}}
}}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|&#35;{{#var:tintval}}}}
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:STLightGreen|STLightGreen]] template is used '''to get the hexadecimal code''' of the STMicroelectronics corporate secondary color <span style="color: {{STLightGreen}};">shade of light green (&#9608;)</span>.
+
The [[Template:STLightGreen|STLightGreen]] template is used '''to color text''' in pages, with the STMicroelectronics corporate primary color {{STLightGreen|shade of light green (&#9608;)}}.
   
  Usage:  <nowiki>{{</nowiki>STLightGreen}}
+
  Usage:  <nowiki>{{</nowiki>STLightGreen|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}}
  +
Where:
  +
*{{HighlightParam|<text to color>}} is the text to format in light 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==
 
{| class="st-table"
 
{| class="st-table"
 
! You type !! You get
 
! You type !! You get
  +
|-
  +
|  Coloring text in light green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STLightGreen|STMicroelectronics corporate color: shade of light green: &#9608;}}
  +
</pre>
  +
|
  +
This is a {{STLightGreen|STMicroelectronics corporate color: shade of light green: &#9608;}}
  +
|-
  +
|  Coloring text in 75% tint of light green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 75% tint of light green: &#9608; | tint=75}}
  +
</pre>
  +
|
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 75% tint of light green: &#9608; | tint=75}}
  +
|-
  +
|  Coloring text in 50% tint of light green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 50% tint of light green: &#9608; | tint=50}}
  +
</pre>
  +
|
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 50% tint of light green: &#9608; | tint=50}}
  +
|-
  +
|  Coloring text in 25% tint of light green
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 25% tint of light green: &#9608; | tint=25}}
  +
</pre>
  +
|
  +
This is a {{STLightGreen|STMicroelectronics corporate color: 25% tint of light green: &#9608; | tint=25}}
 
|-
 
|-
 
| Getting the hexadecimal code of the color
 
| Getting the hexadecimal code of the color
Line 15: Line 49:
 
|
 
|
 
{{STLightGreen}} is the hexadecimal code of STMicroelectronics light green.
 
{{STLightGreen}} is the hexadecimal code of STMicroelectronics light green.
  +
|-
  +
| Getting the hexadecimal code of the 75% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STLightGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light green.
  +
</pre>
  +
|
  +
{{STLightGreen | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light green.
  +
|-
  +
| Getting the hexadecimal code of the 50% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STLightGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light green.
  +
</pre>
  +
|
  +
{{STLightGreen | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light green.
  +
|-
  +
| Getting the hexadecimal code of the 25% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STLightGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light green.
  +
</pre>
  +
|
  +
{{STLightGreen | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light green.
 
|}
 
|}
   
Line 21: Line 76:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| Parameter is ignored
+
| light green and bold
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color: '''{{STLightGreen|shade of light green: &#9608;}}'''
  +
</pre>
  +
|
  +
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color: '''{{STLightGreen|shade of light green: &#9608;}}'''
  +
|-
  +
| light green and italic
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color
+
This is a {{STLightGreen|''STMicroelectronics''}} corporate color: ''{{STLightGreen|shade of light green: &#9608;}}''
 
</pre>
 
</pre>
 
|
 
|
This is a {{STLightGreen|'''STMicroelectronics'''}} corporate color
+
This is a {{STLightGreen|''STMicroelectronics''}} corporate color: ''{{STLightGreen|shade of light green: &#9608;}}''
 
|}
 
|}
   
Line 35: Line 97:
   
 
==Code==
 
==Code==
</noinclude>&#35;49B170
+
</noinclude>{{#switch:{{{tint|none}}}
  +
| 75 = {{#vardefine:tintval|77C594}}
  +
| 50 = {{#vardefine:tintval|A4D8B7}}
  +
| 25 = {{#vardefine:tintval|C7E7D3}}
  +
| #default = {{#vardefine:tintval|49B170}}
  +
}}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|&#35;{{#var:tintval}}}}