Difference between revisions of "Modèle:Highlight/doc"

From Wazeopedia
(CBenson moved page Small Detour Prevention Mechanism to Detour Prevention Mechanisms: For consistency with current waze terminology)
 
(Page créée avec « {{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> This template allows to highlight a portion of text with a color (Stabilo Boss like) === Usage === <code>{{ Hig... »)
 
Line 1: Line 1:
#REDIRECT [[Detour Prevention Mechanisms]]
+
{{doc subpage}}
 +
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
 +
This template allows to highlight a portion of text with a color (Stabilo Boss like)
 +
 
 +
=== Usage ===
 +
<code>{{ Highlight | text | (color) }}</code>
 +
 
 +
* 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 ===
 +
 
 +
<code>This is the <nowiki>{{Highlight</nowiki> | portion of text}} to highlight</code> produces:<br />
 +
This is the {{Highlight | portion of text}} to highlight
 +
 
 +
<code>This is the <nowiki>{{Highlight</nowiki> | portion of text | lightgreen}} to highlight</code> produces:<br />
 +
This is the {{Highlight | portion of text | lightgreen}} to highlight
 +
 
 +
<includeonly>
 +
<!-- ADD CATEGORIES BELOW THIS LINE -->
 +
 
 +
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 +
 
 +
</includeonly>

Latest revision as of 10:58, 22 February 2017

This is a documentation subpage for Modèle:Highlight.
It contains usage information, categories and other content that is not part of the original modèle 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