Last edited 3 years ago

Template:Highlight: Difference between revisions

Registered User
m (14 revisions imported)
Registered User
(Merge articles)
 
Line 1: Line 1:
<noinclude>
<noinclude>
==Usage==
==Usage==
The [[Template:Highlight|Highlight]] template is used '''to highlight important information''' in pages. It formats the text with the STMicroelectronics brand color <span style="color: #D4007A;">shade of pink (&#9608;)</span>, and in <span style="font-weight: bold;">bold</span>.
The [[Template:Highlight|Highlight]] template is used '''to highlight important information''' in pages. It formats the text with the STMicroelectronics corporate color <span style="color: {{STPink}};">shade of pink (&#9608;)</span>, and in <span style="font-weight: bold;">bold</span>.


  Usage:  <nowiki>{{</nowiki>Highlight|{{HighlightParam|<text to highlight>}}}}
  Usage:  <nowiki>{{</nowiki>Highlight|{{HighlightParam|<text to highlight>}}}}
Line 36: Line 36:
The commands only apply {{Highlight|''for versions up to x.y''}}, and it is ''{{Highlight|mandatory}}'' to execute them
The commands only apply {{Highlight|''for versions up to x.y''}}, and it is ''{{Highlight|mandatory}}'' to execute them
|}
|}
==Maintenance==
This template is a template common to all ST wikis. <br>
Modifications must be done into the [[stwikimodel:Template:Highlight|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>
When approved, the template can be pushed/merged towards all ST wikis.


==Code==
==Code==
</noinclude><span style="color: #D4007A; font-weight: bold;">{{{1}}}</span>
</noinclude><span style="color: #E6007E; font-weight: bold;">{{{1}}}</span>

Latest revision as of 15:42, 28 July 2021

1. Usage

The Highlight template is used to highlight important information in pages. It formats the text with the STMicroelectronics corporate color shade of pink (█), and in bold.

Usage:  {{Highlight|<text to highlight>}}
Where <text to highlight> is the important information to highlight

2. Basic examples

You type You get
Highlighting important information
The commands only apply {{Highlight|for versions up to x.y}}, and it is {{Highlight|mandatory}} to execute them

The commands only apply for versions up to x.y, and it is mandatory to execute them

3. More examples

You type You get
The parameter of the template is formatted in bold: it is useless because the template already formats in bold, but it keeps the parameter in bold
The commands only apply {{Highlight|'''for versions up to x.y'''}}, and it is '''{{Highlight|mandatory}}''' to execute them

The commands only apply for versions up to x.y, and it is mandatory to execute them

The parameter of the template is formatted in italic: the parameter is then in bold and italic
The commands only apply {{Highlight|''for versions up to x.y''}}, and it is ''{{Highlight|mandatory}}'' to execute them

The commands only apply for versions up to x.y, and it is mandatory to execute them

4. Maintenance

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

{{{1}}}

No categories assignedEdit