Difference between revisions of "Wiki Format Sheet"

From Alfino
Jump to navigationJump to search
Line 82: Line 82:
 
:item 1
 
:item 1
 
:item 2
 
:item 2
 +
|}
 +
 +
== How to link ==
 +
{| {{Prettytable}}
 +
|-
 +
|{{Hl3}}|'''Description'''
 +
|{{Hl3}}|'''You type'''
 +
|{{Hl3}}|'''You get'''
 +
|-
 +
|Internal link
 +
|<tt><nowiki>[[Main Page]]</nowiki></tt>
 +
|[[Main Page]]
 +
|-
 +
|Piped link
 +
|<tt><nowiki>[[Main Page|different text]]</nowiki></tt>
 +
|[[Main Page|different text]]
 +
|-
 +
|External link
 +
|<tt><nowiki>http://mediawiki.org</nowiki></tt>
 +
|http://mediawiki.org
 +
|-
 +
|External link,<br />
 +
different title
 +
|<tt><nowiki>[http://mediawiki.org MediaWiki]</nowiki></tt>
 +
|[http://mediawiki.org MediaWiki]
 +
|-
 +
|External link,<br />
 +
numbered
 +
|<tt><nowiki>[http://mediawiki.org]</nowiki></tt>
 +
|[http://mediawiki.org]
 +
|-
 +
|Anchor link
 +
|<tt><nowiki>[[#See also]]</nowiki></tt>
 +
|[[#See also]]
 +
|-
 +
|Anchor link at another page
 +
|<tt><nowiki>[[Help:Images#See also]]</nowiki></tt>
 +
|[[Help:Images#See also]]
 +
|-
 +
|Category link
 +
|<tt><nowiki>[[:Category:Help]]</nowiki></tt>
 +
|[[:Category:Help]]
 +
|-
 +
|Internal link to image file
 +
|<tt><nowiki>[[media:example.jpg]]</nowiki></tt>
 +
|[[media:example.jpg]]
 +
|-
 +
|Internal link to pdf file
 +
|<tt><nowiki>[[media:example.pdf]]</nowiki></tt>
 +
|[[media:example.pdf]]
 +
|-
 +
|Interwiki link
 +
|<tt><nowiki>[[Wikipedia:MediaWiki]]</nowiki></tt>
 +
|[[Wikipedia:MediaWiki]]
 +
|-
 +
|mailto link
 +
|<tt><nowiki>[mailto:info@example.org email me]</nowiki></tt>
 +
|[mailto:info@example.org email me]
 +
|-
 +
|redirect
 +
|<tt><nowiki>#REDIRECT [[Main Page]]</nowiki></tt>
 +
| &rarr; [[Main Page]]
 +
|-
 +
|External link to video file (.avi, .mpg)
 +
|<tt><nowiki>[http://en.wikipedia.org/wiki/.avi .avi]</nowiki></tt>
 +
|[http://en.wikipedia.org/wiki/.avi .avi]
 +
|-
 +
|External link to sound file (.mp3, .ogg, .wav)
 +
|<tt><nowiki>[http://en.wikipedia.org/wiki/.wav .wav]</nowiki></tt>
 +
|[http://en.wikipedia.org/wiki/.wav .wav]
 +
|-
 +
|External link to a document (.doc, .pdf)
 +
|<tt><nowiki>[http://en.wikipedia.org/wiki/.doc .doc]</nowiki></tt>
 +
|[http://en.wikipedia.org/wiki/.doc .doc]
 +
|}
 +
 +
=== More advanced ===
 +
 +
{| {{Prettytable}}
 +
|-
 +
|{{Hl3}}|'''Description'''
 +
|{{Hl3}}|'''You type'''
 +
|{{Hl3}}|'''You get'''
 +
|-
 +
|Piped link,<br />
 +
different title
 +
|<tt><nowiki>[[Main Page|<span title="different title">different text</span>]]</nowiki></tt>
 +
|[[Main Page|<span title="different title">different text</span>]]
 +
|-
 +
|External link,<br />
 +
same host unnamed
 +
|<tt><nowiki>[http://{{SERVERNAME}}/pagename]</nowiki></tt>
 +
|[http://{{SERVERNAME}}/pagename]
 +
|-
 +
|External link,<br />
 +
other host, pass pagename
 +
|<tt><nowiki>[http://google.com/search?q={{PAGENAMEE}}]</nowiki></tt>
 +
|[http://google.com/search?q={{PAGENAMEE}}]
 +
|-
 +
|mailto named with subject line and body
 +
|<tt><nowiki>[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]</nowiki></tt>
 +
|[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]
 
|}
 
|}

Revision as of 04:05, 13 January 2009

Text formatting markup

For bold and italic text, use the icons in the editing window.

Template:Hl2 |Description Template:Hl2 |You type Template:Hl2 |You get
only at the beginning of the line
Indent text

:Single indent
::Double indent
:::::Multiple indent

Single indent
Double indent
Multiple indent
Headings of

different levels <ref>An article with four or more headings will automatically create a table of contents.</ref>

=level 1=<ref>Use of a level 1 heading is highly discouraged as it appears with the same formatting and size as the page title, which can be confusing.</ref>
==level 2==
===level 3===
====level 4====
=====level 5=====
======level 6======

Level 1

Level 2

Level 3
Level 4
Level 5
Level 6

Horizontal rule

----


Bullet list

* one
* two
* three
** three point one
** three point two

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

# one
# two<br />spanning several lines<br />without breaking the numbering
# three
## three point one
## three point two

  1. one
  2. two
    spanning several lines
    without breaking the numbering
  3. three
    1. three point one
    2. three point two
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2

How to link

Template:Hl3|Description Template:Hl3|You type Template:Hl3|You get
Internal link [[Main Page]] Main Page
Piped link [[Main Page|different text]] different text
External link http://mediawiki.org http://mediawiki.org
External link,

different title

[http://mediawiki.org MediaWiki] MediaWiki
External link,

numbered

[http://mediawiki.org] [1]
Anchor link [[#See also]] #See also
Anchor link at another page [[Help:Images#See also]] Help:Images#See also
Category link [[:Category:Help]] Category:Help
Internal link to image file [[media:example.jpg]] media:example.jpg
Internal link to pdf file [[media:example.pdf]] media:example.pdf
Interwiki link [[Wikipedia:MediaWiki]] Wikipedia:MediaWiki
mailto link [mailto:info@example.org email me] email me
redirect #REDIRECT [[Main Page]] Main Page
External link to video file (.avi, .mpg) [http://en.wikipedia.org/wiki/.avi .avi] .avi
External link to sound file (.mp3, .ogg, .wav) [http://en.wikipedia.org/wiki/.wav .wav] .wav
External link to a document (.doc, .pdf) [http://en.wikipedia.org/wiki/.doc .doc] .doc

More advanced

Template:Hl3|Description Template:Hl3|You type Template:Hl3|You get
Piped link,

different title

[[Main Page|<span title="different title">different text</span>]] different text
External link,

same host unnamed

[http://{{SERVERNAME}}/pagename] [2]
External link,

other host, pass pagename

[http://google.com/search?q={{PAGENAMEE}}] [3]
mailto named with subject line and body [mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info] info