Jump to content

User:Aaron.Sullivan/Short Markup Example

From Wikipedia, the free encyclopedia

This page will give you some basic tools for editing your articles. You are only required to use Section Headings, however if you intend to upload your article to Wikipedia, you may want to use pictures, lists or formatted text as well.

If you want to be able to do something not included here, you can find additional information on the Wikipedia:Cheatsheet, or see a much, much longer list of options on the Help:Wiki_markup page. Much the information below has been selectively copied from that page.

Layouts

[edit]

Section Headings

[edit]
What it looks like What you type
Section headings

Headings organize your writing into sections. The Wiki software can automatically generate a table of contents from them. Start with 2 'equals' characters.

Subsection

Using more 'equals' characters creates a subsection.

A smaller subsection

Don't skip levels, like from two to four 'equals' characters.

==Section headings==

''Headings'' organize your writing into sections.
The Wiki software can automatically generate
a table of contents from them.
Start with 2 'equals' characters.

===Subsection===

Using more 'equals' characters creates a subsection.

====A smaller subsection====

Don't skip levels, like from two to four 'equals' characters.


Indent text

[edit]
What it looks like What you type

Left indent

A colon at the start of a line
causes the line to be indented,
most commonly used on Talk pages.
:A colon at the start of a line
::causes the line to be indented,
:::most commonly used on Talk pages.

Blockquote
When there is a need for separating a block of text. This is useful for (as the name says) inserting blocks of quoted (and cited) text.

The blockquote tag will indent both margins when needed instead of the left margin only as the colon does.

<blockquote> The '''blockquote''' tag will indent both margins when needed instead of the left margin only as the colon does. </blockquote>

Center text

[edit]
What it looks like What you type
Centered text
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">Centered text</div>

Template {{center}} uses the same markup. To center a table, see Help:Table#Centering tables.

Lists

[edit]
What it looks like What you type
  • Unordered lists are easy to do:
    • Start every line with a star.
      • More stars indicate a deeper level.
      Previous item continues.
    • A new line
  • 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.
**: Previous item continues.
** A new line
* in a list
marks the end of the list.
* Of course you can start again.
  1. Numbered lists are:
    1. Very organized
    2. Easy to follow
    Previous item continues

A new line marks the end of the list.

  1. New numbering starts with 1.
# ''Numbered lists'' are:
## Very organized
## Easy to follow
#: Previous item continues
A new line marks the end of the list.
# New numbering starts with 1.


Format

[edit]

Text formatting

[edit]
What it looks like What you type

You can italicize text by putting 2 apostrophes on each side.

3 apostrophes will bold the text.

5 apostrophes will bold and italicize the text.

A semicolon at the start of a line bolds the entire line.

Sometimes, it functions as a section header (see above).

You can ''italicize text'' by putting 2
apostrophes on each side.

3 apostrophes will '''bold the text'''.

5 apostrophes will '''bold''' and ''italicize''
'''''the text'''''.

;A semicolon at the start of a line bolds the entire line.
Sometimes, it functions as a section header
(see [[Help:Wiki markup#Sections|above]]).


Images

[edit]

Only images that have been uploaded to Wikipedia can be used. To upload images, use the upload page. You can find the uploaded image on the image list.

What it looks like What you type
A picture:

A picture: 
[[File:wiki.png]]
Floating to the right side of the page using the frame attribute and a caption:
Puzzle globe logo
Wikipedia Encyclopedia
Floating to the right side of the page 
using the ''frame'' attribute and a caption:
[[File:wiki.png|frame|alt=Puzzle globe logo|This is the caption text]]
  • The frame tag automatically floats the image right.
  • The last parameter is the caption that appears below the image.

See the Wikipedia's image use policy as a guideline used on Wikipedia.

For further help on images, including some more versatile abilities, see the picture tutorial.


[edit]
[edit]

In Wikipedia and some other Wikis, free links are used in Wikitext markup to produce internal links between pages, as opposed to the concept of CamelCase for the same purpose, which was used in the early days of Wikipedia, see CamelCase and Wikipedia.

In Wikipedia's markup language, you create free links by putting double square brackets around text designating the title of the page you want to link to. Thus, [[Texas]] will be rendered as Texas. Optionally, you can use a vertical bar (|) to customize the link title. For example, typing [[Texas|Lone Star state]] will produce Lone Star state, a link that is displayed as "Lone Star state" but in fact links to Texas.

Link to another Wiki article

[edit]
  • Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended).
  • Thus the link below is to the URL en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also Canonicalization.
  • A red link is a page that doesn't exist yet; it can be created by clicking on the link.
  • A link to its own page will appear only as bold text.
What it looks like What you type

London has public transport.

London has [[public transport]].

Link to this own article: "Help:Wiki markup" will appear only as bold text.

Link to this own article: "[[Help:Wiki markup]]" will appear only as bold text.

[edit]
  • Same target, different name.
  • The target ("piped") text must be placed first, then the text to be displayed second.
What it looks like What you type

New York also has public transportation.

New York also has [[public transport|public transportation]].

References and Citing Sources

[edit]

To cite your sources, use <ref> and </ref> tags with the citation in between them. At the end of your paper, type "<references/>" where you want the bibliography to be generated.

See the example below.

What it looks like What you type

"I propose the following definition of the nation: it is an imagined political community - and imagined as both inherently limited and sovereign."[1] This is how Benedict Anderson defined the nation in his ground breaking book.

References

[edit]
  1. ^ Benedict Anderson, Imagined Communities: Reflections of the Origins of Nationalism (Verso Press: 1993), 6.

"I propose the following definition of the nation: it is an imagined political community - and imagined as both inherently limited and sovereign."<ref>Benedict Anderson, Imagined Communities: Reflections of the Origins of Nationalism (Verso Press: 1993), 6.</ref> This is how Benedict Anderson defined the nation in his ground breaking book.

== References ==
<references/>