Template:Font color: Difference between revisions
Content added Content deleted
Enwikipedia>Altermike (→Usage) |
m (65 revisions imported: fixing lua errors) |
||
(40 intermediate revisions by 25 users not shown) | |||
Line 1: | Line 1: | ||
{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}} |
|||
⚫ | |||
| {{ {{{|safesubst:}}}#if: {{{link|}}} |
|||
| {{ {{{|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>]] |
|||
== Usage == |
|||
⚫ | |||
'''<nowiki>{{fontcolor|text_color|background_color|text}}</nowiki>''' |
|||
}} |
|||
| <span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span> |
|||
Examples of use: |
|||
}} |
|||
*'''<nowiki>{{fontcolor|green|this is about plants}}</nowiki>''': {{fontcolor|green|this is about plants}}:(it appears in green text). |
|||
| {{ {{{|safesubst:}}}#if: {{{link|}}} |
|||
*'''<nowiki>{{fontcolor||red|red background}}</nowiki>''': {{fontcolor||red|red background}}:(no parameters are used for the text color, only for the [[background]]) |
|||
| {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes |
|||
*'''<nowiki>{{fontcolor|blue|yellow|blue text with yellow background}}</nowiki>''': {{fontcolor|blue|yellow|blue text with yellow background}} |
|||
| [[ {{ {{{|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>]] |
|||
[[Category:Formatting templates|{{PAGENAME}}]] |
|||
}} |
|||
[[zh:Template:Fontcolor]] |
|||
| <span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span> |
|||
}} |
|||
⚫ | |||
{{documentation}} |
|||
</noinclude> |
</noinclude> |