How to Make Wiki Tables
At times, a table helps organize concepts. These Mark Up instructions create tables for all sites powered by MediaWiki, including wikiHow and Wikipedia. You may like Wikipedia:Help:Table for a series of examples of tables with increasing complexity.
EditSteps
-
1Decide how to format your information into rows and columns.Ad
-
2Use {| to begin a table.
-
3Use | to begin each new cell.
-
4Use |- to begin a new row.
-
5Use |} to end a table.
-
6Review the Edit page of this article to clarify code used in the following example.
- Use "div" tags at the beginning and "/div" end of your code.
- Use "center" tags to center a table in the middle of a page, and "/center" to return to normal alignment, flush left.
-
7Replace Row and Column with any text. See how your table looks.Ad
Row 1 Column 1 | Row 1 Column 2 | Row 1 Column 3 |
Row 2 Column 1 | Row 2 Column 2 | Row 2 Column 3 |
You would need to learn about alignment codes to get columns to align equally. Here it is dependent on the length of phrases, for example:
<center><div> {|class="wikitable" border="1" cellpadding="4" cellspacing="4" | Put | text or numbers | in. |- | See | longer phrase ''automatically fit'' in | columns. |}</div></center>
Put | text or numbers | in. |
See | longer phrases automatically fit in | columns. |
Note: The example, using cellpadding="4" cellspacing="4", made the white space in the borders wider between cells, compared to the original code in the steps above, omitting that added specification.
We could really use your help!
cleaning clothes?

Adobe Photoshop?

estate planning?

managing employees?

EditVideo
EditTips
- Click wikipedia:Help:Table to learn more.
- For wikiHow, remember to click on the Preview button, at the bottom of your Edit page, to view changes prior to submitting a final draft (not to publish tables that are not-working, yet).
- Click wikiHow:Use Advanced Wiki Syntax Formatting to learn more about wikiHow's acceptable syntax.
Article Info
Categories: Formatting | Markup Languages
Thanks to all authors for creating a page that has been read 13,584 times.
About this wikiHow