Template:Font color: Difference between revisions
From Vigyanwiki
m (1 revision imported) |
(Use #if:trim rather than trim for WP:PEIS, and use <includeonly> rather than the {{{|safesubst:}}} trick for readability.) |
||
Line 1: | Line 1: | ||
{{ | <includeonly>{{ safesubst:#if: {{{text|{{{3|}}}}}} | ||
| {{ | | {{ safesubst:#if: {{{link|}}} | ||
| {{ | | {{ safesubst:#ifeq: {{{link|}}} | yes | ||
| [[ {{ | | [[ {{ safesubst:#if:trim | {{{text|{{{3|}}}}}} }}|<span style="background-color:{{ safesubst:#if:trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{text|{{{3|}}}}}} }}</span>]] | ||
| [[{{{link|}}}|<span style="background-color:{{ | | [[{{{link|}}}|<span style="background-color:{{ safesubst:#if:trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{text|{{{3|}}}}}} }}</span>]] | ||
}} | }} | ||
| <span style="background-color:{{ | | <span style="background-color:{{ safesubst:#if:trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{text|{{{3|}}}}}} }}</span> | ||
}} | }} | ||
| {{ | | {{ safesubst:#if: {{{link|}}} | ||
| {{ | | {{ safesubst:#ifeq: {{{link|}}} | yes | ||
| [[ {{ | | [[ {{ safesubst:#if:trim | {{{bg|{{{2|}}}}}} }} |<span style="color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{bg|{{{2|}}}}}} }}</span>]] | ||
| [[ {{ | | [[ {{ safesubst:#if:trim | {{{link|}}} }} |<span style="color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{bg|{{{2|}}}}}} }}</span>]] | ||
}} | }} | ||
| <span style="color:{{ | | <span style="color:{{ safesubst:#if:trim | {{{fg|{{{1|inherit}}}}}} }};">{{ safesubst:#if:trim | {{{bg|{{{2|}}}}}} }}</span> | ||
}} | }} | ||
}}<noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 20:01, 3 December 2022
Template documentation
[create]