Highlight: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
Syntax: { { Highlight | text to display | optional color } } | Syntax: { { Highlight | text to display | optional color } } | ||
The default color is {{Highlight|yellow}} | The default color is {{Highlight|yellow}} | ||
For more options with font colors, '''use font color template''' | |||
{{font color|red|lightgreen|red with lightgreen highlight - using Font Color template}} | |||
Syntax: { { font color|foreground|optional background|text } } | |||
https://meta.wikimedia.org/wiki/Help:Text_color | |||
https://meta.wikimedia.org/wiki/Wiki_color_formatting_help |
Latest revision as of 16:16, 15 March 2019
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