قالب:Color template doc
This template lists as a wikitable row a template name and up to three arguments, a color sample and its hex value.
|
Sample: | ملف:White grey checkerboard.svg | hexval
|
|
Sample: | ملف:White grey checkerboard.svg | hexval
|
|
Sample: | ملف:White grey checkerboard.svg | hexval
|
|
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 can be omitted if the color template has only one value, or it is desired to show the default color; argument_2 and argument_3 are optional. All three are valid inputs for the color template.
Examples
When used on the page Template:Amtrak color/doc, the code {{Color template doc|}}
produces
{{Amtrak color}}
|
Sample: | 005480
|
while the code {{Color template doc|#default}}
produces
{{Amtrak color|#default}}
|
Sample: | 005480
|
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: | 0039a6
|
Eighth Avenue | A / C / E / Eighth |
See also
The above documentation is transcluded from قالب:Color template doc/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |