Difference between revisions of "Template:STPurple"

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

1 Usage[edit]

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

Where:

Usage:  {{STPurple|<text to color>|tint=<tint>}}
Where
  • <text to color> is the text to format in purple. 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 purple
This is a {{STPurple|STMicroelectronics corporate color: shade of purple: █}}

This is a STMicroelectronics corporate color: shade of purple: █

Coloring text in 75% tint of purple

This is a {{STPurple|STMicroelectronics corporate color: 75% tint of purple: █ | tint=75}}

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

Coloring text in 50% tint of purple

This is a {{STPurple|STMicroelectronics corporate color: 50% tint of purple: █ | tint=50}}

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

Coloring text in 25% tint of purple

This is a {{STPurple|STMicroelectronics corporate color: 25% tint of purple: █ | tint=25}}

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

Getting the hexadecimal code of the color
{{STPurple}} is the hexadecimal code of STMicroelectronics purple.

#8C0078 is the hexadecimal code of STMicroelectronics purple.

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

{{STPurple | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of purple.

#A9409A is the hexadecimal code of STMicroelectronics 75% tint of purple.

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

{{STPurple | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of purple.

#C57FBB is the hexadecimal code of STMicroelectronics 50% tint of purple.

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

{{STPurple | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of purple.

#E2BFDD is the hexadecimal code of STMicroelectronics 25% tint of purple.

3 More examples[edit]

You type You get
Purple purple and bold
This is a {{STPurple|'''STMicroelectronics'''}} corporate color: '''{{STPurple|shade of purple: █}}'''

This is a STMicroelectronics corporate color: shade of purple: █

Purple purple and italic
This is a {{STPurple|''STMicroelectronics''}} corporate color: ''{{STPurple|shade of purple: █}}''

This is a STMicroelectronics corporate color: shade of purple: █

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]

#8C0078

<noinclude>

==Usage==
The [[Template:STPurple|STPurple]] template is used '''to color text''' in pages, with the STMicroelectronics corporate secondaryprimary color {{STPurple|shade of purple (&#9608;)}}.
 Where:Usage:  <nowiki>{{</nowiki>STPurple|{{HighlightParam|<text to color>}}}}
Where |tint={{HighlightParam|<tint>}}}}
*{{HighlightParam|<text to color>}} is the text to format in purple. 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 purple<pre style="white-space: pre-wrap;">

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

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

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

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

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

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

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

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

{{STPurple}} is the hexadecimal code of STMicroelectronics purple.</pre>

|
{{STPurple}} is the hexadecimal code of STMicroelectronics purple.
|}

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

{{STPurple | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of purple.</pre>

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

{{STPurple | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of purple.</pre>

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

{{STPurple | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of purple.</pre>

|
{{STPurple | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of purple.
|}

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

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

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

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

|
This is a {{STPurple|''STMicroelectronics''}} corporate color: ''{{STPurple|shade of purple: &#9608;}}''
|}	

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

Modifications must be done into the [[stwikimodel:Template:STPurple|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|A9409A}}
| 50 = {{#vardefine:tintval|C57FBB}}
| 25 = {{#vardefine:tintval|E2BFDD}}
| #default = {{#vardefine:tintval|8C0078}}
}}{{#if: {{{1|}}}|<span style="color: #8C0078#{{#var:tintval}};">{{{1}}}</span>|&#35;8C0078}}{{#var:tintval}}}}
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
The [[Template:STPurple|STPurple]] template is used '''to color text''' in pages, with the STMicroelectronics corporate secondary color {{STPurple|shade of purple (&#9608;)}}.
+
The [[Template:STPurple|STPurple]] template is used '''to color text''' in pages, with the STMicroelectronics corporate primary color {{STPurple|shade of purple (&#9608;)}}.
   
  Usage:  <nowiki>{{</nowiki>STPurple|{{HighlightParam|<text to color>}}}}
+
Where:
Where {{HighlightParam|<text to color>}} is the text to format in purple. If this template is called with no text, the hexadecimal code of the color is returned.
+
  Usage:  <nowiki>{{</nowiki>STPurple|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}}
  +
*{{HighlightParam|<text to color>}} is the text to format in purple. 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 {{STPurple|STMicroelectronics corporate color: shade of purple: &#9608;}}
 
This is a {{STPurple|STMicroelectronics corporate color: shade of purple: &#9608;}}
  +
|-
  +
|  Coloring text in 75% tint of purple
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STPurple|STMicroelectronics corporate color: 75% tint of purple: &#9608; | tint=75}}
  +
</pre>
  +
|
  +
This is a {{STPurple|STMicroelectronics corporate color: 75% tint of purple: &#9608; | tint=75}}
  +
|-
  +
|  Coloring text in 50% tint of purple
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STPurple|STMicroelectronics corporate color: 50% tint of purple: &#9608; | tint=50}}
  +
</pre>
  +
|
  +
This is a {{STPurple|STMicroelectronics corporate color: 50% tint of purple: &#9608; | tint=50}}
  +
|-
  +
|  Coloring text in 25% tint of purple
  +
<pre style="white-space: pre-wrap;">
  +
This is a {{STPurple|STMicroelectronics corporate color: 25% tint of purple: &#9608; | tint=25}}
  +
</pre>
  +
|
  +
This is a {{STPurple|STMicroelectronics corporate color: 25% tint of purple: &#9608; | tint=25}}
 
|-
 
|-
 
| Getting the hexadecimal code of the color
 
| Getting the hexadecimal code of the color
Line 23: Line 49:
 
|
 
|
 
{{STPurple}} is the hexadecimal code of STMicroelectronics purple.
 
{{STPurple}} is the hexadecimal code of STMicroelectronics purple.
  +
|-
  +
| Getting the hexadecimal code of the 75% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STPurple | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of purple.
  +
</pre>
  +
|
  +
{{STPurple | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of purple.
  +
|-
  +
| Getting the hexadecimal code of the 50% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STPurple | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of purple.
  +
</pre>
  +
|
  +
{{STPurple | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of purple.
  +
|-
  +
| Getting the hexadecimal code of the 25% tint of the color
  +
<pre style="white-space: pre-wrap;">
  +
{{STPurple | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of purple.
  +
</pre>
  +
|
  +
{{STPurple | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of purple.
 
|}
 
|}
   
Line 29: Line 76:
 
! You type !! You get
 
! You type !! You get
 
|-
 
|-
| Purple and bold
+
| purple and bold
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
 
This is a {{STPurple|'''STMicroelectronics'''}} corporate color: '''{{STPurple|shade of purple: &#9608;}}'''
 
This is a {{STPurple|'''STMicroelectronics'''}} corporate color: '''{{STPurple|shade of purple: &#9608;}}'''
Line 36: Line 83:
 
This is a {{STPurple|'''STMicroelectronics'''}} corporate color: '''{{STPurple|shade of purple: &#9608;}}'''
 
This is a {{STPurple|'''STMicroelectronics'''}} corporate color: '''{{STPurple|shade of purple: &#9608;}}'''
 
|-
 
|-
| Purple and italic
+
| purple and italic
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
 
This is a {{STPurple|''STMicroelectronics''}} corporate color: ''{{STPurple|shade of purple: &#9608;}}''
 
This is a {{STPurple|''STMicroelectronics''}} corporate color: ''{{STPurple|shade of purple: &#9608;}}''
Line 50: Line 97:
   
 
==Code==
 
==Code==
</noinclude>{{#if: {{{1|}}}|<span style="color: #8C0078;">{{{1}}}</span>|&#35;8C0078}}
+
</noinclude>{{#switch:{{{tint|none}}}
  +
| 75 = {{#vardefine:tintval|A9409A}}
  +
| 50 = {{#vardefine:tintval|C57FBB}}
  +
| 25 = {{#vardefine:tintval|E2BFDD}}
  +
| #default = {{#vardefine:tintval|8C0078}}
  +
}}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|&#35;{{#var:tintval}}}}