Highlight
Jump to navigation
Jump to search
New box of highlighters
{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|pink|pink}}|pink}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|red|red}}|red}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|orange|orange}}|orange}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|lightyellow|lightyellow}}|lightyellow}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|yellow|yellow}}|yellow}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|lightgreen|lightgreen}}|lightgreen}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|green|green}}|green}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|lightblue|lightblue}}|lightblue}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|blue|blue}}|blue}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|violet|violet}}|violet}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|brown|brown}}|brown}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|gray|gray}}|gray}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|silver|silver}}|silver}} {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|gold|gold}}|gold}}
Syntax: { { Highlight | text to display | optional color } } The default color is {{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|yellow|yellow}}|yellow}}
For more options with font colors, use font color template {{ safesubst:#if: red with lightgreen highlight - using Font Color template | {{ safesubst:#if: | {{ safesubst:#ifeq: | yes | [[ {{ safesubst:#if:1| red with lightgreen highlight - using Font Color template }}|{{ safesubst:#if:1| red with lightgreen highlight - using Font Color template }}]] | [[|{{ safesubst:#if:1| red with lightgreen highlight - using Font Color template }}]] }} | {{ safesubst:#if:1| red with lightgreen highlight - using Font Color template }} }} | {{ safesubst:#if: | {{ safesubst:#ifeq: | yes | [[ {{ safesubst:#if:1| lightgreen }} |{{ safesubst:#if:1| lightgreen }}]] | [[ {{ safesubst:#if:1| }} |{{ safesubst:#if:1| lightgreen }}]] }} | {{ safesubst:#if:1| lightgreen }} }}
}}
Syntax: { { font color|foreground|optional background|text } }
https://meta.wikimedia.org/wiki/Help:Text_color https://meta.wikimedia.org/wiki/Wiki_color_formatting_help