MediaWiki/Wikitext

From HopTech

< MediaWiki(Redirected from Help:Editing)
Jump to: navigation, search
For guide to formatting style on HopTech see Help:Formatting
This page has been sourced in parts or entirely from:

Wikitext language or wiki markup is the markup language used by wikipedia:MediaWiki (the software powering this wiki). It is a simplified alternative to HTML markup.

See also: wikipedia:WikiText and metawikipedia:Help:Wikitext_examples


Note. The content is messed up due to the header example #Level 1

Contents

Formatting

Description You type You get
applies anywhere
Italic text ''italic'' italic
Bold text '''bold''' bold
Bold and italic '''''bold & italic''''' bold & italic
Escape wiki markup <nowiki>no ''markup''</nowiki> no ''markup''
Fixed width text

<tt>Fixed width text</tt>

Fixed width text

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 (see #Note about headings)

=level 1=
==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 and one-third
** three and two-thirds

  • one
  • two
  • three
    • three and one-third
    • three and two-thirds
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
Mixture of bulleted
and numbered lists

# one
# two
#* two point one
#* two point two

  1. one
  2. two
    • two point one
    • two point two
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2
Preformatted text

  preformatted text is done with
  a space at the
  beginning of the line

preformatted text is done with
a space at the 
beginning of the line
Preformatted text with no indentation

 <pre>

some preformatted
text with no indentation
Blockquotes

Body
text text text text text text text text text text text text text text text text text text text text text text text text

<blockquote> quote quote quote quote quote quote </blockquote>

text text text text text text text text text text text text

Body
text text text text text text text text text text text text text text text text text text text text text text text text

quote quote quote quote quote quote

text text text text text text text text text text text text

Comment

<!--This is comment-->

Note about headings

  1. An article with four or more headings will automatically create a table of contents.
  2. 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.



Formatting Cont.

Paragraphs

MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags <br> or <br/>.

HTML

Some HTML tags are allowed in MediaWiki, for example <code>, <div>, <span> and <font>.

Tables

Links

Interwiki

Interwiki links are external links to other wiki projects. These links are created and appear in text similar to internal links. A prefix is used before the page name to identify it as being part of a different wiki (eg. wikipedia, mediawikiwiki, metawikipedia).

interwiki:
[[wikipedia:Isle of Man|The Isle of Man]] 
 is a self-governing [[wikipedia:Crown dependency|Crown dependency]]

The Isle of Man is a self-governing Crown dependency


external:
[http://en.wikipedia.org/wiki/Isle_of_Man The Isle of Man] 
 is a self-governing [http://en.wikipedia.org/wiki/Crown_dependency Crown dependency]

The Isle of Man is a self-governing Crown dependency

SpecialInterWiki is a MediaWiki Extension that allows sysops to edit and expand the interwiki links.

For a full list of interwiki prefixes see Special:Interwiki.

Templates

Extention ParserFunctions

ParserFuntions is a MediaWiki Extension that enables the use of complex conditional operation in templates.

Take the simple example Template:Example_if, which can takes an input param. If there is a value to param then the template will be replaced by

Is there a parameter value? : {{ #if: {{{param|}}} | yes, there is a 
parameter value | no, there is not a parameter value }}
{{Template:Example_if}}
Is there a parameter value? : no, there is not a parameter value

{{Template:Example_if|param=input}}
Is there a parameter value? : yes, there is a parameter value

Structure

Categories