Template:Colored list/doc

From imedwiki
< Template:Colored list
Jump to navigation Jump to search

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
Page Template:Mono/styles.css has no content.{{hlist}}
{{hlist|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{flatlist}}
{{flatlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{cslist}}
{{cslist|item1 |item2 |...}}

Page Template:Cslist/styles.css has no content.Script error: No such module "Cslist".

Bulleted and Ordered
Page Template:Mono/styles.css has no content.{{bulleted list}}
{{bulleted list|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{ordered list}}
{{Ordered list|list_style_type=lower-alpha |first |second |...}}

  1. first
  2. second
  3. ...
Unbulleted
Page Template:Mono/styles.css has no content.{{unbulleted list}}
{{unbulleted list|item1 |item2 |...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{plainlist}}
{{plainlist|
* item1
* item2
* ...}}

  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{glossary}}
(glossary, description, definition, association)
{{glossary}}

{{term|first term}} {{defn|first description}}
{{term|second term}} {{defn|second description}}
{{term|...}} {{defn|....}}
Page Template:Mono/styles.css has no content.{{glossary end}}


first term
first description
second term
second description
...
....
Other
Page Template:Mono/styles.css has no content.{{flowlist}}
[[File:Bad Title Example.png|left|thumb|100px]]

{{flowlist|
*item1
*item2
*...}}


Bad Title Example.png
Page Template:Flowlist/styles.css has no content.
  • item1
  • item2
  • ...
Page Template:Mono/styles.css has no content.{{columns-list}}
{{columns-list|colwidth=5em|
# first
# second
# third
# ...}}

  1. first
  2. second
  3. third
  4. ...
Page Template:Mono/styles.css has no content.{{colored list}}
{{colored list|item1 |item2 |item3 |...}}

Script error: No such module "Colored list".

Script error: No such module "navbox top and bottom".


This template is based (in parts) on the Template:Colored list/doc from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.