MediaWiki/Wikitext
From HopTech
- 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 |
|
| Headings of different levels (see #Note about headings) |
=level 1= |
Level 1Level 2Level 3Level 4Level 5Level 6 |
| Horizontal rule |
---- |
|
| Bullet list |
* one |
|
| Numbered list |
# one |
|
| Mixture of bulleted and numbered lists |
# one |
|
| Definition list |
;Definition |
|
| Preformatted text |
preformatted text is done with |
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 <blockquote> quote quote quote quote quote quote </blockquote> text text text text text text text text text text text text |
Body 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
- An article with four or more headings will automatically create a table of contents.
- 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.
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
