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>Viethoang1102
(iron force)
community>Scwp
Line 9: Line 9:


Below is a cheat sheet for basic wikitext that you can use while [[Help:Editing|editing]]. Many of the options listed below have shortcut buttons in the visual editors' toolbars.
Below is a cheat sheet for basic wikitext that you can use while [[Help:Editing|editing]]. Many of the options listed below have shortcut buttons in the visual editors' toolbars.

==Wikitext cheat sheet==

===Text===
{| class="article-table" style="width:100%; font-size:90%;"
|-
! 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 local 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>
|http://images.wikia.com/common/skins/common/images/redirectltr.png [[Help:Contents]]
|-
|External link<br />(to other websites)
|<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</nowiki></code>
|[http://www.example.org]<br />
[http://www.example.org displayed text]<br />
http://www.example.org
|-
|Sign your posts <br />on talk pages
|<code><nowiki>~~~~</nowiki></code>
|[[Special:Mypage|Your username]] {{CURRENTTIME}}, <br />
{{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-
! colspan="3" | ''The following work only when used at the start of a line of code''
|-
|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>
|-
|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
|}

===Images===
{| 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|150px]]</nowiki></code>
|[[File:SeaOtter.png|150px]]
|-
|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|150px|left]]</nowiki></code>
<code><nowiki>[[File:SeaOtter.png|thumb|150px|center]]</nowiki></code>
<code><nowiki>[[File:SeaOtter.png|thumb|150px|right]]</nowiki></code>
|
[[File:SeaOtter.png|thumb|150px|left]]
[[File:SeaOtter.png|thumb|150px|center]]
[[File:SeaOtter.png|thumb|150px|right]]
|-
|Linked image
|<code><nowiki>[[File:SeaOtter.png|link=Help:Contents]]</nowiki></code>
|[[File:SeaOtter.png|link=Help:Contents]]
|}

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

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


==See also==
==See also==

Revision as of 07:13, 28 March 2015

File:Location Source.png
How to access source mode in the classic editor

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

It's not necessary to know wikitext in order to edit at Wikia. You can use the visual mode in the classic editor, or the new VisualEditor (where enabled), to avoid it. However, users who learn it find that they have more control over their editing experience. It can be used in '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 a cheat sheet for basic wikitext that you can use while editing. Many of the options listed below have shortcut buttons in the visual editors' toolbars.

See also

  • Editing
  • MediaWiki's thorough reference on {{#NewWindowLink:http://www.mediawiki.org/wiki/Help:Images%7Cimage formatting}}
  • For print cheatsheets, see the {{#NewWindowLink:m:Help:Reference card|MediaWiki reference card}} or the {{#NewWindowLink:m:Cheatsheet|poster-size cheatsheet}} (available in many languages).

Further help & feedback

Template:Help and feedback section

de:Hilfe:Wikitext es:Ayuda:Wikitexto fi:Ohje:Wikiteksti fr:Aide:Wikitexte it:Aiuto:Wikitext ja:Help:ウィキテキスト ko:도움말:위키 문법 nl:Help:Wikitekst pl:Pomoc:Wikitekst zh:help:wiki文本