Template:Tables: Difference between revisions
From BoyWiki
New page: This shows how to use the "wikitable" class. This is the table data: <code>{|class="wikitable"<br> |-<br> !Table title<br> !First column<br> !Second column<br> !Third column<br> !Fourth ... |
No edit summary |
||
Line 11: | Line 11: | ||
!Fourth column<br> | !Fourth column<br> | ||
|-<br> | |-<br> | ||
|First row<br> | |First row data<br> | ||
|Red<br> | |Red<br> | ||
|Blue<br> | |Blue<br> | ||
Line 17: | Line 17: | ||
|Yellow<br> | |Yellow<br> | ||
|-<br> | |-<br> | ||
|Second row<br> | |Second row data<br> | ||
|Blue<br> | |Blue<br> | ||
|Red<br> | |Red<br> | ||
Line 23: | Line 23: | ||
|Green<br> | |Green<br> | ||
|-<br> | |-<br> | ||
|Third row<br> | |Third row data<br> | ||
|Yellow<br> | |Yellow<br> | ||
|Green<br> | |Green<br> | ||
Line 29: | Line 29: | ||
|Red<br> | |Red<br> | ||
|-<br> | |-<br> | ||
|}</code><br> | |}</code><br> | ||
The above table displays like this: | The above table displays like this: | ||
Line 41: | Line 41: | ||
!Fourth column | !Fourth column | ||
|- | |- | ||
|First row | |First row data | ||
|Red | |Red | ||
|Blue | |Blue | ||
Line 47: | Line 47: | ||
|Yellow | |Yellow | ||
|- | |- | ||
|Second row | |Second row data | ||
|Blue | |Blue | ||
|Red | |Red | ||
Line 53: | Line 53: | ||
|Green | |Green | ||
|- | |- | ||
|Third row | |Third row data | ||
|Yellow | |Yellow | ||
|Green | |Green |
Revision as of 07:06, 26 March 2014
This shows how to use the "wikitable" class.
This is the table data:
{|class="wikitable"
|-
!Table title
!First column
!Second column
!Third column
!Fourth column
|-
|First row data
|Red
|Blue
|Green
|Yellow
|-
|Second row data
|Blue
|Red
|Yellow
|Green
|-
|Third row data
|Yellow
|Green
|Blue
|Red
|-
|}
The above table displays like this:
Table title | First column | Second column | Third column | Fourth column |
---|---|---|---|---|
First row data | Red | Blue | Green | Yellow |
Second row data | Blue | Red | Yellow | Green |
Third row data | Yellow | Green | Blue | Red |