Template:Font color: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Altermike
No edit summary
Ookami (talk | contribs)
m 66 revisions imported
 
(36 intermediate revisions by 24 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
== Usage ==
      | [[ {{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
'''<nowiki>{{fontcolor|text_color|background_color|text}}</nowiki>'''
      | [[{{{link|}}}|<span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span>]]
 
      }}
Examples of use:
    | <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]])
| {{ {{{|safesubst:}}}#if: {{{link|}}}
*'''<nowiki>{{fontcolor|red|yellow|blue text with yellow background}}</nowiki>''': {{fontcolor|red|yellow|red text with yellow background}}
      | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
== See also ==
      | [[ {{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }} |<span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>]]
* [[List of colors]]
      | [[ {{ {{{|safesubst:}}}trim | {{{link|}}} }} |<span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>]]
* [[Wikipedia:Colors]]
    }}
 
  | <span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span>
[[Category:Formatting templates|{{PAGENAME}}]]
  }}
[[zh:Template:Fontcolor]]
}}<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 01:00, 3 September 2020