Difference between revisions of "Template:Font color/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Cpiral
imported>Cpiral
Line 4: Line 4:
 
* with and without named parameters.
 
* with and without named parameters.
  
Inline test of spacing should show simple {{font color|red}} and {{font color|fg=purple}} playing nicely.
+
Inline test of spacing should show simple {{font color/sandbox|red}} and {{font color|purple}} playing nicely.
  
 
== One color tests ==
 
== One color tests ==

Revision as of 08:40, 25 November 2015

Tests show calls to main or sandbox, both:

  • with and without link
  • link explicit or implicit
  • with and without named parameters.

Inline test of spacing should show simple and playing nicely.

One color tests

  • {{Font color|green|Aristotle}}Aristotle
  • {{Font color|green|Aristotle|link=yes}}Aristotle
  • {{Font color|green|Aristotle|link=Plato}}Aristotle
  • {{Font color|text=Aristotle|fg=green|link=Plato}}Aristotle
  • {{Font color/sandbox|green|Aristotle}}Aristotle
  • {{Font color/sandbox|green|Aristotle|link=yes}}Aristotle
  • {{Font color/sandbox|green|Aristotle|link=Plato}}Aristotle
  • {{Font color/sandbox|text=Aristotle|fg=green|link=Plato}}Aristotle

Two color tests

  • {{font color|white|blue|Aristotle}}Aristotle
  • {{font color|text=Aristotle|fg=white|bg=blue}}Aristotle
  • {{font color|white|blue|Aristotle|link=yes}}Aristotle
  • {{font color|bg=blue|text=Aristotle|fg=white|link=yes}}Aristotle
  • {{font color|white|blue|Aristotle|link=Plato}}Aristotle
  • {{font color|bg=blue|text=Aristotle|fg=white|link=Plato}}Aristotle
  • {{font color/sandbox|white|blue|Aristotle}}Aristotle
  • {{font color/sandbox|text=Aristotle|fg=white|bg=blue}}Aristotle
  • {{font color/sandbox|white|blue|Aristotle|link=yes}}Aristotle
  • {{font color/sandbox|bg=blue|text=Aristotle|fg=white|link=yes}}Aristotle
  • {{font color/sandbox|white|blue|Aristotle|link=Plato}}Aristotle
  • {{font color/sandbox|bg=blue|text=Aristotle|fg=white|link=Plato}}Aristotle
  • {{font color|purple|Teen Big Brother|link=Teen Big Brother: The Experiment}}Teen Big Brother
  • {{font color|text=Teen Big Brother|fg=purple|link=Teen Big Brother: The Experiment}}Teen Big Brother
  • {{font color/sandbox|purple|Teen Big Brother|link=Teen Big Brother: The Experiment}}Teen Big Brother
  • Teen Big Brother

Bugs ----

  1. This breaks on apostrophe'123

Wrap {{{3}}} in invoke:String|replace to fix (1). See for example Template:linksto (talk links edit). p <span style="color:red;">This breaks on apostophe'123</span>

  • This breaks on
    break

<span style="color:red;">This breaks on<br />break</span>