Difference between revisions of "Template:Div col/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(→‎colwidth, rules, style, gap: update description)
imported>Jonesey95
(add case)
Line 194: Line 194:
 
* Twelve
 
* Twelve
 
{{Div col end}}
 
{{Div col end}}
 +
 +
==Rules=yes, 5em, two items, small=yes==
 +
===Live===
 +
{{div col|colwidth=5em|small=yes|rules=yes}}
 +
* Item 1
 +
* Item 2
 +
{{div col end}}
 +
 +
===Sandbox===
 +
{{div col/sandbox|colwidth=5em|small=yes|rules=yes}}
 +
* Item 1
 +
* Item 2
 +
{{div col end}}

Revision as of 00:06, 10 November 2020

Sandbox version

No parameters

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


Number of columns, rules, style

first unnamed (i.e. number of cols) = 3

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

first unnamed = 4

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

first unnamed = 4, rules=yes

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

cols=3 style=font-size:85%;

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


colwidth, rules, style, gap

colwidth=10em

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

colwidth=10em, rules=solid 1px #C00;

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

colwidth=10em, style=width:50%; background:khaki;

  • 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)

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

Combine count and width

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

cols=3, colwidth=10em

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

cols=10, colwidth=10em

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

Rules=yes, 5em, two items, small=yes

Live

  • Item 1
  • Item 2

Sandbox

  • Item 1
  • Item 2