Template:Tables: Difference between revisions

From BoyWiki
User4 (talk | contribs)
No edit summary
User4 (talk | contribs)
No edit summary
Line 35: Line 35:
<pre>Table title First column Second column Third column Fourth column
<pre>Table title First column Second column Third column Fourth column
First row data Red Blue Green Yellow
First row data Red Blue Green Yellow
Second row data Blue Red Yellow Green
Second row data Blue Red Yellow Green
Third row data Yellow Green Blue Red</pre>
Third row data Yellow Green Blue Red</pre>



Revision as of 22:26, 26 March 2014

This shows how to use the "wikitable" class.

This is the table data:

{|class="wikitable"
|-<br>
!Table title<br>
!First column<br>
!Second column<br>
!Third column<br>
!Fourth column<br>
|-<br>
|First row data<br>
|Red<br>
|Blue<br>
|Green<br>
|Yellow<br>
|-<br>
|Second row data<br>
|Blue<br>
|Red<br>
|Yellow<br>
|Green<br>
|-<br>
|Third row data<br>
|Yellow<br>
|Green<br>
|Blue<br>
|Red<br>
|-<br>
|}

The above table data 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
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