Template:Highlight: Difference between revisions

From MapSpawn
Jump to navigationJump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
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:11, 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>

Usage

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