User blog:Potassium19/Table in Wikitext

  Table in Wikitext

In this blog, I'll show you the basics of how to create and modify tables in wikitext. I don't have much experience in blogging so my blog may have lacks of arrangement. My knowledge on wikitext and CSS/HTML are also limited, so please don't mind my noob-ness, I'm trying my best to demonstrate how table works in wikitext to people.

Visual
You can easily create a basic table by hitting the Table button in the right panel of the editor in the Visual mode. A window will pop up and you'll have to put in information about your table.

Start/Ending a table, create a cell
If you need advanced options on tables, say, CSS attributes to a certain cell? You'll need to switch to source mode There, you can build a table right from the beginning and modify lots of stuffs!


 * To start a table, simply start with a
 * All table must end with a

Put a empty line between those two. We will fill in the empty spaces with our contents. Now, our code will look like this:


 * To make a cell (a square box) on the table, use  (Shift + \, it's called a pipe).Then add the content after that.

Say, I want to have a table containing one cell with sakka in it.
 * I'll have to start with   {|  then   |sakka   then  |} 

Our result will be:

You'll see that's it's absolutely nothing because we haven't put borders on and it looks like plain text.

New line
I don't want my table to have 6 cells in a row, I want it to be 3 cells in the first row and 3 cells in the second row. What can I do?

Unfortunately, Enter button on your computer won't work obviously.


 * In wikitext, if you want to enter a new line, you'll have to use

That's a pipe and a hyphen right after it!

Now let's try creating a tablet with 3 cells on the first row saying these following: Fubuki, 9, ice And: Geounji, 10, fire on the second row


 * I'll have to start with

Our output will be:

If put in the borders, you can now see that the table is in two row:

To be continue