Template:Font color: Difference between revisions

From Skulepedia
Jump to navigation Jump to search
w:en>Ilmari Karonen
m (Protected Template:Fontcolor: protect per request on talk page [edit=sysop:move=sysop])
m (66 revisions imported)
 
(51 intermediate revisions by 28 users not shown)
Line 1: Line 1:
{{#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}
{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}}
 
| {{ {{{|safesubst:}}}#if: {{{link|}}}
<noinclude>
      | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
{{protect2}}
      | [[ {{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
Examples of use:
      | [[{{{link|}}}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
*'''<nowiki>{{fontcolor|green|this is about plants}}</nowiki>''': {{fontcolor|green|this is about plants}}(it appears in green text).
      }}
*'''<nowiki>{{fontcolor||red|red background}}</nowiki>''': {{fontcolor||red|red background}}(no parameters are used for the text color, only for the [[background]])
    | <span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>
*'''<nowiki>{{fontcolor|blue|yellow|blue text with yellow background}}</nowiki>''': {{fontcolor|blue|yellow|blue text with yellow background}}
    }}
[[Category:Wikipedia templates|Fontcolor]]
| {{ {{{|safesubst:}}}#if: {{{link|}}}
[[zh:Template:Fontcolor]]
      | {{ {{{|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>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:52, 25 June 2020

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}