Difference between revisions of "Help:Table"
Line 1: | Line 1: | ||
− | + | Table syntax is fairly logical and experience of html is not needed in order to make tables. | |
+ | |||
+ | {{WikiTitle}} tables are an arrangement of columns and rows used to organise and position data. Tables are useful, and there are many ways and tricks that can be used. This page gives you information about syntax to build them. | ||
+ | |||
+ | If you want to create a navigation menu (as you see at the foot of this page) or an information box (as on the [[Amazon|class pages]]) then there will probably be a [[:Category:Templates|template]] already made. | ||
+ | |||
+ | ==Basic Table== | ||
+ | |||
+ | <pre><nowiki> | ||
+ | {| | ||
+ | |- | ||
+ | | 1 | ||
+ | | 2 | ||
+ | | 3 | ||
+ | |- | ||
+ | | a | ||
+ | | b | ||
+ | | c | ||
+ | |} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | '''Would look like this...''' | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | | 1 | ||
+ | | 2 | ||
+ | | 3 | ||
+ | |- | ||
+ | | a | ||
+ | | b | ||
+ | | c | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Basic Table With Headers == | ||
+ | |||
+ | <pre> | ||
+ | {| | ||
+ | |- | ||
+ | ! Header 1 | ||
+ | ! Header 2 | ||
+ | ! Header 3 | ||
+ | |- | ||
+ | | cell 1 | ||
+ | | cell 2 | ||
+ | | cell 3 | ||
+ | |} | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | '''Would like like this...''' | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | ! Header 1 | ||
+ | ! Header 2 | ||
+ | ! Header 3 | ||
+ | |- | ||
+ | | cell 1 | ||
+ | | cell 2 | ||
+ | | cell 3 | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Table with a Label== | ||
+ | |||
+ | <pre> | ||
+ | {| | ||
+ | |+ Table heading | ||
+ | ! 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 | ||
+ | |} | ||
+ | </pre> | ||
+ | |||
+ | '''Would look like this...''' | ||
+ | |||
+ | |||
+ | {| | ||
+ | |+ Table heading | ||
+ | ! 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 | ||
+ | |} | ||
+ | |||
− | |||
− | |||
− | |||
{{Help navbox}} | {{Help navbox}} |
Revision as of 01:57, 24 February 2010
Table syntax is fairly logical and experience of html is not needed in order to make tables.
DiabloWiki tables are an arrangement of columns and rows used to organise and position data. Tables are useful, and there are many ways and tricks that can be used. This page gives you information about syntax to build them.
If you want to create a navigation menu (as you see at the foot of this page) or an information box (as on the class pages) then there will probably be a template already made.
Basic Table
{| |- | 1 | 2 | 3 |- | a | b | c |}
Would look like this...
1 | 2 | 3 |
a | b | c |
Basic Table With Headers
{| |- ! Header 1 ! Header 2 ! Header 3 |- | cell 1 | cell 2 | cell 3 |}
Would like like this...
Header 1 | Header 2 | Header 3 |
---|---|---|
cell 1 | cell 2 | cell 3 |
Table with a Label
{| |+ Table heading ! 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 |}
Would look like this...
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 |
Wiki Help Index [e] | ||
---|---|---|
• Help Contents • Community Portal |
• Wiki Tools • Article History |
• Glossary • Articles |