Template:Highlight round: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Round highlight template with options for background and text color)
 
m (Added template shortcut)
Line 1: Line 1:
<includeonly><span style="margin-right: 0.1em; padding: 3px 4px 2px; background-color: {{{bc|yellow}}}; color: {{{c|black}}}; border: 1px; border-radius:3px;">{{{1|Highlighted text}}}</span></includeonly><noinclude>
<includeonly><span style="margin-right: 0.1em; padding: 3px 4px 2px; background-color: {{{bc|yellow}}}; color: {{{c|black}}}; border: 1px; border-radius:3px;">{{{1|Highlighted text}}}</span></includeonly><noinclude>
{{Tsh|Hir}}
== Documentation ==
== Documentation ==
This template highlights text with slightly rounded corners. Editors can control the color of the highlight and the color of the text with the <code>bc</code> and <code>c</code> parameters. If these parameters are not defined, the highlight defaults to yellow and the text defaults to black.
This template highlights text with slightly rounded corners. Editors can control the color of the highlight and the color of the text with the <code>bc</code> and <code>c</code> parameters. If these parameters are not defined, the highlight defaults to yellow and the text defaults to black.

Revision as of 01:00, 5 February 2020

Documentation

This template highlights text with slightly rounded corners. Editors can control the color of the highlight and the color of the text with the bc and c parameters. If these parameters are not defined, the highlight defaults to yellow and the text defaults to black.

Example Preview
{{highlight round|some text}} some text
{{highlight round|some text|bc=#ffa07a}} some text
{{highlight round|some text|bc=lightgreen|c=white}} some text

See also