Help:Wikitext: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
community>Annabeth and Percy
(Undo revision 2131860 by 120.22.29.121 (wall))
community>Owen47
(The main page of the summary of the page)
Line 1: Line 1:
{{tocright}}
{{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.
'''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.'''


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|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.'''


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'.'''


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%;"
|-
|-
! style="width:25%;" | Description
! style="width:25%;" | '''Description'''
! style="width:45%;" | You type
! style="width:45%;" | '''You type'''
! style="width:30%;" | You get
! style="width:30%;" | '''You get'''
|-
|-
|Italicise text
|'''Italicise text'''
|<code><nowiki>''italic''</nowiki></code>
|<code>'''<nowiki>''italic''</nowiki>'''</code>
|''italic''
|'''''italic'''''
|-
|-
|Bold text
|'''Bold text'''
|<code><nowiki>'''bold'''</nowiki></code>
|<code>'''<nowiki>'''bold'''</nowiki>'''</code>
|'''bold'''
|'''bold'''
|-
|-
|Bold and italic
|'''Bold and italic'''
|<code><nowiki>'''''bold & italic'''''</nowiki></code>
|<code>'''<nowiki>'''''bold & italic'''''</nowiki>'''</code>
|'''''bold & italic'''''
|'''''bold & italic'''''
|-
|-
||Internal link<br />(within a wiki)
||'''Internal link<br />(within a wiki)'''
|<code><nowiki>[[Help:Contents]]</nowiki></code><br />
|<code>'''<nowiki>[[Help:Contents]]</nowiki>'''</code>'''<br />'''
<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|'''Help:Contents''']]'''<br />[[Help:Contents|Displayed text]]'''
|-
|-
|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]]
|[http://vignette2.wikia.nocookie.net/central/images/b/b5/Redirectltr.png/revision/latest '''http://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>[http://www.example.org]</nowiki>'''</code>'''<br />'''
<code><nowiki>[http://www.example.org displayed text]</nowiki></code><br />
<code>'''<nowiki>[http://www.example.org displayed text]</nowiki>'''</code>'''<br />
<code><nowiki>http://www.example.org</nowiki></code>
<code><nowiki>http://www.example.org</nowiki></code>'''
|[http://www.example.org]<br />
|'''[http://www.example.org]<br />'''
[http://www.example.org displayed text]<br />
[http://www.example.org '''displayed text''']'''<br />
http://www.example.org
http://www.example.org'''
|-
|-
|Sign your posts <br />on talk pages
|'''Sign your posts <br />on talk pages'''
|<code><nowiki>~~~~</nowiki></code>
|<code>'''<nowiki>~~~~</nowiki>'''</code>
|[[Special:Mypage|Your username]] {{CURRENTTIME}}, <br />
|[[Special:Mypage|'''Your username''']]''' {{CURRENTTIME}}, <br />'''
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
'''{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)'''
|-
|-
! colspan="3" | ''The following work only when used at the start of a line of code''
! colspan="3" | '''''The following work only when used at the start of a line of code'''''
|-
|-
|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 Table of Contents will automatically be generated when four headings are added to an article.'''''</span>
|
|
<code><nowiki>==Level 2==</nowiki></code><br />
<code>'''==Level 2=='''</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>
<div style="font-size: 1.17em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 3</div>
<div style="font-size: 1.17em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">'''Level 3'''</div>
<div style="font-size: 1.1em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">Level 4</div>
<div style="font-size: 1.1em; margin-top: 0.3em; line-height: 1.6; padding-top: 0.5em;">'''Level 4'''</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: 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>
|-
|-
|Bulleted list
|'''Bulleted 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'''
|-
|-
|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'''
|}
|}


==Image formatting==
=='''Image formatting'''==
{| class="article-table" style="width:100%; font-size:90%;"
{| class="article-table" style="width:100%; font-size:90%;"
|-
|-
! style="width:25%;" | Description
! style="width:25%;" | '''Description'''
! style="width:50%;" | You type
! style="width:50%;" | '''You type'''
! style="width:25%;" | You get
! style="width:25%;" | '''You get'''
|-
|-
|Image
|'''Image'''
|<code><nowiki>[[File:SeaOtter.png]]</nowiki></code>
|<code>'''<nowiki>[[File:SeaOtter.png]]</nowiki>'''</code>
|[[File:SeaOtter.png]]
|'''[[File:SeaOtter.png]]'''
|-
|-
|Sized image
|'''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]]'''
|-
|-
|Thumbnail image
|'''Thumbnail image'''
|<code><nowiki>[[File:SeaOtter.png|thumb|Caption text]]</nowiki></code>
|<code>'''<nowiki>[[File:SeaOtter.png|thumb|Caption text]]</nowiki>'''</code>
|[[File:SeaOtter.png|thumb|Caption text]]
|[[File:SeaOtter.png|thumb|Caption text]]
|-
|-
|Aligned image
|'''Aligned image'''
|
|
<code><nowiki>[[File:SeaOtter.png|thumb|100px|left]]</nowiki></code>
<code>'''<nowiki>[[File:SeaOtter.png|thumb|100px|left]]</nowiki>'''</code>'''
<code><nowiki>[[File:SeaOtter.png|thumb|100px|center]]</nowiki></code>
<code><nowiki>[[File:SeaOtter.png|thumb|100px|center]]</nowiki></code>
<code><nowiki>[[File:SeaOtter.png|thumb|100px|right]]</nowiki></code>
<code><nowiki>[[File:SeaOtter.png|thumb|100px|right]]</nowiki></code>'''
|
|
[[File:SeaOtter.png|thumb|100px|left]]
[[File:SeaOtter.png|thumb|100px|left]]
Line 122: Line 122:
[[File:SeaOtter.png|thumb|100px|right]]
[[File:SeaOtter.png|thumb|100px|right]]
|-
|-
|Linked image
|'''Linked image'''
|<code><nowiki>[[File:SeaOtter.png|link=Help:Contents]]</nowiki></code>
|<code>'''<nowiki>[[File:SeaOtter.png|link=Help:Contents]]</nowiki>'''</code>
|[[File:SeaOtter.png|link=Help:Contents]]
|'''[[File:SeaOtter.png|link=Help:Contents]]'''
|}
|}


==Further wikitext examples==
=='''Further wikitext examples'''==
For more complex content that is sometimes more easily managed with wikitext editing, see:
'''For more complex content that is sometimes more easily managed with wikitext editing, see:'''


* [[Help:Wikitext/more examples]]
* [[Help:Wikitext/more examples|'''Help:Wikitext/more examples''']]
* [[Help:Wikitext/link examples]]
* [[Help:Wikitext/link examples|'''Help:Wikitext/link examples''']]
* [[Help:Wikitext/table examples]]
* [[Help:Wikitext/table examples|'''Help:Wikitext/table examples''']]
* [[Help:Wikitext/tag examples]]
* [[Help:Wikitext/tag examples|'''Help:Wikitext/tag examples''']]
* [[Help:Galleries, Slideshows, and Sliders/wikitext]]
* [[Help:Galleries, Slideshows, and Sliders/wikitext|'''Help:Galleries, Slideshows, and Sliders/wikitext''']]
* [[Help:Main page column tags]]
* [[Help:Main page column tags|'''Help:Main page column tags''']]
* [[Help:Templates]]
* [[Help:Templates|'''Help:Templates''']]
* [[Help:Infobox]]
* [[Help:Infobox|'''Help:Infobox''']]
* [[Help:Tables]]
* [[Help:Tables|'''Help:Tables''']]
* [[Help:Magic words]]
* [[Help:Magic words|'''Help:Magic words''']]


==Video tutorials on the wikitext basics==
=='''Video tutorials on the wikitext basics'''==
{|
{|
|[[File:Wikia University - Introduction to Wikitext|thumb|300px]]
|[[File:Wikia University - Introduction to Wikitext|thumb|300px]]
Line 147: Line 147:
|}
|}


==See also==
=='''See also'''==
* [[Help:Editing]]
* [[Help:Editing|'''Help:Editing''']]
* MediaWiki.org's thorough reference on [[mw:Help:Images|image formatting]]
* '''MediaWiki.org'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).'''


==Further help and feedback==
=='''Further help and feedback'''==
{{Help and feedback section}}
{{Help and feedback section}}



Revision as of 19:52, 21 February 2017

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.

It's not necessary to know wikitext in order to edit a page: you can use the new 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

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]] http://vignette2.wikia.nocookie.net/central/images/b/b5/Redirectltr.png/revision/latest Help:Contents
External link
(to other websites)
[http://www.example.org]

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

[1]

displayed text
http://www.example.org

Sign your posts
on talk pages
~~~~ Your username 20:46,

7 June 2024 (UTC)

The following work only when used at the start of a line of code
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
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

Image formatting

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

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

File:SeaOtter.png
File:SeaOtter.png
File:SeaOtter.png
Linked image [[File:SeaOtter.png|link=Help:Contents]] File:SeaOtter.png

Further wikitext examples

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

Video tutorials on the wikitext basics

File:Wikia University - Introduction to Wikitext
File:Wikia University - How to Use Wikitext

See also

Further help and feedback

Template:Help and feedback section

ar:مساعدة:نص الويكي de:Hilfe:Wikitext es:Ayuda:Wikitexto fi:Ohje:Wikiteksti fr:Aide:Wikitexte it:Aiuto:Wikitext ja:ヘルプ:ウィキテキスト ko:도움말:위키 문법 nl:Help:Wikitekst pl:Pomoc:Wikitekst pt:Ajuda:Wikitexto ru:Справка:Викитекст zh:Help:Wiki文本