| This template uses Lua:
|
Creates a list where each item is colored with a contrasting color, e.g.: Script error: No such module "Colored list".
Usage
{{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}}
|
Script error: No such module "Colored list".
|
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|pre=#}}
|
Script error: No such module "Colored list".
|
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|pre=|tag=i|style=font-weight: bold|sep=;}}
|
Script error: No such module "Colored list".
|
{{Colored list|One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten|class=hlist}}
|
Script error: No such module "Colored list".
|
{{Colored list|One|Two|class=plainlist}}
|
Script error: No such module "Colored list".
|
{{Colored list|1=1+1=2|2=2+2=4}} -or-
{{Colored list|1+1{{=}}2|2+2{{=}}4}}
|
Script error: No such module "Colored list".
|
Color sequences
The following color sequences are available, mostly taken from the D3 3.x API and colorbrewer:
accent
: Script error: No such module "Colored list".
calc
: Script error: No such module "Colored list".
excel
: Script error: No such module "Colored list".
category10
or category
: Script error: No such module "Colored list".
dark2
or dark
: Script error: No such module "Colored list".
set1
or set
: Script error: No such module "Colored list".
tableau10
or tableau
: Script error: No such module "Colored list".
google
: Script error: No such module "Colored list".
category20
: Script error: No such module "Colored list".
category20b
: Script error: No such module "Colored list".
category20c
: Script error: No such module "Colored list".
See also
Script error: No such module "navbox top and bottom".
Flat
|
|
|
|
Bulleted and Ordered
|
|
|
|
Unbulleted
|
|
|
|
Other
|
|
|
|
Script error: No such module "navbox top and bottom".