-
(Difference between revisions)
(8 intermediate revisions not shown) Line 1: Line 1: ==MediaWiki Cheat Sheet====MediaWiki Cheat Sheet==- ==Paragraphs==+ + [[Infobox]]+ + ===Paragraphs===<pre>Two line breaks<pre>Two line breaksLine 13: Line 16: </pre></pre>- ==Phrase Emphasis==+ ===Phrase Emphasis===<pre>''italics''<pre>''italics''Line 19: Line 22: </pre></pre>- ==Links==+ ===Links===- ===External:===+ External:<pre>An [http://url.com/ example].<pre>An [http://url.com/ example].</pre></pre>- ===Wiki-links:===+ Wiki-links:<pre>An [[example]] wikilink, possibly even<pre>An [[example]] wikilink, possibly evenLine 33: Line 36: </pre></pre>- ===Categories: add the page to a category as follows:===+ Categories: add the page to a category as follows:<pre>[[category:example]]<pre>[[category:example]]</pre></pre>- ==Images==+ ===Images===- ===Not floated:===+ Not floated:<pre>[[Image:example.png]]<pre>[[Image:example.png]]</pre></pre>- ===Thumbnail, with a caption, floated left, 200 pixels wide:===+ Thumbnail, with a caption, floated left, 200 pixels wide:<pre>[[Image:example.png|left|200px|Floating!]]<pre>[[Image:example.png|left|200px|Floating!]]</pre></pre>- ===Link to the image, but don't show it on the page:===+ Link to the image, but don't show it on the page:<pre>[[:Image:example.png|example.png]]<pre>[[:Image:example.png|example.png]]</pre></pre>- ==Headers==+ ===Headers===<pre>== Header 2 ==<pre>== Header 2 ==Line 64: Line 67: </pre></pre>- ==Lists==+ ===Lists===- ===Ordered:===+ Ordered:<pre># Foo<pre># FooLine 72: Line 75: </pre></pre>- ===Unordered:===+ Unordered:<pre>* A list item. <br> With a line break.<pre>* A list item. <br> With a line break.Line 78: Line 81: </pre></pre>- ===Definition:===+ Definition:<pre>; a term<pre>; a termLine 86: Line 89: </pre></pre>- ===They can be nested:===+ They can be nested:<pre>* Abacus<pre>* AbacusLine 98: Line 101: </pre></pre>- ===Definitions, without the word they are defining, are used+ Definitions, without the word they are defining, are used- to indent talk pages:===+ to indent talk pages:<pre>Delete this article! [[user:spam]]<pre>Delete this article! [[user:spam]]Line 105: Line 108: </pre></pre>- ==Signatures==+ ===Signatures===- ==Comments should be signed:==+ Comments should be signed:<pre>~~~ is my signature<pre>~~~ is my signatureLine 114: Line 117: </pre></pre>- ==Use HTML for other formatting==+ Use HTML for other formatting- ==For a monospaced font:==+ For a monospaced font:<pre>use the <tt>tt</tt> tag.<pre>use the <tt>tt</tt> tag.</pre></pre>- ==To center text:==+ To center text:<pre><center>put me in the middle</center><pre><center>put me in the middle</center></pre></pre>- ==For a blockquote:==+ For a blockquote:<pre><blockquote>To be or not to be…</blockquote><pre><blockquote>To be or not to be…</blockquote></pre></pre>- ==Prevent wiki formatting==+ ===Prevent wiki formatting===<pre>Use the <nowiki>'''tag'' to write<pre>Use the <nowiki>'''tag'' to writeLine 139: Line 142: </pre></pre>- ==Templates==+ ===Templates===One page can be transcluded in another page by using a template:One page can be transcluded in another page by using a template:Line 146: Line 149: </pre></pre>- ==Horizontal Rules==+ ===Horizontal Rules===Four or more dashes:Four or more dashes:Line 152: Line 155: <pre>----<pre>----</pre></pre>+ + ===Redirect===+ + <pre>#REDIRECT [[pagename]]</pre>+ + ===Menus===+ + [[MediaWiki:Sidebar]]+ + [[category:MediaWiki]]+ [[category:WebDev]]+ [[category:Programming]]+ [[category:Web]]+ [[category:HTML]]Current revision as of 19:31, 14 July 2013
Contents
MediaWiki Cheat Sheet
Paragraphs
Two line breaks will signify a paragraph. New paragraph starts here. For a linebreak, just use <br/> the html tag
Phrase Emphasis
''italics'' '''bold'''
Links
External:
An [http://url.com/ example].
Wiki-links:
An [[example]] wikilink, possibly even from another namespace: [[talk:example]]. Renaming [[hyperlink|links]] is easy.
Categories: add the page to a category as follows:
[[category:example]]
Images
Not floated:
[[Image:example.png]]
Thumbnail, with a caption, floated left, 200 pixels wide:
[[Image:example.png|left|200px|Floating!]]
Link to the image, but don't show it on the page:
[[:Image:example.png|example.png]]
Headers
== Header 2 == === Header 3 === ====== Header 6 ======
Lists
Ordered:
# Foo # Bar
Unordered:
* A list item. <br> With a line break. * Bar
Definition:
; a term : some defining : and more defining ; and another term : definition
They can be nested:
* Abacus ** answer * Bubbles *# bunk *# bupkis *#; BELITTLER : one who belittles *# burper * Cunning
Definitions, without the word they are defining, are used to indent talk pages:
Delete this article! [[user:spam]] : No, it's great! [[user:eggs]]
Signatures
Comments should be signed:
~~~ is my signature ~~~~ is my signature with datestamp ~~~~~ is just the datestamp
Use HTML for other formatting
For a monospaced font:
use the <tt>tt</tt> tag.
To center text:
<center>put me in the middle</center>
For a blockquote:
<blockquote>To be or not to be…</blockquote>
Prevent wiki formatting
Use the <nowiki>'''tag'' to write '''about''</nowiki> mediawiki code itself, or suppress rendering for some other reason.
Templates
One page can be transcluded in another page by using a template:
{{templates}} go in curly braces
Horizontal Rules
Four or more dashes:
----
Redirect
#REDIRECT [[pagename]]
Menus
-
Meta