User:PsychoNerd054/BasicTutorial
Headers and Table of Contents
A page can and should be separated into sections. This can be achieved by using the header syntax. After at least four sections are added to a page, a table of contents will pop up at the start of that page.
=Header 1= ==Header 2== ===Header 3=== ====Header 4==== =====Header 5===== ======Header 6======
NOTE: Do not put single equal signs around a header name, as this will end up creating a header with text that is the same size as the article's name. Also try to avoid going for headers beyond "header 4" wherever possible.
Magic Words
The table below is a cheatsheet of all of the different magic words you may use when creating an article.
__TOC__ - Can be placed anywhere on a page to position the table of contents onto an exact portion of the page
__FORCETOC__ - Serves a similar function to "__TOC__", where the position of the table of contents is determined. Can be used when you want a table of contents on your page, regardless of the number of sections it contains
__NOTOC__ - Used to prevent a table of contents from being created on a page, regardless of how many sections it contains
Text Formatting
Links
Tables
Table element | Wikitext | Required | Usage notes |
---|---|---|---|
Table start | {| | Required | |
Table caption | |+ | Optional | Only between table start and first table row. |
Table row | |- | Optional | Can be omitted before the first row. |
Table header cell | ! | Optional | Consecutive table header cells may be added on same line separated by double marks (!! ); or start on new lines, each with its own single mark (! ).
|
Table data cell | | or || | Optional | Consecutive table data cells may be added on same line separated by double marks (|| ) or start on new lines, each with its own single mark (| ). This mark is also used to separate HTML attributes from cell and caption contents.
|
Table end | |} | Required |