Difference between revisions of "Template:STLightBlue"
[quality revision] | [quality revision] |
m
|
(Merge articles)
|
1 Usage[edit]
The STLightBlue template is used to get the hexadecimal code of the color text in pages, with the STMicroelectronics corporate primary color shade of light blue (█).
Usage: {{STLightBlue|<text to color>|tint=<tint>}}
Where:
- <text to color> is the text to format in light blue. 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 blue
This is a {{STLightBlue|STMicroelectronics corporate color: shade of light blue: █}}
|
This is a STMicroelectronics corporate color: shade of light blue: █ |
Coloring text in 75% tint of light blue
This is a {{STLightBlue|STMicroelectronics corporate color: 75% tint of light blue: █ | tint=75}}
|
This is a STMicroelectronics corporate color: 75% tint of light blue: █ |
Coloring text in 50% tint of light blue
This is a {{STLightBlue|STMicroelectronics corporate color: 50% tint of light blue: █ | tint=50}}
|
This is a STMicroelectronics corporate color: 50% tint of light blue: █ |
Coloring text in 25% tint of light blue
This is a {{STLightBlue|STMicroelectronics corporate color: 25% tint of light blue: █ | tint=25}}
|
This is a STMicroelectronics corporate color: 25% tint of light blue: █ |
Getting the hexadecimal code of the color {{STLightBlue}} is the hexadecimal code of STMicroelectronics light blue. |
#3CB4E6 is the hexadecimal code of STMicroelectronics light blue. |
Getting the hexadecimal code of the 75% tint of the color
{{STLightBlue | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light blue.
|
#6DC7EC is the hexadecimal code of STMicroelectronics 75% tint of light blue. |
Getting the hexadecimal code of the 50% tint of the color
{{STLightBlue | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light blue.
|
#9DD9F2 is the hexadecimal code of STMicroelectronics 50% tint of light blue. |
Getting the hexadecimal code of the 25% tint of the color
{{STLightBlue | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light blue.
|
#CEECF9 is the hexadecimal code of STMicroelectronics 25% tint of light blue. |
3 More examples[edit]
You type | You get |
---|---|
Parameter is ignored light blue and bold
This is a {{STLightBlue|'''STMicroelectronics'''}} corporate color: '''{{STLightBlue|shade of light blue: █}}''' |
This is a STMicroelectronics corporate color: shade of light blue: █ |
light blue and italic
This is a {{STLightBlue|''STMicroelectronics''}} corporate color: ''{{STLightBlue|shade of light blue: █}}''
|
This is a STMicroelectronics corporate color: shade of light blue: █ |
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]
#3CB4E6
<noinclude> ==Usage== The [[Template:STLightBlue|STLightBlue]] template is used '''to get the hexadecimal code''' of color text''' in pages, with the STMicroelectronics corporate primary color <span style="color: {{STLightBlue}};">{{STLightBlue|shade of light blue (█)</span>}}. Usage: <nowiki>{{</nowiki>STLightBlue}} ==|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}} Where: *{{HighlightParam|<text to color>}} is the text to format in light blue. 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 blue<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|STMicroelectronics corporate color: shade of light blue: █}}</pre> | This is a {{STLightBlue|STMicroelectronics corporate color: shade of light blue: █}} |- | Coloring text in 75% tint of light blue<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|STMicroelectronics corporate color: 75% tint of light blue: █ | tint=75}}</pre> | This is a {{STLightBlue|STMicroelectronics corporate color: 75% tint of light blue: █ | tint=75}} |- | Coloring text in 50% tint of light blue<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|STMicroelectronics corporate color: 50% tint of light blue: █ | tint=50}}</pre> | This is a {{STLightBlue|STMicroelectronics corporate color: 50% tint of light blue: █ | tint=50}} |- | Coloring text in 25% tint of light blue<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|STMicroelectronics corporate color: 25% tint of light blue: █ | tint=25}}</pre> | This is a {{STLightBlue|STMicroelectronics corporate color: 25% tint of light blue: █ | tint=25}} |- | Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;"> {{STLightBlue}} is the hexadecimal code of STMicroelectronics light blue.</pre> | {{STLightBlue}} is the hexadecimal code of STMicroelectronics light blue. |} ==- | Getting the hexadecimal code of the 75% tint of the color<pre style="white-space: pre-wrap;"> {{STLightBlue | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light blue.</pre> | {{STLightBlue | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light blue. |- | Getting the hexadecimal code of the 50% tint of the color<pre style="white-space: pre-wrap;"> {{STLightBlue | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light blue.</pre> | {{STLightBlue | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light blue. |- | Getting the hexadecimal code of the 25% tint of the color<pre style="white-space: pre-wrap;"> {{STLightBlue | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light blue.</pre> | {{STLightBlue | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light blue. |} ==More examples== {| class="st-table" ! You type !! You get |- | Parameter is ignoredlight blue and bold<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|'''STMicroelectronics'''}} corporate color : '''{{STLightBlue|shade of light blue: █}}'''</pre> | This is a {{STLightBlue|'''STMicroelectronics'''}} corporate color |}: '''{{STLightBlue|shade of light blue: █}}''' |- | light blue and italic<pre style="white-space: pre-wrap;"> This is a {{STLightBlue|''STMicroelectronics''}} corporate color: ''{{STLightBlue|shade of light blue: █}}''</pre> | This is a {{STLightBlue|''STMicroelectronics''}} corporate color: ''{{STLightBlue|shade of light blue: █}}'' |} ==Maintenance== This template is a template common to all ST wikis. <br> Modifications must be done into the [[stwikimodel:Template:STLightBlue|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>#3CB4E6{{#switch:{{{tint|none}}} | 75 = {{#vardefine:tintval|6DC7EC}} | 50 = {{#vardefine:tintval|9DD9F2}} | 25 = {{#vardefine:tintval|CEECF9}} | #default = {{#vardefine:tintval|3CB4E6}} }}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|#{{#var:tintval}}}}
Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
==Usage== |
==Usage== |
||
− | The [[Template:STLightBlue|STLightBlue]] template is used '''to |
+ | The [[Template:STLightBlue|STLightBlue]] template is used '''to color text''' in pages, with the STMicroelectronics corporate primary color {{STLightBlue|shade of light blue (█)}}. |
− | Usage: <nowiki>{{</nowiki>STLightBlue}} |
+ | Usage: <nowiki>{{</nowiki>STLightBlue|{{HighlightParam|<text to color>}}|tint={{HighlightParam|<tint>}}}}
|
+ | Where: |
||
+ | *{{HighlightParam|<text to color>}} is the text to format in light blue. 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 blue |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: shade of light blue: █}} |
||
+ | </pre> |
||
+ | | |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: shade of light blue: █}} |
||
+ | |- |
||
+ | | Coloring text in 75% tint of light blue |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 75% tint of light blue: █ | tint=75}} |
||
+ | </pre> |
||
+ | | |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 75% tint of light blue: █ | tint=75}} |
||
+ | |- |
||
+ | | Coloring text in 50% tint of light blue |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 50% tint of light blue: █ | tint=50}} |
||
+ | </pre> |
||
+ | | |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 50% tint of light blue: █ | tint=50}} |
||
+ | |- |
||
+ | | Coloring text in 25% tint of light blue |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 25% tint of light blue: █ | tint=25}} |
||
+ | </pre> |
||
+ | | |
||
+ | This is a {{STLightBlue|STMicroelectronics corporate color: 25% tint of light blue: █ | tint=25}} |
||
|- |
|- |
||
| Getting the hexadecimal code of the color |
| Getting the hexadecimal code of the color |
||
Line 15: | Line 49: | ||
| |
| |
||
{{STLightBlue}} is the hexadecimal code of STMicroelectronics light blue. |
{{STLightBlue}} is the hexadecimal code of STMicroelectronics light blue. |
||
+ | |- |
||
+ | | Getting the hexadecimal code of the 75% tint of the color |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | {{STLightBlue | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light blue. |
||
+ | </pre> |
||
+ | | |
||
+ | {{STLightBlue | tint=75}} is the hexadecimal code of STMicroelectronics 75% tint of light blue. |
||
+ | |- |
||
+ | | Getting the hexadecimal code of the 50% tint of the color |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | {{STLightBlue | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light blue. |
||
+ | </pre> |
||
+ | | |
||
+ | {{STLightBlue | tint=50}} is the hexadecimal code of STMicroelectronics 50% tint of light blue. |
||
+ | |- |
||
+ | | Getting the hexadecimal code of the 25% tint of the color |
||
+ | <pre style="white-space: pre-wrap;"> |
||
+ | {{STLightBlue | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light blue. |
||
+ | </pre> |
||
+ | | |
||
+ | {{STLightBlue | tint=25}} is the hexadecimal code of STMicroelectronics 25% tint of light blue. |
||
|} |
|} |
||
Line 21: | Line 76: | ||
! You type !! You get |
! You type !! You get |
||
|- |
|- |
||
− | | |
+ | | light blue and bold
|
+ | <pre style="white-space: pre-wrap;"> |
||
+ |
This is a {{STLightBlue|'''STMicroelectronics'''}} corporate color: '''{{STLightBlue|shade of light blue: █}}'''
|
||
+ | </pre> |
||
+ | | |
||
+ | This is a {{STLightBlue|'''STMicroelectronics'''}} corporate color: '''{{STLightBlue|shade of light blue: █}}''' |
||
+ | |- |
||
+ | | light blue and italic |
||
<pre style="white-space: pre-wrap;"> |
<pre style="white-space: pre-wrap;"> |
||
− | This is a {{STLightBlue| |
+ | This is a {{STLightBlue|''STMicroelectronics''}} corporate color: ''{{STLightBlue|shade of light blue: █}}''
|
</pre> |
</pre> |
||
| |
| |
||
− | This is a {{STLightBlue| |
+ | This is a {{STLightBlue|''STMicroelectronics''}} corporate color: ''{{STLightBlue|shade of light blue: █}}''
|
|} |
|} |
||
Line 35: | Line 97: | ||
==Code== |
==Code== |
||
− | </noinclude># |
+ | </noinclude>{{#switch:{{{tint|none}}}
|
+ | | 75 = {{#vardefine:tintval|6DC7EC}} |
||
+ | | 50 = {{#vardefine:tintval|9DD9F2}} |
||
+ | | 25 = {{#vardefine:tintval|CEECF9}} |
||
+ | | #default = {{#vardefine:tintval|3CB4E6}} |
||
+ |
}}{{#if: {{{1|}}}|<span style="color: #{{#var:tintval}};">{{{1}}}</span>|#{{#var:tintval}}}}
|