Template:Highlight: Difference between revisions

From MapSpawn
Jump to navigationJump to search
(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...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<templatedata>
<templatedata>
{
{
Line 21: Line 19:
}
}
</templatedata>
</templatedata>
== Usage ==
<code><nowiki>{{highlight|text|red}}</nowiki></code>, or <code><nowiki>{{highlight|text}}</nowiki></code> to use the default highlight color, shown above.
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
}}</includeonly>

Latest revision as of 10:12, 3 February 2024

<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>