Template:Highlight/doc View history

(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> This template allows to highlight a portion of text with a color (Stabilo Boss like) === Usage === <code>{{ Highlig...")
 
(Added category to page)
 
Line 19: Line 19:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:Formatting templates]]
[[Category:Graphic templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->


</includeonly>
</includeonly>

Latest revision as of 06:19, 20 August 2022

This is a documentation subpage for Template:Highlight.
It contains usage information, categories and other content that is not part of the original template page.

This template allows to highlight a portion of text with a color (Stabilo Boss like)

Usage

text

  • Parameter 1 (required) : Text to highlight
  • Parameter 2 (optional) : Highlight color. Color may be specified by word (e.g., "red", "blue", "lightgreen") or in hexadecimal format (e.g., "#FF0066", "#C0C0C0"). If no value is given for the color, the template defaults to yellow

Examples

This is the {{Highlight | portion of text}} to highlight produces:
This is the portion of text to highlight

This is the {{Highlight | portion of text | lightgreen}} to highlight produces:
This is the portion of text to highlight