Notes on using tables

From University of Washington - Ubicomp Research Page
Revision as of 22:46, 19 March 2007 by Jonathan Lester (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Some bit field examples

Here we can see how to create some fixed size tables:

Wiki markup

{| class="wikitable"
!style="width:35px"| Bit 7 !! style="width:35px"| Bit 6 !! style="width:35px"| Bit 5 !! style="width:35px"| Bit 4 !! style="width:35px"| Bit 3 !!  style="width:35px"| Bit 2 !! style="width:35px"| Bit 1 !! style="width:35px"| Bit 0 
|-
| 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0
|}

Table with highlighed background:
{| class="wikitable" 
!style="width:35px" style="background:#ABCDEF;" | Bit 0 !! style="width:35px"| Bit 1 !! style="width:35px"| Bit 2 !! style="width:35px"| Bit 3 !! style="width:35px"| Bit 4 !!  style="width:35px"| Bit 5 !! style="width:35px"| Bit 6 !! style="width:35px"| Bit 7
|-
| style="background:#ABCDEF;" | 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0
|}

Table with incomplete cols
{| class="wikitable"
!style="width:35px"| Bit 15 !! style="width:35px"| Bit 14 !! style="width:35px"| Bit 13 !! style="width:35px"| Bit 12 !!  style="width:35px"| Bit 11 !! style="width:35px"| Bit 10 !! style="width:35px"| Bit  9 !! style="width:35px"| Bit  8 !!   style="width:35px"| Bit  7 !!  style="width:35px"| Bit  6 !! style="width:35px"| Bit  5 !! style="width:35px"| Bit  4 !! style="width:35px"| Bit  3 !! style="width:35px"| Bit  2 !! style="width:35px"| Bit  1 !! style="width:35px"| Bit  0
|-
| 0 || 0 || 0 || 0 || 0 || 0 || 0 || 0
|}

Results

Normal table

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 0 0 0 0 0 0 0

Table with highlighed background:

Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
0 0 0 0 0 0 0 0

Table with incomplete cols

Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
0 0 0 0 0 0 0 0