Template:Highlight round/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Highlight round. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| Error creating thumbnail: File missing |
|
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
[edit source]This template highlights text with slightly rounded corners and a subtle shadow effect.
{{highlight round|some text}} |
→ | some text (defaults to yellow)
|
{{highlight round|some text|bc=#ffa07a}} |
→ | some text
|
{{highlight round|some text|bc=lightgreen}} |
→ | some text
|
Using the Codex style guide for Wikimedia background colors:
{{highlight round|bc=var(--background-color-success-subtle, #eaecf0)|2=Success}}→Highlighted text{{highlight round|bc=var(--background-color-error-subtle--active, #ffc8bd)|2=Error}}→Highlighted text{{highlight round|bc=var(--background-color-warning-subtle, #fdf2d5)|2=Warning}}→Highlighted text{{highlight round|bc=var(--background-color-content-added, #a3d3ff)|2=Content added}}→Highlighted text{{highlight round|bc=var(--background-color-content-removed, #ffe49c)|2=Content removed}}→Highlighted text
See also
[edit source]- {{highlight}}