Help:Wikitext quick reference

Wikitext markup

edit

making your page look the way you want with Wikitext

Basic text formatting

edit
Name Typing Displays
  Bold Make text '''bold''' Make text bold
  Italic Make text ''italic'' Make text italic
  Internal Link Link to [[Help:Editing|a page]] or [[#Basic text formatting|a section of a page]]. Link to a page or a section of a page.
  External Link Link to [http://en.wikiversity.org/wiki/Help:Editing a page] or [http://en.wikiversity.org/wiki/Help:Editing#Editing_basics a section of a page]. Link to a page or a section of a page.
  Level 2 Heading == Section Heading == Section Heading
  Embed File [[File:Button image.png]]  
  File link [[Media:Button media.png]] Media:Button media.png
  Mathematical Formulas (LaTeX) <math>2^3</math>  
  Ignore wiki markup <nowiki><math>2^3</math>&lt;/nowiki&gt; <math>2^3</math>
  Signature Thanks guys --~~~~ Thanks guys --Karl Wick 07:46, 27 November 2005 (UTC)[reply]
  Horizontal line ----
  Page Redirect #redirect [[Help:Editing#Basic text formatting]]   Help:Editing#Basic text formatting

For a list of HTML tags that are allowed, see HTML in wikitext. However, you should avoid HTML in favor of Wiki markup whenever possible.

Just show what I typed

edit

A few different kinds of formatting will tell the Wiki to display things as you typed them.

Name Typing Displays
<nowiki> tags
<nowiki>
The nowiki tag ignores [[Wiki]] ''markup''.
It reformats text by removing newlines    and multiple spaces.
It still interprets special characters: &amp;rarr;
</nowiki>

The nowiki tag ignores [[Wiki]] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<pre>
<pre>
The pre tag ignores [[Wiki]] and <strong>HTML</strong> ''markup''.
It also doesn't     reformat text.
It still interprets special characters: &rarr;
</pre>
The pre tag ignores [[Wiki]] and <strong>HTML</strong> ''markup''.
It also doesn't     reformat text.
It still interprets HTML special characters: →
Leading spaces

Leading spaces are another way to preserve formatting.

 Putting a space at the beginning of each line
 stops the text   from being reformatted. It still
 interprets [[Wiki]] ''markup'' and special
 characters: &amp;rarr;

but it puts the text in a box.

Leading spaces are another way to preserve formatting.

Putting a space at the beginning of each line
stops the text   from being reformatted. It still
interprets Wiki markup and special
characters: →

but it puts the text in a box.

Organizing your writing

edit
What it looks like What you type

Section headings

Headings organize writing into sections. The wiki software automatically generates a table of contents from them.


Subsection

Using more equals signs creates a subsection.


A smaller subsection

Don't skip levels, like from two to four equals signs. Start with two equals signs (top-level heading); don't use single equals signs.

== Section headings ==

Headings organize your writing into sections.
The wiki software automatically generates
a table of contents from them.

=== Subsection ===

Using more equals signs creates a subsection.

==== A smaller subsection ====

Don't skip levels, like from two to four equals signs.
Start with two equals signs (top-level heading); don't use single equals signs.
  • Unordered lists are easy to do:
    • Start every line with a star.
      • More stars indicate a deeper level.
  • A newline
  • in a list

marks the end of the list.

  • Of course you can start again.
* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*A newline
*in a list  
marks the end of the list.
*Of course you can start again.
  1. Numbered lists are also good:
    1. Very organized
    2. Easy to follow

A newline marks the end of the list.

  1. New numbering starts with 1.
# Numbered lists are also good:
## Very organized
## Easy to follow
A newline marks the end of the list.
#New numbering starts with 1.
  • You can even do mixed lists
    1. and nest them
      • or break lines
        in lists.
* You can even do mixed lists
*# and nest them
*#* or break lines<br>in lists.

Another kind of list is a description list:

word
description of the word
longer phrase
phrase described at length, such that, even with a relatively large window width one can see that the wrapping of the text maintains the indentation of the description and thus a highlight of the described term. This accentuates readability of the list.
Another kind of list is a '''description list''':
; word : description of the word
; longer phrase 
: phrase described at length, such that, even with a
relatively large window width one can see that the 
wrapping of the text maintains the indentation of the 
description and thus a highlight of the described term.  
This accentuates readability of the list.
A colon indents a line or paragraph.

A newline after that starts a new paragraph.

This is often used for discussion on Talk pages.
:A colon indents a line or paragraph.
A newline after that starts a new paragraph.
::This is often used for discussion on talk pages.

You can make horizontal dividing lines to separate text.


But you should usually use sections instead, so that they go in the table of contents.

You can make horizontal dividing lines
to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.

Images, tables, video, and sounds

edit

This is a very quick introduction (please do not forget to upload your files). For more information, see:

What it looks like What you type

A picture, including alternate text:

 

You can put the image in a frame with a caption:

 
The logo for this Wiki
A picture, including alternate text:

[[File:Wikiversity_beta.png|50px|The logo for this Wiki]]

You can put the image in a frame with a caption:
[[File:Wikiversity_beta.png|frame|The logo for this Wiki]]

A link to Wikiversity's page for the image: File:Wikiversity beta.png

Or a link directly to the image itself: Media:Wikiversity beta.png

A link to Wikiversity's page for the image:
[[:File:Wikiversity beta.png]]

Or a link directly to the image itself:
[[Media:Wikiversity beta.png]]

Use media: links to link to sounds or videos.

Sound File Example: A sound file

pdf File Example: A pdf file

Use '''media:''' links to link to sounds
or videos.
Sound File Example: [[media:Sound_Of_Fear.ogg|A sound file]]
pdf File Example: [[Media:Darkside-graphak1.pdf|A pdf file]]
This is
a table
{{center top}}
{| border=1 cellspacing=0 cellpadding=5
| This
| is
|- 
| a
| '''table'''
|}
{{center bottom}}

Templates

edit

Templates are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}.

Some templates take parameters, as well, which you separate with the pipe character.

What it looks like What you type

This text comes from the page named Template:Transclusion demo. It has been transcluded into this page.

{{Transclusion demo}}

This template takes two parameters, and creates underlined text with a hover box:

Hover your mouse over this text

Go to this page to see the H:title template itself.

This template takes two parameters, and creates
underlined text with a hover box:

{{H:title|This is the hover text|
Hover your mouse over this text}}

Go to [[template:H:title|this page]] to see the H:title template itself.