Template:2x2
From QED
| {{{heading1}}} | {{{heading2}}} | |
|---|---|---|
|
{{{cell11}}} |
{{{cell12}}} | |
|
{{{cell21}}} |
{{{cell22}}} |
Syntax
The minimal invocation should specify the headings and cell elements:
{{2x2
|heading1=
|heading2=
|cell11=
|cell21=
|cell12=
|cell22=
}}
These and other parameters may be specified:
| Parameter | Default | Comment |
|---|---|---|
| color | transparent | background-color of the table |
| border | 0 | border |
| cellpadding | 10 | |
| cellspacing | 10 | |
| width | 300 | column width |
| gap | 10 | width of gap between the columns |
| gapbgcolor | transparent | gap color |
| headingbgcolor | silver | background color of the headings |
| bgcolor | transparent | background color of the cells |
| heading1 | contents of heading for first column | |
| heading2 | contents of heading for second column | |
| align1 | left | horizontal alignment of left column |
| align2 | left | horizontal alignment of right column |
cell11, cell12, cell21, cell22 specify the contents of the four cells.
Example
This example shows the difference between "color" and "bgcolor" and how to specify that some of the four cells should be empty:
| Column 1 | Column 2 | |
|---|---|---|
|
| ||
|
|
{{2x2
|color=aliceblue
|bgcolor=#FFFFCC
|gapbgcolor=green
|heading1=Column 1
|heading2=Column 2
|cell11=<center>X</center>
|cell21=
|cell12=
|cell22=<center>Y</center>
}}












