-
(Difference between revisions)
Grahamenglish (Talk | contribs)
(Created page with '==MediaWiki Cheat Sheet== <h2>Paragraphs</h2> <pre><code>Two line breaks will signify a paragraph. New paragraph starts here. For a linebreak, just use <br/> the html ta…')
Newer edit →Revision as of 05:06, 12 March 2010
Contents
MediaWiki Cheat Sheet
Paragraphs
<code>Two line breaks will signify a paragraph. New paragraph starts here. For a linebreak, just use <br/> the html tag </code>
Phrase Emphasis
<code>''italics'' '''bold''' </code>
Links
External:
<code>An [http://url.com/ example]. </code>
Wiki-links:
<code>An [[example]] wikilink, possibly even from another namespace: [[talk:example]]. Renaming [[hyperlink|links]] is easy. </code>
Categories: add the page to a category as follows:
<code>[[category:example]] </code>
Images
Not floated:
<code>[[Image:example.png]] </code>
Thumbnail, with a caption, floated left, 200 pixels wide:
<code>[[Image:example.png|left|200px|Floating!]] </code>
Link to the image, but don't show it on the page:
<code>[[:Image:example.png|example.png]] </code>
Headers
<code>== Header 2 == === Header 3 === ====== Header 6 ====== </code>
Lists
Ordered:
<code># Foo # Bar </code>
Unordered:
<code>* A list item. <br> With a line break. * Bar </code>
Definition:
<code>; a term : some defining : and more defining ; and another term : definition </code>
They can be nested:
<code>* Abacus ** answer * Bubbles *# bunk *# bupkis *#; BELITTLER : one who belittles *# burper * Cunning </code>
Definitions, without the word they are defining, are used to indent talk pages:
<code>Delete this article! [[user:spam]] : No, it's great! [[user:eggs]] </code>
Signatures
Comments should be signed:
<code>~~~ is my signature ~~~~ is my signature with datestamp ~~~~~ is just the datestamp </code>
Use HTML for other formatting
For a monospaced font:
<code>use the <tt>tt</tt> tag. </code>
To center text:
<code><center>put me in the middle</center> </code>
For a blockquote:
<code><blockquote>To be or not to be…</blockquote> </code>
Prevent wiki formatting
<code>Use the <nowiki>'''tag'' to write '''about''</nowiki> mediawiki code itself, or suppress rendering for some other reason. </code>
Templates
One page can be transcluded in another page by using a template:
<code>{{templates}} go in curly braces </code>
Horizontal Rules
Four or more dashes:
<code>---- </code>
- Meta