Help:Basic MediaWiki Syntax

From Computer History Wiki
Revision as of 01:46, 8 October 2019 by Jnc (talk | contribs) (+cat)
Jump to: navigation, search

This is a brief introduction to MediaWiki source syntax. For a more comprehensive guide, see here.


Description You type You get
Applies anywhere
Italicise text



Bold text



Bold and italic

'''''bold & italic'''''

bold & italic

Internal link

(within the Computer History wiki)

[[name of page]]
[[name of page|display text]]

name of page
display text

External link

(to other websites)

[ display text]

display text

Sign your posts
on talk pages


Your username 14:13,
17 January 2020 (UTC)

Items below only apply at the beginning of a line

A Table of Contents will automatically be generated when four headings are added to an article.

== Level 1 ==
=== Level 2 ===
==== Level 3 ====
===== Level 4 =====
====== Level 5 ======

Level 1

Level 2

Level 3

Level 4
Level 5
Indented items

(used mostly on Talk: pages)

: foo
:: bar

Bullet list

* one
* two
** two point one
* three

  • one
  • two
    • two point one
  • three
Numbered list

# one
# two
## two point one
# three

  1. one
  2. two
    1. two point one
  3. three

Pre-formatted text

There are a number of ways to include pre-formatted text (e.g. source code fragments):

  • Start each line with a space character; normal markups can be used; e.g.:

" '''This is pre-formatted''' text"


This is pre-formatted text
  • Use the HTML <nowiki> tag, with a space character before the <nowiki>. (Remember to add a matching closing tag after the pre-formatted text block).
  • Use the HTML <pre> tag (again, remember the closing tag).

Note that the HTML <blockquote> tag only indents the block; text within it will still be justified.


{| class="wikitable"
! Table !! Prototype
| colspan="2" style="text-align:center;" | Headers
| aa || rowspan="2" | yy
| bb
| cc || zz


Table Prototype
aa yy
cc zz


[[Image:Pdp1115.jpg|thumb|150px|left|Caption text]]


Caption text

Leaving out the '150px' inserts the image full-size. The optional keywords 'left' and 'right' can be added to control the horizontal placement.

New images can be uploaded via the 'Upload file' page (link on the left-hand side of all pages).