Template:Color template doc/doc
From HandWiki
< Template:Color template doc
Revision as of 16:53, 7 July 2021 by imported>Jworkorg (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 to tables|wikit...")
This is a documentation subpage for Template:Color template doc It may contain 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 five 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_5}}
|}
argument_1
can be omitted if the color template has only one value, or it is desired to show the default color; argument_2
through argument_5
are optional. All five are valid inputs for the color template.
Examples
When used on the page Template:TTC color/doc, the code {{Color template doc|}}
produces
{{TTC color}}
|
Sample: | ff0000
|
while the code {{Color template doc|#default}}
produces
{{TTC color|#default}}
|
Sample: | ff0000
|
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
{{NYCS color|blue}}
|
Sample: | style="background:#Template:NYCS color; border-top:solid 1px gray; " | | template:nycs color
|
Eighth Avenue | A / C / E / Eighth |
See also