Community Central
Community Central
(- stray horizontal line)
(Mixed list : simplified sample from wp:Help:List#List_basics.)
Tag: Help
(17 intermediate revisions by 13 users not shown)
Line 1: Line 1:
  +
<jwplayer media-id="VFN3fd63" />
{{Uni-vid|Wikia University - Introduction to Wikitext}}
 
{{tocright}}'''Wikitext''' is the main markup language used to format content on FANDOM. It can be used to add photos, tables, bold styles, links, and other many other visual changes.
+
{{tocright}}'''Wikitext''' is the main markup language used to format content on Fandom. It can be used to add photos, tables, bold styles, links, and many other visual changes.
   
It's not necessary to know wikitext in order to edit a page: you can use the [[Help:VisualEditor|new VisualEditor]], or visual mode in the [[Help:Classic editor|classic editor]], to avoid it. However, users who learn it may appreciate the additional control they have over page content.
+
It's not necessary to know wikitext in order to edit a page: you can use the [[Help:VisualEditor|VisualEditor]], or visual mode in the [[Help:Classic editor|classic editor]], to avoid it. However, users who learn it may appreciate the additional control they have over page content.
   
 
Wikitext can be used via '[[Help:Source edit mode|source mode]]' in either editor. To access an article's wikitext:
 
Wikitext can be used via '[[Help:Source edit mode|source mode]]' in either editor. To access an article's wikitext:
 
* [[Help:Classic editor|Classic editor]]: click the 'Source' tab at the top right of the edit area.
 
* [[Help:Classic editor|Classic editor]]: click the 'Source' tab at the top right of the edit area.
 
* [[Help:VisualEditor|VisualEditor]]: click the menu button towards the right side of the toolbar, and choose 'Source Editor'.
 
* [[Help:VisualEditor|VisualEditor]]: click the menu button towards the right side of the toolbar, and choose 'Source Editor'.
  +
<jwplayer media-id="yDDdCwdm" />
{{Uni-vid|Wikia University - How to Use Wikitext}}
 
 
Below is an outline of basic wikitext that you can use while [[Help:Editing|editing]]. Many of the options listed below have shortcut buttons in the editor toolbars.
 
Below is an outline of basic wikitext that you can use while [[Help:Editing|editing]]. Many of the options listed below have shortcut buttons in the editor toolbars.
   
Line 37: Line 37:
 
|Redirect to another page
 
|Redirect to another page
 
|<code><nowiki>#REDIRECT [[Help:Contents]]</nowiki></code>
 
|<code><nowiki>#REDIRECT [[Help:Contents]]</nowiki></code>
|http://vignette2.wikia.nocookie.net/central/images/b/b5/Redirectltr.png/revision/latest [[Help:Contents]]
+
|https://vignette2.wikia.nocookie.net/central/images/b/b5/Redirectltr.png/revision/latest [[Help:Contents]]
 
|-
 
|-
 
|External link<br />(to other websites)
 
|External link<br />(to other websites)
|<code><nowiki>[http://www.example.org]</nowiki></code><br />
+
|<code><nowiki>[https://www.example.org]</nowiki></code><br />
<code><nowiki>[http://www.example.org displayed text]</nowiki></code><br />
+
<code><nowiki>[https://www.example.org displayed text]</nowiki></code><br />
<code><nowiki>http://www.example.org</nowiki></code>
+
<code><nowiki>https://www.example.org</nowiki></code>
|[http://www.example.org]<br />
+
|[https://www.example.org]<br />
[http://www.example.org displayed text]<br />
+
[https://www.example.org displayed text]<br />
http://www.example.org
+
https://www.example.org
 
|-
 
|-
 
|Sign your posts <br />on talk pages
 
|Sign your posts <br />on talk pages
Line 69: Line 69:
 
|-
 
|-
 
|Headings<br />
 
|Headings<br />
<span style="font-size:80%;">''A Table of Contents will automatically be generated when four headings are added to an article.''</span>
+
<span style="font-size:80%;">''A [[Help:Table_of_contents|Table of Contents]] will automatically be generated when four headings are added to an article.''</span>
 
|
 
|
 
<code><nowiki>==Level 2==</nowiki></code><br />
 
<code><nowiki>==Level 2==</nowiki></code><br />
Line 82: Line 82:
 
<div style="font-size: 1.05em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 5</div>
 
<div style="font-size: 1.05em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 5</div>
 
<div style="font-size: 0.95em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 6</div>
 
<div style="font-size: 0.95em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 6</div>
  +
|-
  +
|Indented paragraph or line
  +
|
  +
<code>No indent</code><br />
  +
<code>: One indent</code><br />
  +
<code>:: Two indents</code><br />
  +
|
  +
No indent
  +
: One indent
  +
:: Two indents
 
|-
 
|-
 
|Bulleted list
 
|Bulleted list
Line 102: Line 112:
 
<code>#Three</code>
 
<code>#Three</code>
 
|
 
|
#One
+
# One
#Two
+
# Two
##Two point one
+
## Two point one
#Three
+
# Three
  +
|-
  +
|Mixed list
  +
|
  +
<code>* bulleted item</code><br />
  +
<code>*# numbered item 1</code><br />
  +
<code>*#: indented item a</code><br />
  +
<code>*#: indented item b</code><br />
  +
<code>*# numbered item 2</code>
  +
|
  +
* bulleted item
  +
*# numbered item 1
  +
*#: indented item a
  +
*#: indented item b
  +
*# numbered item 2
 
|-
 
|-
 
|Preformatted text '''with''' working links
 
|Preformatted text '''with''' working links
 
|
 
|
<tt>_[[Color]] Text</tt> (note space at start)
+
<tt>" "[[Help:Color|Color]] Text</tt> (note space at start, remove quotation marks)
 
|
 
|
[[Color]] Text
+
[[Help:Color|Color]] Text
 
|-
 
|-
 
|Preformatted text that shows underlying wikitext
 
|Preformatted text that shows underlying wikitext

Revision as of 02:18, 13 October 2019

Wikitext is the main markup language used to format content on Fandom. It can be used to add photos, tables, bold styles, links, and many other visual changes.

It's not necessary to know wikitext in order to edit a page: you can use the VisualEditor, or visual mode in the classic editor, to avoid it. However, users who learn it may appreciate the additional control they have over page content.

Wikitext can be used via 'source mode' in either editor. To access an article's wikitext:

  • Classic editor: click the 'Source' tab at the top right of the edit area.
  • VisualEditor: click the menu button towards the right side of the toolbar, and choose 'Source Editor'.

Below is an outline of basic wikitext that you can use while editing. Many of the options listed below have shortcut buttons in the editor toolbars.

Text formatting

Inline wikitext: code you can use anywhere in the code
Description You type You get
Italicise text ''italic'' italic
Bold text '''bold''' bold
Bold and italic '''''bold & italic''''' bold & italic
Internal link
(within a wiki)
[[Help:Contents]]

[[Help:Contents|Displayed text]]

Help:Contents
Displayed text
Redirect to another page #REDIRECT [[Help:Contents]] latest Help:Contents
External link
(to other websites)
[https://www.example.org]

[https://www.example.org displayed text]
https://www.example.org

[1]

displayed text
https://www.example.org

Sign your posts
on talk pages
~~~~ (4 tildes) Your username 11:19,

19 April 2024 (UTC)

Insert the current date and time (UTC). Generally only used on talk pages. ~~~~~ (5 tildes) 11:19, 19 April 2024 (UTC)
Display wikitext code as typed <nowiki>[[This is not a link]]</nowiki> [[This is not a link]]
Code that works only at the start of a line
Description You type You get
Headings

A Table of Contents will automatically be generated when four headings are added to an article.

==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======

Level 2
Level 3
Level 4
Level 5
Level 6
Indented paragraph or line

No indent
: One indent
:: Two indents

No indent

One indent
Two indents
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

#One
#Two
##Two point one
#Three

  1. One
  2. Two
    1. Two point one
  3. Three
Mixed list

* bulleted item
*# numbered item 1
*#: indented item a
*#: indented item b
*# numbered item 2

  • bulleted item
    1. numbered item 1
      indented item a
      indented item b
    2. numbered item 2
Preformatted text with working links

" "Color Text (note space at start, remove quotation marks)

Color Text
Preformatted text that shows underlying wikitext

<pre>[[Color]] Text</pre>

[[Color]] Text

Image formatting

Description You type You get
Image [[File:SeaOtter.png]] SeaOtter
Sized image [[File:SeaOtter.png|100px]] SeaOtter
Thumbnail image [[File:SeaOtter.png|thumb|Caption text]]
SeaOtter

Caption text

Aligned image

[[File:SeaOtter.png|thumb|100px|left]] [[File:SeaOtter.png|thumb|100px|center]] [[File:SeaOtter.png|thumb|100px|right]]

SeaOtter
SeaOtter
SeaOtter
Linked image [[File:SeaOtter.png|link=Help:Contents]] SeaOtter
Changed alt text [[File:SeaOtter.png|alt=A sea otter|]] A sea otter

Further wikitext examples

For more complex content that is sometimes more easily managed with wikitext editing, see:

See also

Further help and feedback