Community Central
Community Central
(I already discussed this see http://anonminati.wikia.com/wiki/Thread:190#3)
Tag: Help
Tag: Help
(27 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 
<jwplayer media-id="VFN3fd63" />
 
<jwplayer media-id="VFN3fd63" />
{{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.
+
{{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:
  +
* On [[Help:UCP|UCP]] wikis:
* [[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 "Visual Editor" in the top middle, above the edit bar, which will open a menu where you can select "source editing".
  +
** Before editing, you can go right to source mode by clicking the arrow next to the edit button, and clicking "Edit source" from the drop-down menu.
  +
  +
* On legacy wikis:{{legacy}}
 
** [[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'.
  +
  +
On both platforms, you can also choose your preferred editor in [[Help:Preferences|preferences]], and it will open by default when you click the edit button.
 
<jwplayer media-id="yDDdCwdm" />
 
<jwplayer media-id="yDDdCwdm" />
 
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 12: Line 19:
 
== Text formatting ==
 
== Text formatting ==
 
{| class="article-table" style="width:100%; font-size:90%;"
 
{| class="article-table" style="width:100%; font-size:90%;"
|+Inline wikitext: code you can use anywhere in the code
+
|+Inline wikitext: code you can use anywhere in the page
 
|-
 
|-
 
! style="width:25%;" | Description
 
! style="width:25%;" | Description
Line 18: Line 25:
 
! style="width:30%;" | You get
 
! style="width:30%;" | You get
 
|-
 
|-
|Italicise text
+
|Italicize text
 
|<code><nowiki>''italic''</nowiki></code>
 
|<code><nowiki>''italic''</nowiki></code>
 
|''italic''
 
|''italic''
Line 29: Line 36:
 
|<code><nowiki>'''''bold & italic'''''</nowiki></code>
 
|<code><nowiki>'''''bold & italic'''''</nowiki></code>
 
|'''''bold & italic'''''
 
|'''''bold & italic'''''
  +
|-
  +
|Strikethrough
  +
|<code><nowiki><s>strikethrough</s></nowiki></code>
  +
|<s>strikethrough</s>
 
|-
 
|-
 
||Internal link<br />(within a wiki)
 
||Internal link<br />(within a wiki)
Line 37: Line 48:
 
|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 on talk pages (username only)
  +
|<code><nowiki>~~~</nowiki></code>
  +
|[[Special:Mypage|Your username]]
 
|-
 
|-
 
|Sign your posts <br />on talk pages
 
|Sign your posts <br />on talk pages
Line 57: Line 72:
 
|-
 
|-
 
|Display wikitext code as typed
 
|Display wikitext code as typed
|<code><nowiki><nowiki>[[This is not a link]]</nowiki></nowiki></code>
+
|<code><nowiki>&lt;nowiki&gt;[[This is not a link]]</nowiki></nowiki></code>
 
|<nowiki>[[This is not a link]]</nowiki>
 
|<nowiki>[[This is not a link]]</nowiki>
 
|-
 
|-
Line 69: Line 84:
 
|-
 
|-
 
|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>
  +
  +
([[mw:Help talk:Formatting#Level 1|Skip level 1]]; it's used for the page name.)
 
|
 
|
<code><nowiki>==Level 2==</nowiki></code><br />
+
<code><nowiki>== Level 2 ==</nowiki></code><br />
<code><nowiki>===Level 3===</nowiki></code><br />
+
<code><nowiki>=== Level 3 ===</nowiki></code><br />
<code><nowiki>====Level 4====</nowiki></code><br />
+
<code><nowiki>==== Level 4 ====</nowiki></code><br />
<code><nowiki>=====Level 5=====</nowiki></code><br />
+
<code><nowiki>===== Level 5 =====</nowiki></code><br />
<code><nowiki>======Level 6======</nowiki></code>
+
<code><nowiki>====== Level 6 ======</nowiki></code>
 
|
 
|
 
<div style="font-size: 1.5em; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; border-bottom: 1px solid #AAAAAA;">Level 2</div>
 
<div style="font-size: 1.5em; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; border-bottom: 1px solid #AAAAAA;">Level 2</div>
Line 107: Line 124:
 
|Numbered list
 
|Numbered list
 
|
 
|
<code>#One</code><br />
+
<code># One</code><br />
<code>#Two</code><br />
+
<code># Two</code><br />
<code>##Two point one</code><br />
+
<code>## Two point one</code><br />
<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)
+
<code>" "[[Help:Color|Color]] Text</code> (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
 
|
 
|
<tt><nowiki><pre>[[Color]] Text</pre></nowiki></tt>
+
<code><nowiki><pre>[[Color]] Text</pre></nowiki></code>
 
|
 
|
 
<pre>[[Color]] Text</pre>
 
<pre>[[Color]] Text</pre>
Line 141: Line 172:
 
|[[File:SeaOtter.png]]
 
|[[File:SeaOtter.png]]
 
|-
 
|-
  +
|Sized image<br /><small>(width&nbsp;change&nbsp;with aspect&nbsp;ratio&nbsp;maintained)</small>
|Sized image
 
 
|<code><nowiki>[[File:SeaOtter.png|100px]]</nowiki></code>
 
|<code><nowiki>[[File:SeaOtter.png|100px]]</nowiki></code>
 
|[[File:SeaOtter.png|100px]]
 
|[[File:SeaOtter.png|100px]]
Line 180: Line 211:
 
== See also ==
 
== See also ==
 
* [[Help:Editing]]
 
* [[Help:Editing]]
* MediaWiki.org's thorough reference on [[mw:Help:Images|image formatting]]
+
* MediaWiki's thorough reference on [[mw:Help:Images|image formatting]]
 
* For print cheatsheets, see the [[m:Help:Reference card|MediaWiki reference card]] or the [[m:Cheatsheet|poster-size cheatsheet]] (available in many languages).
 
* For print cheatsheets, see the [[m:Help:Reference card|MediaWiki reference card]] or the [[m:Cheatsheet|poster-size cheatsheet]] (available in many languages).
   
Line 198: Line 229:
 
[[pt:Ajuda:Wikitexto]]
 
[[pt:Ajuda:Wikitexto]]
 
[[ru:Справка:Викитекст]]
 
[[ru:Справка:Викитекст]]
  +
[[tr:Yardım:Vikimetin]]
 
[[uk:Довідка:Вікітекст]]
 
[[uk:Довідка:Вікітекст]]
[[zh:Help:Wiki文本]]
+
[[zh:Help:wiki標記式語言]]
 
[[Category:Help]]
 
[[Category:Editing]]
 
[[Category:Editing]]
 
[[Category:Source editing]]
 
[[Category:Source editing]]
[[Category:Help]]
 
 
[[Category:Formatting]]
 
[[Category:Formatting]]
 
[[Category:Tools & shortcuts]]
 
[[Category:Tools & shortcuts]]

Revision as of 07:38, 24 September 2020

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:

  • On UCP wikis:
    • VisualEditor: click "Visual Editor" in the top middle, above the edit bar, which will open a menu where you can select "source editing".
    • Before editing, you can go right to source mode by clicking the arrow next to the edit button, and clicking "Edit source" from the drop-down menu.
  • On legacy wikis:Template:Legacy
    • 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'.

On both platforms, you can also choose your preferred editor in preferences, and it will open by default when you click the edit button.

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 page
Description You type You get
Italicize text ''italic'' italic
Bold text '''bold''' bold
Bold and italic '''''bold & italic''''' bold & italic
Strikethrough <s>strikethrough</s> strikethrough
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 (username only) ~~~ Your username
Sign your posts
on talk pages
~~~~ (4 tildes) Your username 08:34,

19 April 2024 (UTC)

Insert the current date and time (UTC). Generally only used on talk pages. ~~~~~ (5 tildes) 08:34, 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.

(Skip level 1; it's used for the page name.)

== 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
(width change with aspect ratio maintained)
[[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