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
m (126 revisions imported: Import from https://community.fandom.com)
(We are writing our own custom help pages; please do not copy verbatim from Wikia)
Tag: Replaced
Line 1: Line 1:
{{Help page}}
<jwplayer media-id="VFN3fd63" />
'''Wikitext''', also known as '''wiki markup''', refers to the syntax, keywords, and punctuation marks used by {{SITENAME}} to format a page. For example, to make text italicized, you would type <code><nowiki>''text to be italicized''</nowiki></code> into the page when [[Help:Editing|editing]] it.
{{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.

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

== Text formatting ==
{| class="article-table" style="width:100%; font-size:90%;"
|+Inline wikitext: code you can use anywhere in the code
|-
! style="width:25%;" | Description
! style="width:45%;" | You type
! style="width:30%;" | You get
|-
|Italicise text
|<code><nowiki>''italic''</nowiki></code>
|''italic''
|-
|Bold text
|<code><nowiki>'''bold'''</nowiki></code>
|'''bold'''
|-
|Bold and italic
|<code><nowiki>'''''bold & italic'''''</nowiki></code>
|'''''bold & italic'''''
|-
||Internal link<br />(within a wiki)
|<code><nowiki>[[Help:Contents]]</nowiki></code><br />
<code><nowiki>[[Help:Contents|Displayed text]]</nowiki></code>
|[[Help:Contents]]<br />[[Help:Contents|Displayed text]]
|-
|Redirect to another page
|<code><nowiki>#REDIRECT [[Help:Contents]]</nowiki></code>
|https://vignette2.wikia.nocookie.net/central/images/b/b5/Redirectltr.png/revision/latest [[Help:Contents]]
|-
|External link<br />(to other websites)
|<code><nowiki>[https://www.example.org]</nowiki></code><br />
<code><nowiki>[https://www.example.org displayed text]</nowiki></code><br />
<code><nowiki>https://www.example.org</nowiki></code>
|[https://www.example.org]<br />
[https://www.example.org displayed text]<br />
https://www.example.org
|-
|Sign your posts <br />on talk pages
|<code><nowiki>~~~~</nowiki></code> (4 tildes)
|[[Special:Mypage|Your username]] {{CURRENTTIME}}, <br />
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-
|Insert the current date and time (UTC). Generally only used on talk pages.
|<code><nowiki>~~~~~</nowiki></code> (5 tildes)
|{{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-
|Display wikitext code as typed
|<code><nowiki><nowiki>[[This is not a link]]</nowiki></nowiki></code>
|<nowiki>[[This is not a link]]</nowiki>
|-
|}
{| class="article-table" style="width:100%; font-size:90%;"
|+Code that works only at the start of a line
|-
! style="width:25%;" | Description
! style="width:45%;" | You type
! style="width:30%;" | You get
|-
|Headings<br />
<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><nowiki>===Level 3===</nowiki></code><br />
<code><nowiki>====Level 4====</nowiki></code><br />
<code><nowiki>=====Level 5=====</nowiki></code><br />
<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.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.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>
|-
|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
|
<code>* One</code><br />
<code>* Two</code><br />
<code>** Two point one</code><br />
<code>* Three</code>
|
* One
* Two
** Two point one
* Three
|-
|Numbered list
|
<code>#One</code><br />
<code>#Two</code><br />
<code>##Two point one</code><br />
<code>#Three</code>
|
#One
#Two
##Two point one
#Three
|-
|Preformatted text '''with''' working links
|
<tt>_[[Color]] Text</tt> (note space at start)
|
[[Color]] Text
|-
|Preformatted text that shows underlying wikitext
|
<tt><nowiki><pre>[[Color]] Text</pre></nowiki></tt>
|
<pre>[[Color]] Text</pre>
|}

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

== 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.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).

== Further help and feedback ==
{{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:Справка:Викитекст]]
[[uk:Довідка:Вікітекст]]
[[zh:Help:Wiki文本]]
[[Category:Editing]]
[[Category:Source editing]]
[[Category:Help]]
[[Category:Formatting]]
[[Category:Tools & shortcuts]]

Revision as of 17:59, 7 May 2019

This page is a help page
It is meant to detail processes or procedures of some aspect or aspects of The Sims Wiki's norms and practices. It is not a policy page.

Wikitext, also known as wiki markup, refers to the syntax, keywords, and punctuation marks used by The Sims Wiki to format a page. For example, to make text italicized, you would type ''text to be italicized'' into the page when editing it.