Template:Color: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
(Created page with "{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}} | {{ {{{|safesubst:}}}#if: {{{link|}}} | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes | {{ {{{|safesubst:}}}trim |...")
 
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}}
<span style = "color:{{{2|black}}};">{{{1}}}</span><noinclude>
| {{ {{{|safesubst:}}}#if: {{{link|}}}
{{Color/doc}}[[Category:Templates]]</noinclude>
      | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
      | [[ {{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
      | [[{{{link|}}}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
      }}
    | <span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>
    }}
| {{ {{{|safesubst:}}}#if: {{{link|}}}
      | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
      | [[ {{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }} |<span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>]]
      | [[ {{ {{{|safesubst:}}}trim | {{{link|}}} }} |<span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>]]
    }}
  | <span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>
  }}
}}
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 22:25, 18 November 2021

{{{1}}}

Template Documentation

Description

This template makes colored text. One can use either the color name or an HTML #rgb code.
Note: This may cause unwanted line breaks.

Syntax

{{color|<text>|<color name or HTML code>}}

Examples

{{color|This very text will come out purple.|#ffaaff}}
Output: This very text will come out purple.
{{color|And this second example will come out lime green.|lime}}
Output: And this second example will come out lime green.