Template:Font color: Difference between revisions
Enwikipedia>Rursus No edit summary |
m (65 revisions imported: fixing lua errors) |
||
(28 intermediate revisions by 20 users not shown) | |||
Line 1: | Line 1: | ||
{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}} |
|||
{{#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}<noinclude> |
|||
| {{ {{{|safesubst:}}}#if: {{{link|}}} |
|||
== Usage == |
|||
| {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes |
|||
'''<nowiki>{{fontcolor|text_color|background_color|text}}</nowiki>''' |
|||
| [[ {{ {{{|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>]] |
|||
Examples of use: |
|||
}} |
|||
*'''<nowiki>{{fontcolor|green|this is about plants}}</nowiki>''': {{fontcolor|green|this is about plants}}:(it appears in green text). |
|||
| <span style="background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}</span> |
|||
*'''<nowiki>{{fontcolor||red|text in red background}}</nowiki>''': {{fontcolor||red|text in red background}}:(no parameters are used for the text color, only for the [[background]]) |
|||
}} |
|||
*'''<nowiki>{{fontcolor|red|yellow|red text with yellow background}}</nowiki>''': {{fontcolor|red|yellow|red text with yellow background}} |
|||
| {{ {{{|safesubst:}}}#if: {{{link|}}} |
|||
== See also == |
|||
| {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes |
|||
* [[HTML color names]] |
|||
| [[ {{ {{{|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>]] |
|||
}} |
|||
[[Category:text color templates]] |
|||
| <span style="color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};">{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}</span> |
|||
[[pt:Predefinição:Fontcolor]] |
|||
}} |
|||
[[zh:Template:Fontcolor]] |
|||
}}<noinclude> |
|||
{{documentation}} |
|||
</noinclude> |
</noinclude> |