2.4 Wikitext editing

No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
<bookshelf src="Book:User manual" />
<bookshelf src="Book:User manual" />
<section begin="training-intro" />
<section begin="training-intro" />
<span class="bi bi-box-arrow-down" style="color:#3e5389"></span>[[Media:Manual:Manual Wikitext Wikitext reference.pdf|'''Wikitext reference''']]
<div class="training">
<div class="training">
Wikitext is a simplified markup language that is used to format and structure text and other data. <section end="training-intro" /><section end="training-intro" />
Wikitext is a simplified markup language that is used to format and structure text and other data. <section end="training-intro" /><section end="training-intro" />
Line 110: Line 106:
|}
|}
<section end="wikitextTraining" />
<section end="wikitextTraining" />
==Download Wikitext reference==
<span class="bi bi-box-arrow-down" style="color:#3e5389"></span>[[Media:Manual:Manual Wikitext Wikitext reference.pdf|'''Wikitext reference''']]
{{Box Links-en
{{Box Links-en
|Topic1=[https://meta.wikimedia.org/wiki/Help:Wikitext_examples  meta.wikimedia.org/wiki/Help:Wikitext_examples]
|Topic1=[https://meta.wikimedia.org/wiki/Help:Wikitext_examples  meta.wikimedia.org/wiki/Help:Wikitext_examples]
|Topic2=[[MagicWords|Magic words]]}}
|Topic2=[[Manual:MagicWords|Magic words]]}}


[[en:{{FULLPAGENAME}}]]
[[en:{{FULLPAGENAME}}]]

Revision as of 11:48, 27 April 2022

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 text or other data.

How do I use Wikitext?

When you edit a page, you can switch between visual editing and source editing using the editor toolbar.

Screenshot: Visual Editor switch edit mode

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

  • This is a ==Heading==
  • This is an *unordered list element
  • Table:
    {| class="wikitable"
    |-
    !header 1
    !header 2
    |-
    |row 1, cell 1
    |row 1, cell 2
    |-
    |row 2, cell 1
    |row 2, cell 2
    |}
    


Links / Embedded files

Link to internal wiki page

[[Wikipage|Label]]
[[Pancake|Best Pancake]]

Link to external website

[url label]
[https://wikipedia.org Wikipedia]

'Link with parameters

<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page]</span>

This link opens the referenced page in edit mode in a new tab.

Embed image/file


  • [[Datei:image-or-pdf-name.png]] - - - Image/PDF is embedded on page
    • the wiki checks, if a preview can be generated (e.g., for "png", "jpeg", "gif", "svg") and embeds the preview
    • otherwise, a link to the file description page is created
      • can be embedded: PDF, Tiff (with extension)
      • cannot be embedded: Microsoft Office- und Libre Office-Dateien; Shell-Skripte, ...
  • [[Media:image-or-pdf--name.png]] - - - - Links to image / PDF
  • [[:Datei:image-or-pdf--name.png]] - - - Links to file description page

Magic words

Type of Wikitext Example
Special character &atilde; → ã

&ccedil; → ç

UTF-8 is possible

Comment <!-- unnoticed -->
No "wiki translation" <nowiki> and </pre>
Table of contents __TOC__ and __NOTOC__
Signature --~~~
Redirect #REDIRECT [[targetpage]]
Template {{template name}}


Download Wikitext reference

Wikitext reference


Related info




To submit feedback about this documentation, visit our community forum.