Help:Introduction to tables with Wiki Markup/2: Difference between revisions
ce |
m ce. I don't think we need another help page on the Wikitable class, it's fairly simple. |
||
Line 60: | Line 60: | ||
'''wikitable''' |
'''wikitable''' |
||
<code>class="wikitable"</code> is used with a lot of tables and adds |
<code>class="wikitable"</code> is used with a lot of tables on Wikipedia and adds some standard styling. |
||
'''border''' |
'''border''' |
||
Even though the <code>wikitable</code> class includes a border, it is a good practice to include <code>border="1"</code>. If the page with the table is ported to another wiki without the <code>wikitable</code> class, then the table will have no borders without it. |
Even though the <code>wikitable</code> class includes a border, it is a good practice to also include <code>border="1"</code>. If the page with the table is ported to another wiki without the <code>wikitable</code> class, then the table will have no borders without it. |
||
{{Help intro next |target=Help:Table/Sortable tables}} |
{{Help intro next |target=Help:Table/Sortable tables}} |
Revision as of 16:14, 7 March 2013
Introduction to tables Editing tables Expanding tables Summary
|
If you don't have a way of creating tables automatically, or want more control over them, this tutorial should explain how. So, a basic table, as discussed, is: {| class="wikitable" border="1" |- ! header 1 ! header 2 ! header 3 |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |- | row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |} As you can see, columns headers are created by To recap, the markup is:
wikitable
border Even though the |