Template:Wikitext

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The term "wikitext" refers to Wikipedia's wp:wiki markup language. Formats:

  • [[hyperlink]] or [[hyperlink|link here]] or [[expert]]ly    → hyperlink or link here or expertly
  • [http://www.google.com external link]      → external link   (to an outside webpage)
  • [[File:Example.jpg|thumb|55px|Caption]]      →   (shows image, see below)
  • ==Header== → Header        ===Subheader=== → Subheader
  • ''italic''   '''bold'''   '''''bold-italic'''''italic   bold   bold-italic
  • * bullet → • bullet       (or ":*" or "::*" to indent)
    Caption
  • : indent →     indent   (or "::" or "::::::" to indent more)
  • # numbered →   1.  numbered   ("#:" indents under numbered lines)
  • #* bullet under number →   °  bullet under number
  • [[Category:xx]] → (internal wp:category link).
  • {{templt|aa|bb}} → (run "Template:Templt" with parameters "aa" & "bb")
  • {{#expr: (5*10 + 3^2 +8)/2 }} → calculate expression: (5×10 + 32+8)/2 = 33.5
  • ~~~~ → signature     ~~~~~ → date/time (UTC)

A related page is Help:Table, see: {{Wikitable/help}}.

The page Template:Wikitext/help displays a condensed helpbox about wikitext, Wikipedia's wp:wiki markup elements, to be displayed as a concise nutshell overview, of template parameters, while editing another page.

The helpbox contains the basic wikitext elements:

  • wikilinks:        [[hyperlink]] or [[hyperlink|link here]] or [[expert]]ly    → hyperlink or link here or expertly
  • external links: [http://www.google.com external link]      → external link   (to an outside webpage)
  • image links:     [[File:Example.jpg|thumb|55px|Caption]]      →   (shows image, see below)
  • headers:         ==Header== → Header     ===Subheader=== → Subheader
  • italic/bolding: ''italic''   '''bold'''   '''''bold-italic'''''italic   bold   bold-italic
  • bullets:        * bullet → • bullet       (or ":*" or "::*" to indent)
    Caption
  • indenting:    : indent →     indent   (or "::" or "::::::" to indent more)
  • auto-number: # numbered →   1.  numbered   ("#:" indents under numbered lines)
  • bullets at numbers: #* bullet under number →   °  bullet under number
  • categories:    [[Category:xx]] → (internal wp:category link).
  • templates:    {{templt|aa|bb}} → (run "Template:Templt" with parameters "aa" & "bb")
  • expressions:   {{#expr: (5*10 + 3^2 +8)/2 }} → calculate expression: (5×10 + 32+8)/2 = 33.5
  • signature/time:    ~~~~ → signature     ~~~~~ → date/time (UTC)

Other major wikitext formats can be listed, as needed.

See also[edit]