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

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(add case)
imported>Izno
(→‎Sandbox version: simplify test cases)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
== [[Template:{{BASEPAGENAME}}/sandbox|Sandbox version]] ==
 
== [[Template:{{BASEPAGENAME}}/sandbox|Sandbox version]] ==
  
'''No parameters'''
+
===No parameters===
 
{{{{BASEPAGENAME}}/sandbox}}
 
{{{{BASEPAGENAME}}/sandbox}}
 
* One
 
* One
Line 19: Line 19:
 
{{Div col end}}
 
{{Div col end}}
  
 
+
===colwidth===
{{clear}}
 
 
 
===Number of columns, ''rules'', ''style''===
 
 
 
'''first unnamed (i.e. number of cols) = 3'''
 
{{{{BASEPAGENAME}}/sandbox|3}}
 
* One
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
{{Div col end}}
 
 
 
'''first unnamed = 4'''
 
{{{{BASEPAGENAME}}/sandbox|4}}
 
* One
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
{{Div col end}}
 
 
 
'''first unnamed = 4, rules=yes'''
 
{{{{BASEPAGENAME}}/sandbox|4|rules=yes}}
 
* One
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
{{Div col end}}
 
 
 
'''cols=3 style=font-size:85%;'''
 
{{{{BASEPAGENAME}}/sandbox|cols=3|style=font-size:85%;}}
 
* One (font-size:85%)
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
{{Div col end}}
 
 
 
 
 
{{clear}}
 
 
 
===''colwidth'', ''rules'', ''style'', ''gap''===
 
 
 
'''colwidth=10em'''
 
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em}}
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em}}
 
* One
 
* One
Line 109: Line 35:
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, rules=solid 1px #C00;'''
+
===style===
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|rules=solid 1px #C00}}
+
{{{{BASEPAGENAME}}/sandbox|style=background:khaki;}}
 
* One
 
* One
 
* Two
 
* Two
Line 125: Line 51:
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, style=width:50%;''' background:khaki;
+
===gap===
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|style=width:50%;background:khaki;}}
+
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|gap=5em|style=width:50%;background:khaki;}}
 +
<div style="background-color: lightblue;">
 
* One
 
* One
 
* Two
 
* Two
Line 139: Line 66:
 
* Eleven
 
* Eleven
 
* Twelve
 
* Twelve
 +
</div>
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, gap=5em, style=width:50%;''' background:khaki; (with div style="background-color: lightblue;" wrapping the text)
+
===small===
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|gap=5em|style=width:50%;background:khaki;}}
+
{{{{BASEPAGENAME}}/sandbox|small=yes}}
<div style="background-color: lightblue;">
 
 
* One
 
* One
 
* Two
 
* Two
Line 156: Line 83:
 
* Eleven
 
* Eleven
 
* Twelve
 
* Twelve
</div>
 
 
{{Div col end}}
 
{{Div col end}}
  
===Combine count and width===
+
=== rules ===
 
+
{{{{BASEPAGENAME}}/sandbox|rules=yes}}
Opera 12.x ignores <code>column-count</code> when <code>column-width</code> is specified.
 
 
 
'''cols=3, colwidth=10em'''
 
{{{{BASEPAGENAME}}/sandbox|cols=3|colwidth=10em}}
 
 
* One
 
* One
 
* Two
 
* Two
Line 179: Line 101:
 
{{Div col end}}
 
{{Div col end}}
  
'''cols=10, colwidth=10em'''
+
=== content ===
{{{{BASEPAGENAME}}/sandbox|cols=10|colwidth=10em}}
+
{{{{BASEPAGENAME}}/sandbox|content=
 
* One
 
* One
 
* Two
 
* Two
Line 193: Line 115:
 
* Eleven
 
* Eleven
 
* Twelve
 
* Twelve
{{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}}
 

Latest revision as of 22:24, 24 December 2020

Sandbox version

No parameters

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

colwidth

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

style

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

gap

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

small

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

rules

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

content

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