Difference between revisions of "Template:Stripe"

From Fleet
(Created page with "<includeonly><html><style type=text/css> </html> {{#if:{{{2|}}}|table.zebra#{{{2}}}|table.zebra}}<html> tr.stripe { background-color:</html>{{{1|#bbb}}}<html>;</style> </html>...")
 
 
Line 40: Line 40:
 
* [[Help:CSS]]
 
* [[Help:CSS]]
  
[[Category:Table Template]]
+
[[Category:Table Template]] [[Category:Color Template]]
[[Category:Color Template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:21, 10 May 2012


The stripe template specifies the color to be used to stripe one or more zebra tables on a page.

Syntax

{{stripe|COLOR|ID}}

where COLOR and ID are both optional.

The default value of COLOR is #bbb     .

If ID is specified, then all zebra tables on the page with id=ID will be affected.

Otherwise, all zebra tables on the page will be affected.

Examples:

{{stripe}} is equivalent to {{stripe|#bbb}}.

Adding {{stripe|green}} to this page resulted in the following zebra table:

<html><style type=text/css> </html> table.zebra<html> tr.stripe { background-color:</html>green<html>;</style> </html>

1
2
3
4

See also