Template:Highlight round: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added template shortcut)
m (→‎top: Unicodifying, replaced: {{documentation}} → {{doc}})
 
(One intermediate revision by one other user not shown)
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}}
{{doc}}
== Documentation ==
<!-- Add categories to the /doc subpage, not here -->
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.
 
{| class=standard-table
! Example || Preview
|-
| <code><nowiki>{{highlight round|some text}}</nowiki></code> || {{highlight round|some text}}
|-
| <code><nowiki>{{highlight round|some text|bc=#ffa07a}}</nowiki></code> || {{highlight round|some text|bc=#ffa07a}}
|-
| <code><nowiki>{{highlight round|some text|bc=lightgreen|c=white}}</nowiki></code> || {{highlight round|some text|bc=lightgreen|c=white}}
|}
 
==== See also ====
* [[Template:Highlight]]
[[Category:Text color templates]]
</noinclude>
</noinclude>

Latest revision as of 14:49, 11 January 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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.

Examples

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

  • {{Highlight}}