Template:Font color: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>John of Reading
Fixed two problems, see talk page. (1) Misuse of parameter {{{2}}} in two lines, (2) Comments broke the logic when used in signatures
meta>Cpiral
named parameters fg= bg= (like X11), and text=; remove spurious pipe in string {{{2||}}}; see /testcases
Line 1: Line 1:
{{ {{{|safesubst:}}}#if: {{{3|}}}
{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | [[{{{3|}}}|<span style="background-color:{{{2|inherit}}}; color:{{{1|inherit}}};">{{{3|}}}</span>]]
       | [[{{{text|{{{3|}}}}}}|<span style="background-color:{{{bg|{{{2|inherit}}}}}}; color:{{{fg|{{{1|inherit}}}}}};">{{{text|{{{3|}}}}}}</span>]]
       | [[{{{link|}}}|<span style="background-color:{{{2|inherit}}}; color:{{{1|inherit}}};">{{{3|}}}</span>]]
       | [[{{{link|}}}|<span style="background-color:{{{bg|{{{2|inherit}}}}}}; color:{{{fg|{{{1|inherit}}}}}};">{{{text|{{{3|}}}}}}</span>]]
       }}
       }}
     | <span style="background-color:{{{2|inherit}}}; color:{{{1|inherit}}};">{{{3|}}}</span>
     | <span style="background-color:{{{bg|{{{2|inherit}}}}}}; color:{{{fg|{{{1|inherit}}}}}};">{{{text|{{{3|}}}}}}</span>
     }}
     }}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
  | {{ {{{|safesubst:}}}#if: {{{link|}}}
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
       | [[{{{2|}}}|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>]]
       | [[{{{bg|{{{2|}}}}}}|<span style="color:{{{fg|{{{1|inherit}}}}}};">{{{bg|{{{2|}}}}}}</span>]]
       | [[{{{link|}}}|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>]]
       | [[{{{link|}}}|<span style="color:{{{fg|{{{1|inherit}}}}}};">{{{bg|{{{2|}}}}}}</span>]]
     }}
     }}
   | <span style="color:{{{1|inherit}}};">{{{2|}}}</span>
   | <span style="color:{{{fg|{{{1|inherit}}}}}};">{{{bg|{{{2|}}}}}}</span>
   }}
   }}
}}<noinclude>
}}
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 08:23, 25 November 2015