Difference between revisions of "UserManual:Wikitext"

(Tag: 2017 source edit)
 

Contents

1 What is

Wikitext

?
  • 2 How do I use Wikitext?
  • 3 Examples of Wikitext
  • 4 Related info
  • What

    is

    Wikitext?[edit source]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

    text or other data.

    How do I use Wikitext?[edit| edit source]

    When you edit a page, you can switch between visual editing and source editing

    : ]Headings[

    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[edit| edit source]

    Here are some typical examples of Wikitext:

    Text formatting[edit| edit source]

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

    Structuring[edit

    source
    • (1st level): reserved for page title
    • 2nd level: ==Section heading==
    • 3nd level: ===Section sub-heading===

    Lists[edit source]

    • ordered (numbered):
    # One ## One-point-one ### One-point-one-point-one # Two
    • unordered (bulleted): *
    • definition list: ;Fire:provides energy and light

    Tables[edit source]

    • 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[edit | edit source]

    Wiki internal[edit source]

    Link to internal wiki page

                            [[
                        
    UserManual:Page title
                            Wikipage|Label]]
                        
                            
    [[
                        
    UserManual:
                            Pancake|Best
                        
    pancake
                             Pancake]]
    
                        
  • this creates a link to the page "Pancake" with the link description "Best pancake".
  • see also the Mediawiki help page for links: mediawiki.org/wiki/Help:Links and the
  • help section about external links to internal pagesmediawiki.org/wiki/Help:Links#External_links_to_internal_pages
  • links with parameters / links that open in a new tab: <span

    Link to external website

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

    'Link with parameters

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

    Wiki external[edit source]

    • [[UserManual:Http://www.hallowelt]]
    • http://www.hallowelt.com
    Files/Images[edit source]
  • Image link: [[Media:Someimage.png]]
  • Embed an image: [[File:Someimage.png]]
  • This embeds the image Someimage.png on the page.
  • embedding only happens when a link points to the "File" namespace
  • the wiki checks if a preview/thumbnail can be created automatically (e.g. image formats like
                            
    
                        

    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
    then
      • embeds
    a
      • the preview
    into the page
      • otherwise, a link
    will be created
      • to the
    wikipage in the "File" namespace (aka "
      • file description page
    ")Embed a file: [[Media:SomePDF.pdf]]
      • is created
        • can be embedded: PDF, Tiff (
    needs
        • with extension)
        • cannot be embedded: Microsoft Office
    and
        • - und Libre Office
    files
        • -Dateien; Shell-
    Scripts
        • Skripte, ...
    Formatting example: File:Someimage.png|thumb|50px|left|alt=Screenshot of the edit menu|The edit menu Miscellaneous[edit
    • [[Media:image-or-pdf--name.png]] - - - - Links to image / PDF
    • [[:Datei:image-or-pdf--name.png]] - - - Links to file description page

    Magic words[edit | edit source]

    Type of wikiText 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 [[UserManual:Targetpagetargetpage]]
    Template {{template name}}

    Related info

    UserManual:De:Wikitext



    Attachments

    Discussions