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