Difference between revisions of "Template:Infobox musical artist/color"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(removed the initial comment that "simulated" a blank line)
(fixed now (#switch has a few quirks that should be fixed or at least mentioned in the help page!))
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|}}}
 
<includeonly>{{#switch: {{{1|}}}
  | solo_singer              = #f0e68c <!-- khaki -->
+
| solo_singer              = &#35;f0e68c <!-- khaki -->
  | non_vocal_instrumentalist = #f08080 <!-- lightcoral -->
+
| non_vocal_instrumentalist = &#35;f08080 <!-- lightcoral -->
  | non-performing_personnel  = #90ee90 <!-- lightgreen -->
+
| non-performing_personnel  = &#35;90ee90 <!-- lightgreen -->
  | group_band                = #87cefa <!-- lightskyblue -->
+
| group_band                = &#35;87cefa <!-- lightskyblue -->
  | cover_band                = #dda0dd <!-- plum -->
+
| cover_band                = &#35;dda0dd <!-- plum -->
  | classical_ensemble        = #afeeee <!-- paleturquoise -->
+
| classical_ensemble        = &#35;afeeee <!-- paleturquoise -->
  | temporary                = #a9a9a9 <!-- darkgray -->
+
| temporary                = &#35;a9a9a9 <!-- darkgray -->
  | #default = {{{1|darkgray}}} <!-- this line is provisional; when the design is settled,
+
| default = {{{1|&#35;a9a9a9}}}
                                    it shouldn't be possible to specify anything else
+
}};</includeonly><noinclude><!--
                                    than the above names
+
 
-->}}</includeonly><noinclude>
+
  * IMPORTANT: the default line in the switch above is provisional;     *
;NOTE
+
  *            when the design will be settled it shouldn't be possible *
This template is an implementation detail, encapsulating the color association used for its parent template. It has a single unnamed parameter and expands to
+
  *            to specify anything else than one of the above names.    *
*a color name, if one exists among the 16 names supported by the HTML 4.0 standard (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow)
+
  *                                                                    *
*a "color hex", otherwise.
+
 
 +
-->;NOTE
 +
This template is an implementation detail, encapsulating the color association we use for its parent template. It has a single unnamed parameter and expands to
 +
*<color name>; if a name exists among the 16 names supported by the HTML 4.0 standard (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow)
 +
*&#35;<color hex>; otherwise.
 +
 
 +
Note that the semicolon is <em>always</em> included.
 +
 
 +
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 +
[[Category:Template implementation details|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 19:05, 27 April 2006

NOTE

This template is an implementation detail, encapsulating the color association we use for its parent template. It has a single unnamed parameter and expands to

  • <color name>; if a name exists among the 16 names supported by the HTML 4.0 standard (aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow)
  • #<color hex>; otherwise.

Note that the semicolon is always included.