Hopefully this will be an understandable introduction to the image and table functions.

Images edit

To add an image put in the code:

  • [[Image:]]


Now add the link to the image you want:

  • [[Image:Hapalochlaena lunulata.JPG]]


Tell wikipedia what width the image should be:

  • [[Image:Hapalochlaena lunulata.JPG|100px|]]


you can choose any width

  • [[Image:Hapalochlaena lunulata.JPG|230px|]]


The height will automatically resize when you change the width.


Result-

100px:

 

Result-

230px:

 


Tables edit

To create a table put in the code:

  • {| class="wikitable"
    |
    |}


Tell wikipedia what width and height the table should be:

  • {| class="wikitable" style="width:60%; height:150px"
    |
    |}


For the width you can choose any percentage, for the height you can choose any size.


Result-

width:60%; height:150px


Now put something in the table:

  • {| class="wikitable"style="width:60%; height:150px"
    | Hello Buster!
    |}


Result-

Hello Buster!


You can break the table in two if you want another message:

  • {| class="wikitable" style="width:60%; height:150px"
    | Hello Buster!
    | My name is Kevin
    |}


Result-

Hello Buster! My name is Kevin

You can break it up as many times as you wish:

  • {| class="wikitable" style="width:60%; height:150px"
    | Hello Buster!
    | My name is Kevin
    | Where are you from?
    |}


Result-

Hello Buster! My name is Kevin Where are you from?

Each time you break it up the new half is called a cell.
We can change the width of each individual cell:

  • {| class="wikitable" style="width:60%; height:150px"
    |width="50%"| Hello Buster!
    |width="20%"| My name is Kevin
    |width="30%"| Where are you from?
    |}


Result-

Hello Buster! My name is Kevin Where are you from?

note that the 3 cells add up to 100% of the table (50% + 20% + 30%)


We can add extra properties to the cell such as making the text in the center of the cell:

  • {| class="wikitable" style="width:60%; height:150px"
    |width="50%" align="center"| Hello Buster!
    |width="20%"| My name is Kevin
    |width="30%"| Where are you from?
    |}


Result-

Hello Buster! My name is Kevin Where are you from?


The width of the table does not have to be a percentage it can be in px

  • {| class="wikitable" style="width:400px; height:150px"
    |width="200px" align="center"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |}


Result-

Hello Buster! My name is Kevin Where are you from?


ONE STEP FURTHER

we can break the table horizontally, This is called a row:

  • {| class="wikitable" style="width:400px; height:150px"
    |width="200px" align="center"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |-
    |width="200px" align="center"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?

    |}


Result-

Hello Buster! My name is Kevin Where are you from?
Hello Buster! My name is Kevin Where are you from?


Now take control of the height:

  • {| class="wikitable" style="width:400px; height:"320px"
    |width="200px" align="center" height="250px"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |-
    |width="200px" align="center" height="70px"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |}


Result-

Hello Buster! My name is Kevin Where are you from?
Hello Buster! My name is Kevin Where are you from?

note that you only have to say the height once for each row


FINALLY

You can replace the text with an image:

  • {| class="wikitable" style="width:400px; height:"320px"
    |width="200px" align="center" height="250px"| [[Image:Hapalochlaena lunulata.JPG|100px|]]
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |-
    |width="200px" align="center" height="70px"| Hello Buster!
    |width="50px"| My name is Kevin
    |width="150px"| Where are you from?
    |}


Result-

  My name is Kevin Where are you from?
Hello Buster! My name is Kevin Where are you from?

note- do not make the image bigger than the size of the cell it is in.

Further reading edit

For more advanced functions and more detail check out:

Wikipedia:Extended_image_syntax

Help:Table

If you wish to ask me any questions feel free to do so at my page User:Kevin hipwell