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

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(add case)
imported>Izno
(clean out old tests)
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 18: Line 18:
 
* Twelve
 
* Twelve
 
{{Div col end}}
 
{{Div col end}}
 
 
{{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'', ''rules'', ''style'', ''gap''===
  
'''colwidth=10em'''
+
====colwidth=10em====
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em}}
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em}}
 
* One
 
* One
Line 109: Line 37:
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, rules=solid 1px #C00;'''
+
====colwidth=10em, rules=solid 1px #C00;====
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|rules=solid 1px #C00}}
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|rules=solid 1px #C00}}
 
* One
 
* One
Line 125: Line 53:
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, style=width:50%;''' background:khaki;
+
====colwidth=10em, style=width:50%; background:khaki;====
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|style=width:50%;background:khaki;}}
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|style=width:50%;background:khaki;}}
 
* One
 
* One
Line 141: Line 69:
 
{{Div col end}}
 
{{Div col end}}
  
'''colwidth=10em, gap=5em, style=width:50%;''' background:khaki; (with div style="background-color: lightblue;" wrapping the text)
+
====colwidth=10em, gap=5em, style=width:50%; background:khaki; (with div style="background-color: lightblue;" wrapping the text)====
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|gap=5em|style=width:50%;background:khaki;}}
 
{{{{BASEPAGENAME}}/sandbox|colwidth=10em|gap=5em|style=width:50%;background:khaki;}}
 
<div style="background-color: lightblue;">
 
<div style="background-color: lightblue;">
Line 157: Line 85:
 
* Twelve
 
* Twelve
 
</div>
 
</div>
{{Div col end}}
 
 
===Combine count and width===
 
 
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
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
{{Div col end}}
 
 
'''cols=10, colwidth=10em'''
 
{{{{BASEPAGENAME}}/sandbox|cols=10|colwidth=10em}}
 
* One
 
* Two
 
* Three
 
* Four
 
* Five
 
* Six
 
* Seven
 
* Eight
 
* Nine
 
* Ten
 
* Eleven
 
* Twelve
 
 
{{Div col end}}
 
{{Div col end}}
  

Revision as of 05:09, 24 December 2020

Sandbox version

No parameters

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

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

Live

  • Item 1
  • Item 2

Sandbox

  • Item 1
  • Item 2