-
(Difference between revisions)
Line 1: Line 1: ==MediaWiki Cheat Sheet====MediaWiki Cheat Sheet==- <h2>Paragraphs</h2>+ ==Paragraphs==- <pre>Just type like you normally would.Two line breaksfora...+ <pre>Two line breaks+ will signify+ a paragraph.- ...paragraph. One line break for...+ New paragraph starts- the next line.+ here.- You can alsousean HTML<br/> tag+ For a linebreak, just+ use <br/> the html tag</pre></pre>- <h2>Phrase Emphasis</h2>+ ==Phrase Emphasis==<pre>''italics''<pre>''italics''Line 16: Line 19: </pre></pre>- <h2>Links</h2>+ ==Links==- <p>External:</p>+ ===External:===<pre>An [http://url.com/ example].<pre>An [http://url.com/ example].</pre></pre>- <p>Wiki-links:</p>+ ===Wiki-links:===<pre>An [[example]] wikilink, possibly even<pre>An [[example]] wikilink, possibly evenLine 30: Line 33: </pre></pre>- <p>Categories: add the page to a category as follows:</p>+ ===Categories: add the page to a category as follows:===<pre>[[category:example]]<pre>[[category:example]]</pre></pre>- <h2>Images</h2>+ ==Images==- <p>Not floated:</p>+ ===Not floated:===<pre>[[Image:example.png]]<pre>[[Image:example.png]]</pre></pre>- <p>Thumbnail, with a caption, floated left, 200 pixels wide:</p>+ ===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>- <p>Link to the image, but don't show it on the page:</p>+ ===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>- <h2>Headers</h2>+ ==Headers==<pre>== Header 2 ==<pre>== Header 2 ==Line 61: Line 64: </pre></pre>- <h2>Lists</h2>+ ==Lists==- <p>Ordered:</p>+ ===Ordered:===<pre># Foo<pre># FooLine 69: Line 72: </pre></pre>- <p>Unordered:</p>+ ===Unordered:===<pre>* A list item. <br> With a line break.<pre>* A list item. <br> With a line break.Line 75: Line 78: </pre></pre>- <p>Definition:</p>+ ===Definition:===<pre>; a term<pre>; a termLine 83: Line 86: </pre></pre>- <p>They can be nested:</p>+ ===They can be nested:===<pre>* Abacus<pre>* AbacusLine 95: Line 98: </pre></pre>- <p>Definitions, without the word they are defining, are used+ ===Definitions, without the word they are defining, are used- to indent talk pages:</p>+ to indent talk pages:===<pre>Delete this article! [[user:spam]]<pre>Delete this article! [[user:spam]]Line 102: Line 105: </pre></pre>- <h2>Signatures</h2>+ ==Signatures==- <p>Comments should be signed:</p>+ ==Comments should be signed:==<pre>~~~ is my signature<pre>~~~ is my signatureLine 111: Line 114: </pre></pre>- <h2>Use HTML for other formatting</h2>+ ==Use HTML for other formatting==- <p>For a monospaced font:</p>+ ==For a monospaced font:==<pre>use the <tt>tt</tt> tag.<pre>use the <tt>tt</tt> tag.</pre></pre>- <p>To center text:</p>+ ==To center text:==<pre><center>put me in the middle</center><pre><center>put me in the middle</center></pre></pre>- <p>For a blockquote:</p>+ ==For a blockquote:==<pre><blockquote>To be or not to be…</blockquote><pre><blockquote>To be or not to be…</blockquote></pre></pre>- <h2>Prevent wiki formatting</h2>+ ==Prevent wiki formatting==<pre>Use the <nowiki>'''tag'' to write<pre>Use the <nowiki>'''tag'' to writeLine 136: Line 139: </pre></pre>- <h2>Templates</h2>+ ==Templates==- <p>One page can be transcluded in another page+ One page can be transcluded in another page by using a template:- by using a template:</p>+ <pre>{{templates}} go in curly braces<pre>{{templates}} go in curly braces</pre></pre>- <h2>Horizontal Rules</h2>+ ==Horizontal Rules==- <p>Four or more dashes:</p>+ Four or more dashes:<pre>----<pre>----</pre></pre>Revision as of 05:15, 12 March 2010
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:
----
- Meta