Template:Highlight: Difference between revisions

From PZwiki
(merged doc with template page & removed unimplemented features from doc)
m (added category)
 
Line 28: Line 28:
*[[Wikipedia:Template:font color]]
*[[Wikipedia:Template:font color]]
}}
}}
{{ll|Category:Templates}}
</noinclude><includeonly><span style="background-color:{{{2|yellow}}}; color:black;">{{{1}}}</span></includeonly>
</noinclude><includeonly><span style="background-color:{{{2|yellow}}}; color:black;">{{{1}}}</span></includeonly>

Latest revision as of 15:56, 6 April 2024

Notebook.pngTemplate Documentation

For adding yellow highlight to specified text. The highlight color can be changed. Please keep template usage to talk pages only.

Usage

{{Highlight | text | color (optional) | expiration (optional)}}

Parameters

1 Required
Enter the text to be highlighted.
2
Colors 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 Output Notes
{{Highlight|text}}
text The default highlight color is yellow
{{Highlight|text|lightblue}}
text The second parameter is the highlight color

See also

Editors can experiment in this template's sandbox.