m (Changed current Turkish link and other minor fixes.) Tag: Help |
No edit summary Tags: Source edit Help |
||
(41 intermediate revisions by 19 users not shown) | |||
Line 1: | Line 1: | ||
− | <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|VisualEditor]] |
+ | It's not necessary to know wikitext in order to edit a page: you can use the [[Help:VisualEditor|VisualEditor]] to avoid it. However, users who learn it may appreciate the additional control they have over page content. |
+ | |||
⚫ | |||
+ | * [[Help:VisualEditor|VisualEditor]]: click "{{int:visualeditor-ca-ve-edit}}" in the top middle, above the edit bar, which will open a menu where you can select "{{int:visualeditor-mweditmodesource-tool-current}}". |
||
+ | * Before editing, you can go right to source mode by clicking the arrow next to the edit button, and clicking "{{int:visualeditor-ca-editsource-section}}" from the drop-down menu. |
||
+ | * When editing a section of an article, click "{{int:visualeditor-ca-editsource-section}}" to edit that section in source. |
||
+ | |||
+ | 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. |
||
⚫ | |||
− | * [[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'. |
||
− | <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. |
||
== 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 |
+ | |+Inline wikitext: code you can use anywhere in the page |
|- |
|- |
||
! style="width:25%;" | Description |
! style="width:25%;" | Description |
||
Line 25: | Line 27: | ||
|<code><nowiki>'''bold'''</nowiki></code> |
|<code><nowiki>'''bold'''</nowiki></code> |
||
|'''bold''' |
|'''bold''' |
||
+ | |- |
||
+ | |Underlined text |
||
+ | |<code><nowiki><u>underline</u></nowiki></code> |
||
+ | |<u>underline</u> |
||
|- |
|- |
||
|Bold and italic |
|Bold and italic |
||
|<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> |
||
+ | |- |
||
+ | |Superscript |
||
+ | |<code><nowiki>1<sup>st</sup></nowiki></code> |
||
+ | |1<sup>st</sup> |
||
+ | |- |
||
+ | |Subscript |
||
+ | |<code><nowiki>O<sub>2</sub></nowiki></code> |
||
+ | |O<sub>2</sub> |
||
+ | |- |
||
+ | |Small Text |
||
+ | |<code><nowiki>small <small>text</small></nowiki></code> |
||
+ | |small <small>text</small> |
||
+ | |- |
||
+ | |Big Text |
||
+ | |<code><nowiki>big <big>text</big></nowiki></code> |
||
+ | |big <big>text</big> |
||
+ | |- |
||
+ | |Blockquote text |
||
+ | |<code><nowiki><blockquote>It is a blockquote</blockquote></nowiki> |
||
+ | |<blockquote>It is a blockquote</blockquote> |
||
|- |
|- |
||
||Internal link<br />(within a wiki) |
||Internal link<br />(within a wiki) |
||
Line 34: | Line 64: | ||
<code><nowiki>[[Help:Contents|Displayed text]]</nowiki></code> |
<code><nowiki>[[Help:Contents|Displayed text]]</nowiki></code> |
||
|[[Help:Contents]]<br />[[Help:Contents|Displayed text]] |
|[[Help:Contents]]<br />[[Help:Contents|Displayed text]] |
||
+ | |- |
||
+ | |Colored Link |
||
+ | |<code><nowiki>[[Help:Contents|<span style="color:orange;">Help:Contents</span>]]</nowiki></code> |
||
+ | |[[Help:Contents|<span style="color:orange;">Help:Contents</span>]] |
||
|- |
|- |
||
|Redirect to another page |
|Redirect to another page |
||
Line 46: | Line 80: | ||
[https://www.example.org displayed text]<br /> |
[https://www.example.org displayed text]<br /> |
||
https://www.example.org |
https://www.example.org |
||
+ | |- |
||
+ | |Cite link |
||
+ | |<code><nowiki><cite>https://www.fandom.com/</cite></nowiki></code> |
||
+ | |<cite>https://www.fandom.com/</cite> |
||
+ | |- |
||
+ | |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 99: | ||
|- |
|- |
||
|Display wikitext code as typed |
|Display wikitext code as typed |
||
− | |<code><nowiki> |
+ | |<code><nowiki><nowiki>[[This is not a link]]</nowiki></nowiki></code> |
|<nowiki>[[This is not a link]]</nowiki> |
|<nowiki>[[This is not a link]]</nowiki> |
||
|- |
|- |
||
+ | |Display text as source code |
||
+ | |<nowiki><code>Source Code</code></nowiki> |
||
+ | |<code>Source Code</code> |
||
|} |
|} |
||
{| class="article-table" style="width:100%; font-size:90%;" |
{| class="article-table" style="width:100%; font-size:90%;" |
||
Line 109: | Line 154: | ||
|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 |
||
Line 135: | Line 180: | ||
|Preformatted text '''with''' working links |
|Preformatted text '''with''' working links |
||
| |
| |
||
− | < |
+ | <code><nowiki>" "[[Help:Color|Color]] Text</nowiki></code> (note space at start, remove quotation marks) |
| |
| |
||
[[Help:Color|Color]] Text |
[[Help:Color|Color]] Text |
||
Line 141: | Line 186: | ||
|Preformatted text that shows underlying wikitext |
|Preformatted text that shows underlying wikitext |
||
| |
| |
||
− | < |
+ | <code><nowiki><pre>[[Color]] Text</pre></nowiki></code> |
| |
| |
||
<pre>[[Color]] Text</pre> |
<pre>[[Color]] Text</pre> |
||
Line 157: | Line 202: | ||
|[[File:SeaOtter.png]] |
|[[File:SeaOtter.png]] |
||
|- |
|- |
||
− | |Sized image<br/><small>(width change with aspect ratio maintained)</small> |
+ | |Sized image<br /><small>(width change with aspect ratio maintained)</small> |
|<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 225: | ||
|- |
|- |
||
|Changed alt text |
|Changed alt text |
||
− | |<code><nowiki>[[File:SeaOtter.png|alt=A sea otter |
+ | |<code><nowiki>[[File:SeaOtter.png|alt=A sea otter]]</nowiki></code> |
− | |[[File:SeaOtter.png|alt=A sea otter |
+ | |[[File:SeaOtter.png|alt=A sea otter]] |
+ | |- |
||
+ | |Media Image |
||
+ | |<code><nowiki>[[Media:SeaOtter.png]]</nowiki></code> |
||
+ | |[[Media:SeaOtter.png]] |
||
|} |
|} |
||
Line 196: | Line 245: | ||
== See also == |
== See also == |
||
* [[Help:Editing]] |
* [[Help:Editing]] |
||
− | * MediaWiki |
+ | * 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 203: | Line 252: | ||
[[ar:مساعدة:نص الويكي]] |
[[ar:مساعدة:نص الويكي]] |
||
+ | [[ca:Ajuda:Wikitext]] |
||
[[de:Hilfe:Wikitext]] |
[[de:Hilfe:Wikitext]] |
||
[[es:Ayuda:Wikitexto]] |
[[es:Ayuda:Wikitexto]] |
Revision as of 19:16, 12 July 2021
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 to avoid it. However, users who learn it may appreciate the additional control they have over page content.
Wikitext can be used via source editor in either editor. To access an article's wikitext:
- VisualEditor: click "⧼visualeditor-ca-ve-edit⧽" 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.
- When editing a section of an article, click "edit source" to edit that section in source.
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
Description | You type | You get |
---|---|---|
Italicize text | ''italic''
|
italic |
Bold text | '''bold'''
|
bold |
Underlined text | <u>underline</u>
|
underline |
Bold and italic | '''''bold & italic'''''
|
bold & italic |
Strikethrough | <s>strikethrough</s>
|
|
Superscript | 1<sup>st</sup>
|
1st |
Subscript | O<sub>2</sub>
|
O2 |
Small Text | small <small>text</small>
|
small text |
Big Text | big <big>text</big>
|
big text |
Blockquote text | <blockquote>It is a blockquote</blockquote>
|
|
Internal link (within a wiki) |
[[Help:Contents]]
|
Help:Contents Displayed text |
Colored Link | [[Help:Contents|<span style="color:orange;">Help:Contents</span>]]
|
Help:Contents |
Redirect to another page | #REDIRECT [[Help:Contents]]
|
Help:Contents |
External link (to other websites) |
[https://www.example.org]
|
[1] |
Cite link | <cite>https://www.fandom.com/</cite>
|
https://www.fandom.com/ |
Sign your posts on talk pages (username only) | ~~~
|
Your username |
Sign your posts on talk pages |
~~~~ (4 tildes)
|
Your username 02:57, 19 April 2024 (UTC) |
Insert the current date and time (UTC). Generally only used on talk pages. | ~~~~~ (5 tildes)
|
02:57, 19 April 2024 (UTC) |
Display wikitext code as typed | <nowiki>[[This is not a link]]</nowiki>
|
[[This is not a link]] |
Display text as source code | <code>Source Code</code> | Source Code
|
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
|
Indented paragraph or line |
|
No indent
|
Bulleted list |
|
|
Numbered list |
|
|
Mixed list |
|
|
Preformatted text with working links |
|
Color Text |
Preformatted text that shows underlying wikitext |
|
[[Color]] Text |
Image formatting
Description | You type | You get |
---|---|---|
Image | [[File:SeaOtter.png]]
|
|
Sized image (width change with aspect ratio maintained) |
[[File:SeaOtter.png|100px]]
|
|
Thumbnail image | [[File:SeaOtter.png|thumb|Caption text]]
|
|
Aligned image |
|
|
Linked image | [[File:SeaOtter.png|link=Help:Contents]]
|
|
Changed alt text | [[File:SeaOtter.png|alt=A sea otter]]
|
|
Media Image | [[Media:SeaOtter.png]]
|
Media:SeaOtter.png |
Further wikitext examples
For more complex content that is sometimes more easily managed with wikitext editing, see:
- Help:Galleries, Slideshows, and Sliders/wikitext
- Help:Main page column tags
- Help:Templates
- Help:Signature
- Help:Tables
- Help:Magic words
See also
- Help:Editing
- MediaWiki's thorough reference on image formatting
- For print cheatsheets, see the MediaWiki reference card or the poster-size cheatsheet (available in many languages).
Further help and feedback
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article