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
Tag: Reverted
Line 21: Line 21:
}
}
</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>

Revision as of 10:08, 3 February 2024

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>