Last edited 2 years ago
by WikiSysop

5 Wikitext

m (Text replacement - "ES:" to "")
(Changed categories.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<bookshelf src="Book:Concepts and organization" />
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 your knowledge base. Like HTML, it uses tags to mark parts of text or other data.
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 your knowledge base. Like HTML, it uses tags to mark parts of text or other data.
==Using Wikitext==
==Using Wikitext==
When you edit a page, you can switch between visual editing and source editing from the editor toolbar.
When you edit a page, you can switch between visual editing and source editing from the editor toolbar.
[[File:Manual:editing.png|alt=Screenshot: Visual Editor switch edit mode|center]]
[[File:editing.png|alt=switching edit modes|none|thumb|switching edit modes]]  
 
In visual editing mode, Wikitext is automatically created in the source view of the article. But Wikitext can also be entered manually by the user in source-editing mode.
 
==Examples of Wikitext==
(see also: [[Wikitext/Wikitext reference|Wikitext reference]])


In visual editing mode, Wikitext is automatically created in the source view of the article. But you can also work with Wikitext in source-editing mode. This is usually not necessary, unless you want to create reusable content through [[templates]].


==Examples==
Here are some typical examples of Wikitext:
Here are some typical examples of Wikitext:
===Text formatting===
===Text formatting===
*This is <code><nowiki>'''bold'''</nowiki></code>
*This is <code><nowiki>'''bold'''</nowiki></code>
Line 19: Line 15:


===Structuring===
===Structuring===
*This is a <code>==Heading==</code>
*This is a <code>==Heading==</code>
*This is an <code>*unordered list element</code>
*This is an <code>*unordered list element</code>
Line 69: Line 63:
!Type of Wikitext
!Type of Wikitext
!Example
!Example
|-
|Special character
|'''<code>&amp;atilde;</code>  &rarr; &atilde;'''
'''<code>&amp;ccedil;</code> &rarr; &ccedil;'''
UTF-8 is possible
|-
|-
|Comment
|Comment
Line 98: Line 86:
{{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=[[Magic words|Magic words]]}}
 








[[Category:Concept]]
[[Category:Editing]]
[[Category:Advanced]]

Latest revision as of 15:21, 29 September 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 your knowledge base. Like HTML, it uses tags to mark parts of text or other data.

5.1 Using Wikitext

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

switching edit modes
switching edit modes

In visual editing mode, Wikitext is automatically created in the source view of the article. But you can also work with Wikitext in source-editing mode. This is usually not necessary, unless you want to create reusable content through templates.

5.2 Examples

Here are some typical examples of Wikitext:

5.2.1 Text formatting

  • This is '''bold'''
  • This is ''italic''
  • This is <u>underlined</u>

5.2.2 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
    |}
    

5.2.3 Links / embedded files

Link to an internal wiki page

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

Link to an 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


5.2.4 Magic words

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


Related info