You are viewing an old version of this page. Return to the latest version.
Wikitext
-
- Last edited 4 years ago by MLR
-
-
- No status information
Revision as of 16:47, 12 December 2019 by Mlink-rodrigue (talk | contribs)
What is Wikitext?
Wikitext is a simplified markup language that is used to format and structure text and other data. While HTML is the most common markup language for web pages, Wikitext is used in wiki systems. Like HTML, it uses tags to mark parts of tags or other data.
How do I use Wikitext?
When you edit a page, you can switch between visual editing and source editing:
Wikitext can be entered in source editing mode. When you are in visual editing mode, VisualEditor inserts Wikitext "behind the scenes". If VisualEditor doesn't format elements on a page correctly, you can always switch to source editing to correct the issues directly in Wikitext.
Examples of Wikitext
Here are some typical examples of Wikitext:
Text formatting
- This is
'''bold'''
- This is
''italic''
- This is
<u>underlined</u>
Structuring
Headings
- (1st level): reserved for page title
- 2nd level:
==Section heading==
- 3nd level:
===Section sub-heading===
Lists
- ordered (numbered):
# One
## One-point-one
### One-point-one-point-one
# Two
- unordered (bulleted):
*
- definition list:
;Fire:provides energy and light
Tables
{| class="wikitable"
|-
!header 1
!header 2
|-
|row 1, cell 1
|row 1, cell 2
|-
|row 2, cell 1
|row 2, cell 2
|}
Links
Wiki internal
[[UserManual:Page title]]
[[UserManual:Pancake| Best pancake]]
- links with parameters / links that open in a new tab:
<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]</span>
Wiki external
[[UserManual:Http://www.hallowelt]]
http://www.hallowelt.com
Files/Images
- Image link:
[[Media:Someimage.png]]
- Embed an image:
[[File:Someimage.png]]
- Embed a file:
[[Media:SomePDF.pdf]]
Formatting example:
File:Someimage.png|thumb|50px|left|alt=Screenshot of the edit menu|The edit menu
Miscellaneous
Type of wikiText | Example |
---|---|
Special character | ã → ã
UTF-8 is possible |
Comment | <!-- unnoticed -->
|
No "wiki translation" | <nowiki> and </pre>
|
Table of contents | __TOC__ and __NOTOC__
|
Signature | --~~~
|
Redirect | #REDIRECT [[UserManual:Targetpage]]
|
Template | {{template name}}
|