-
(Difference between revisions)
(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…')Line 2: Line 2: <h2>Paragraphs</h2><h2>Paragraphs</h2>- <pre><code>Two line breaks+ <pre>Two line breakswill signifywill signifya paragraph.a paragraph.Line 11: Line 11: For a linebreak, justFor a linebreak, justuse <br/> the html taguse <br/> the html tag- </code></pre>+ </pre><h2>Phrase Emphasis</h2><h2>Phrase Emphasis</h2>- <pre><code>''italics''+ <pre>''italics'''''bold''''''bold'''- </code></pre>+ </pre><h2>Links</h2><h2>Links</h2>Line 23: Line 23: <p>External:</p><p>External:</p>- <pre><code>An [http://url.com/ example].+ <pre>An [http://url.com/ example].- </code></pre>+ </pre><p>Wiki-links:</p><p>Wiki-links:</p>- <pre><code>An [[example]] wikilink, possibly even+ <pre>An [[example]] wikilink, possibly evenfrom another namespace: [[talk:example]].from another namespace: [[talk:example]].Renaming [[hyperlink|links]] is easy.Renaming [[hyperlink|links]] is easy.- </code></pre>+ </pre><p>Categories: add the page to a category as follows:</p><p>Categories: add the page to a category as follows:</p>- <pre><code>[[category:example]]+ <pre>[[category:example]]- </code></pre>+ </pre><h2>Images</h2><h2>Images</h2>Line 42: Line 42: <p>Not floated:</p><p>Not floated:</p>- <pre><code>[[Image:example.png]]+ <pre>[[Image:example.png]]- </code></pre>+ </pre><p>Thumbnail, with a caption, floated left, 200 pixels wide:</p><p>Thumbnail, with a caption, floated left, 200 pixels wide:</p>- <pre><code>[[Image:example.png|left|200px|Floating!]]+ <pre>[[Image:example.png|left|200px|Floating!]]- </code></pre>+ </pre><p>Link to the image, but don't show it on the page:</p><p>Link to the image, but don't show it on the page:</p>- <pre><code>[[:Image:example.png|example.png]]+ <pre>[[:Image:example.png|example.png]]- </code></pre>+ </pre><h2>Headers</h2><h2>Headers</h2>- <pre><code>== Header 2 ==+ <pre>== Header 2 ===== Header 3 ====== Header 3 ========= Header 6 ============ Header 6 ======- </code></pre>+ </pre><h2>Lists</h2><h2>Lists</h2>Line 68: Line 68: <p>Ordered:</p><p>Ordered:</p>- <pre><code># Foo+ <pre># Foo# Bar# Bar- </code></pre>+ </pre><p>Unordered:</p><p>Unordered:</p>- <pre><code>* A list item. <br> With a line break.+ <pre>* A list item. <br> With a line break.* Bar* Bar- </code></pre>+ </pre><p>Definition:</p><p>Definition:</p>- <pre><code>; a term+ <pre>; a term: some defining: some defining: and more defining: and more defining; and another term : definition; and another term : definition- </code></pre>+ </pre><p>They can be nested:</p><p>They can be nested:</p>- <pre><code>* Abacus+ <pre>* Abacus** answer** answer* Bubbles* BubblesLine 96: Line 96: *# burper*# burper* Cunning* Cunning- </code></pre>+ </pre><p>Definitions, without the word they are defining, are used<p>Definitions, without the word they are defining, are usedto indent talk pages:</p>to indent talk pages:</p>- <pre><code>Delete this article! [[user:spam]]+ <pre>Delete this article! [[user:spam]]: No, it's great! [[user:eggs]]: No, it's great! [[user:eggs]]- </code></pre>+ </pre><h2>Signatures</h2><h2>Signatures</h2>Line 109: Line 109: <p>Comments should be signed:</p><p>Comments should be signed:</p>- <pre><code>~~~ is my signature+ <pre>~~~ is my signature~~~~ is my signature with datestamp~~~~ is my signature with datestamp~~~~~ is just the datestamp~~~~~ is just the datestamp- </code></pre>+ </pre><h2>Use HTML for other formatting</h2><h2>Use HTML for other formatting</h2>Line 118: Line 118: <p>For a monospaced font:</p><p>For a monospaced font:</p>- <pre><code>use the <tt>tt</tt> tag.+ <pre>use the <tt>tt</tt> tag.- </code></pre>+ </pre><p>To center text:</p><p>To center text:</p>- <pre><code><center>put me in the middle</center>+ <pre><center>put me in the middle</center>- </code></pre>+ </pre><p>For a blockquote:</p><p>For a blockquote:</p>- <pre><code><blockquote>To be or not to be…</blockquote>+ <pre><blockquote>To be or not to be…</blockquote>- </code></pre>+ </pre><h2>Prevent wiki formatting</h2><h2>Prevent wiki formatting</h2>- <pre><code>Use the <nowiki>'''tag'' to write+ <pre>Use the <nowiki>'''tag'' to write'''about''</nowiki> mediawiki code'''about''</nowiki> mediawiki codeitself, or suppress rendering foritself, or suppress rendering forsome other reason.some other reason.- </code></pre>+ </pre><h2>Templates</h2><h2>Templates</h2>Line 144: Line 144: by using a template:</p>by using a template:</p>- <pre><code>{{templates}} go in curly braces+ <pre>{{templates}} go in curly braces- </code></pre>+ </pre><h2>Horizontal Rules</h2><h2>Horizontal Rules</h2>Line 151: Line 151: <p>Four or more dashes:</p><p>Four or more dashes:</p>- <pre><code>----+ <pre>----- </code></pre>+ </pre>Revision as of 05:07, 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