Advertisement:

Template:Hilite: Difference between revisions

From Roovet Articles
Jump to navigation Jump to search
(Created page with "{{#if:{{{3|}}}|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|{{highlight/core|{{{1|}}}|{{#ifeq:{{{2|}}}||yellow|{{{2}}}}}}}|{{{1|}}}}}|{{highlight/core|{{{1|}}}|{{{2|yellow}}}}}}}<noinclude>{{documentation}}<templatedata> { "params": { "1": { "aliases": [ "text" ], "label": "Text to be highlighted", "example": "Some text goes here", "type": "content", "required": true }, "2": { "aliases": [ "color" ], "label": "Highlight...")
m (1 revision imported)
 
(No difference)

Latest revision as of 14:08, 26 September 2022

Highlights the given text.

[Edit template data]

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text to be highlighted1 text

no description

Example
Some text goes here
Contentrequired
Highlight color2 color

CSS color to be used for highlight, like lightblue or #FF0066

Default
yellow
Example
lightblue
Unknownoptional
Expiration date of highlight3 expiration

After this date, the text will remain but the highlight color will not display.

Example
2029-09-01
Dateoptional