Template:Font color: Difference between revisions

From FamilySearch Wiki
No edit summary
(Created page with "{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}} | {{ {{{|safesubst:}}}#if: {{{link|}}} | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes | [[ {{ trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{text|{{{3|}}}}}} }}</span>]] | {{{link|}}}|<span style="background-color:{{ trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};"...")
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | [[ {{ trim2 | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ trim2 | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{text|{{{3|}}}}}} }}</span>]]
       | [[ {{ trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{text|{{{3|}}}}}} }}</span>]]
       | [[{{{link|}}}|<span style="background-color:{{ trim2 | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{text|{{{3|}}}}}} }}</span>]]
       | [[{{{link|}}}|<span style="background-color:{{ trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{text|{{{3|}}}}}} }}</span>]]
       }}
       }}
     | <span style="background-color:{{ trim2 | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{text|{{{3|}}}}}} }}</span>
     | <span style="background-color:{{ trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{text|{{{3|}}}}}} }}</span>
     }}
     }}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | [[ {{ trim2 | {{{bg|{{{2|}}}}}} }} |<span style="color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{bg|{{{2|}}}}}} }}</span>]]
       | [[ {{ trim | {{{bg|{{{2|}}}}}} }} |<span style="color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{bg|{{{2|}}}}}} }}</span>]]
       | [[ {{ trim2 | {{{link|}}} }} |<span style="color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{bg|{{{2|}}}}}} }}</span>]]
       | [[ {{ trim | {{{link|}}} }} |<span style="color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{bg|{{{2|}}}}}} }}</span>]]
     }}
     }}
   | <span style="color:{{ trim2 | {{{fg|{{{1|inherit}}}}}} }};">{{ trim2 | {{{bg|{{{2|}}}}}} }}</span>
   | <span style="color:{{ trim | {{{fg|{{{1|inherit}}}}}} }};">{{ trim | {{{bg|{{{2|}}}}}} }}</span>
   }}
   }}
}}<noinclude>
}}<noinclude>
Line 31: Line 31:
</nowiki></code>
</nowiki></code>
#: {{Font color|blue|yellow|This is blue text with yellow highlighting.}}
#: {{Font color|blue|yellow|This is blue text with yellow highlighting.}}
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 13:15, 25 March 2025

Usage[edit source]

  1. Text color:
    {{Font color|blue|This is blue text.}}
    This is blue text.


  1. Highlighting:
    {{Font color||yellow|This is text with yellow highlighting.}}
    This is text with yellow highlighting.


  1. Text color with highlighting:
    {{Font color|blue|yellow|This is blue text with yellow highlighting.}}
    This is blue text with yellow highlighting.