Template:Div col/testcases

From MediaWiki.org
Jump to navigation Jump to search

Template:Testcases notice

Sandbox version[edit]

No parameters Template:Div col/sandbox

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


Number of columns, rules, style[edit]

first unnamed (i.e. number of cols) = 3 Template:Div col/sandbox

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

first unnamed = 4 Template:Div col/sandbox

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

first unnamed = 4, rules=yes Template:Div col/sandbox

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

cols=3 style=font-size:85%; Template:Div col/sandbox

  • One (font-size:85%)
  • Two
  • Three
  • Four
  • Five
  • Six
  • Seven
  • Eight
  • Nine
  • Ten
  • Eleven
  • Twelve


colwidth, rules, style, gap[edit]

colwidth=10em Template:Div col/sandbox

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

colwidth=10em, rules=solid 1px #C00; Template:Div col/sandbox

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

colwidth=10em, style=width:50%; background:khaki; Template:Div col/sandbox

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

colwidth=10em, gap=5em, style=width:50%; background:khaki; (with div style="background-color: lightblue;" wrapping the text) Template:Div col/sandbox

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

Combine count and width[edit]

Opera 12.x ignores column-count when column-width is specified.

cols=3, colwidth=10em Template:Div col/sandbox

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

cols=10, colwidth=10em Template:Div col/sandbox

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