Difference between revisions of "Template:Color template doc/doc"

From blackwiki
Jump to navigation Jump to search
imported>Useddenim
(Created page with '{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> This template lists as a Help:Table/Introduction t...')
 
imported>Useddenim
m (default)
Line 31: Line 31:
 
{{Color template doc|</nowiki>'''''argument_1'''''<nowiki>|</nowiki>''argument_2''<nowiki>|</nowiki>''argument_3''<nowiki>}}</nowiki><br><nowiki>
 
{{Color template doc|</nowiki>'''''argument_1'''''<nowiki>|</nowiki>''argument_2''<nowiki>|</nowiki>''argument_3''<nowiki>}}</nowiki><br><nowiki>
 
|}</nowiki></code>
 
|}</nowiki></code>
<tt>'''''argument_1'''''</tt> is required; <tt>''argument_2''</tt> and <tt>''argument_3''</tt> are optional. All three are valid inputs for the color template.
+
<tt>'''''argument_1'''''</tt> is required; <tt>''argument_2''</tt> and <tt>''argument_3''</tt> are optional. All three are valid inputs for the color template. (Omitting <tt>'''''argument_1'''''</tt> will show the default color.)
  
 
=== Examples ===
 
=== Examples ===

Revision as of 20:41, 27 July 2013


This template lists as a wikitable row a template name and up to three arguments, a color sample and its hex value.

{{Template:system color|argument_1}}

Sample: White grey checkerboard.svg hexval

{{Template:system color|argument_1}} or …|argument_2}}

Sample: White grey checkerboard.svg hexval

{{Template:system color|argument_1}} or …|argument_2}} or …|argument_3}}

Sample: White grey checkerboard.svg hexval

Usage

The template itself is contained between table start and end markup:

{| class="wikitable"
{{Color template doc|argument_1|argument_2|argument_3}}
|}

argument_1 is required; argument_2 and argument_3 are optional. All three are valid inputs for the color template. (Omitting argument_1 will show the default color.)

Examples

When used on the page Template:Amtrak color/doc, the code {{Color template doc|#default}} produces

{{Template:Amtrak color|#default}} Sample: style="background:#Template:Amtrak color; border-top:solid 1px gray; " |   template:amtrak color

Additional information can be added to the table. On the page Template:NYCS color/doc the code

{{Color template doc|blue}}
| [[IND Eighth Avenue Line|Eighth Avenue]]
| A / C / E / Eighth

produces

{{Template:NYCS color|blue}} Sample:   0039a6 Eighth Avenue A / C / E / Eighth