Difference between revisions of "User:PsychoNerd054/BasicTutorial"

From CWCki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{quoteboxgreen|[[User:PsychoNerd054/ArticleIdeas|Back To Article Ideas]]}}
[[User:PsychoNerd054/ArticleIdeas|{{Button|Back To Article Ideas|color=blue}}]]


==Headers and Table of Contents==
==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.
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.
<pre>=Header 1=
==Header 2==
===Header 3===
====Header 4====
=====Header 5=====
======Header 6======</pre>
'''''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===
===Magic Words===
Line 10: Line 19:


'''<nowiki>__TOC__</nowiki>''' - Can be placed anywhere on a page to position the table of contents onto an exact portion of the page<br>
'''<nowiki>__TOC__</nowiki>''' - Can be placed anywhere on a page to position the table of contents onto an exact portion of the page<br>
'''<nowiki>__FORCETOC__</nowiki>''' - Can be used when you want a table of contents on your page, regardless of the number of sections it contains<br>
'''<nowiki>__FORCETOC__</nowiki>''' - Serves a similar function to <nowiki>"__TOC__"</nowiki>, 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<br>
'''<nowiki>__NOTOC__</nowiki>''' - Used to prevent a table of contents from being created on a page, regardless of how many sections it contains<br>
'''<nowiki>__NOTOC__</nowiki>''' - Used to prevent a table of contents from being created on a page, regardless of how many sections it contains<br>


Line 16: Line 25:


==Links==
==Links==
==Tables==
{| class="wikitable"
|-
! scope="col" | Table element
! scope="col" | Wikitext
! scope="col" | Required
! scope="col" | Usage notes
|-
! scope="row" | Table start
| {{kbd|<nowiki>{|</nowiki>}}
| Required
|
|-
! scope="row" | Table caption
| {{kbd|<nowiki>|+</nowiki>}}
| Optional
| Only between table start and first table row.
|-
! scope="row" | Table row
| {{kbd|<nowiki>|-</nowiki>}}
| Optional
| Can be omitted before the first row.
|-
! scope="row" | Table header cell
| {{kbd|<nowiki>!</nowiki>}}
| Optional
| Consecutive table header cells may be added on same line separated by double marks (<code>!!</code>); or start on new lines, each with its own single mark (<code>!</code>).
|-
! scope="row" | Table data cell
| {{nowrap|{{kbd|<nowiki>|</nowiki>}} or {{kbd|<nowiki>||</nowiki>}}}}
| Optional
| Consecutive table data cells may be added on same line separated by double marks (<code><nowiki>||</nowiki></code>) or start on new lines, each with its own single mark (<code><nowiki>|</nowiki></code>). This mark is also used to separate [[HTML attribute]]s from cell and caption contents.
|-
! scope="row" | Table end
| {{kbd|<nowiki>|}</nowiki>}}
| Required
|
|}
==Media==

Latest revision as of 11:14, 14 July 2022

Back To Article Ideas

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

Media