FANDOM


Tables are used to show different things in a certain order. Tables can have as many rows as needed in them, having an option for a user editing it to pick how many.

WikitableEdit

{| class="wikitable" cellpadding="3" width="100%"
|+
!Option 1
!Option 2
!Option 3
|+
|1.1
|2.1
|3.1
|+ 
|1.2
|2.2
|3.2
|+ 
|}

Looks like this:

Option 1 Option 2 Option 3
1.1 1.2 1.3
2.1 2.2 2.3

Wikitables are handy for displaying information.

Sortable WikitableEdit

If you want your Wikitable to sort your information for you, there is a code:

{| class="wikitable sortable" cellpadding="3" width="100%"
|+
!Option 1
!Option 2
!Option 3
|+
|1.1
|2.1
|3.1
|+ 
|1.2
|2.2
|3.2
|+ 
|}

Looks like this:

Option 1 Option 2 Option 3
1.1 1.2 1.3
2.1 2.2 2.3

Sortable Wikitables can order the data based on number, letter or position. These tables don't take much extra work, but have a greater result than the wikitable.

Colored wikitable Edit

You can change cell background color and text color using code
style=" color:add text color here  ; background-color: add background color here ;"

{| class="wikitable" cellpadding="3" width="100%" style=" color:Indianred; background-color:#B0C4DE;"
|+
!Option 1
!Option 2
!Option 3
|+
|1.1
|2.1
|3.1
|+ 
|1.2
|2.2
|3.2
|+ 
|}

Looks like this:

Option 1 Option 2 Option 3
1.1 1.2 1.3
2.1 2.2 2.3

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.