Template:Highlight: Difference between revisions

From Vigyanwiki
(hilite template)
 
m (25 revisions imported from alpha:Template:Highlight)
 
(28 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<span style="background:{{{2|yellow}}}">{{{1}}}</span><noinclude>
{{#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}}</noinclude>
Use '''<tt><nowiki>{{hilite | text | color (optional) }}</nowiki></tt>''' to set the background color of some text to yellow (or optional color). ''Note: Only use this sparingly and for talk pages!''</noinclude><!--
TODO:
  Add default date qualifier -- if it's after so many days, the hilite goes away.
-->

Latest revision as of 11:22, 11 June 2023

Template documentation