Creates a list where each item is colored with a contrasting color, e.g.:

  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten

Usage

mudé

{{Colored list|list items|pre=item prefix|tag=HTML tag for each item|style=CSS|class="list class"|sep="item separator"|s='color sequence (see below)'}}

All named parameters are optional, and default to:

pre    = * (bulleted list)
tag    = span
style  = (none)
class  = (none)
sep    = \n (new line)
s      = category10
Input Output
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten}}
  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|pre=#}}
  1. One
  2. Two
  3. Three
  4. Four
  5. Five
  6. Six
  7. Seven
  8. Eight
  9. Nine
  10. Ten
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|pre=|tag=i|style=font-weight: bold|sep=;}} One;Two;Three;Four;Five;Six;Seven;Eight;Nine;Ten
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|class=hlist}}
  • One
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
{{Colored list|One|Two|class=plainlist}}
  • One
  • Two
{{Colored list|1=1+1=2|2=2+2=4}} -or-
{{Colored list|1+1{{=}}2|2+2{{=}}4}}
  • 1+1=2
  • 2+2=4

Color sequences

mudé

The following color sequences are available, mostly taken from the D3 3.x API and colorbrewer:

accent:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

calc:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

excel:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

category10 or category:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

dark2 or dark:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

set1 or set:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

tableau10 or tableau:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

google:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

category20:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

category20b:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

category20c:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

See also

mudé