Template:Color template doc/doc
< Template:Color template doc
Jump to navigation
Jump to search
Revision as of 20:41, 27 July 2013 by imported>Useddenim (default)
| This is a documentation subpage for Template:Color template doc. It contains usage information, categories and other content that is not part of the original template page. |
This template lists as a wikitable row a template name and up to three arguments, a color sample and its hex value.
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 |