Template:Highlight

From MapSpawn
Revision as of 10:06, 3 February 2024 by Zastels (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> <templatedata> { "description": "This template highlights the text with a background color. Please make sure to use readable colors.", "format": "inline", "params": { "1": { "label": "text", "description": "The text to be highlighted", "example": "Lorem ipsum dolor sit amet.", "required": true }, "2": { "label": "color", "description": "Th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Template:Documentation subpage <templatedata> { "description": "This template highlights the text with a background color. Please make sure to use readable colors.", "format": "inline", "params": { "1": { "label": "text", "description": "The text to be highlighted", "example": "Lorem ipsum dolor sit amet.", "required": true }, "2": { "label": "color", "description": "The background color (CSS color) to be used.", "type": "line", "default": "yellow" } } } </templatedata>

Usage

{{highlight|text|red}}, or {{highlight|text}} to use the default highlight color, shown above.