Help:Me
This wiki is powered by "MediaWiki" - like Wikipedia, and also like the Mozilla intranet. MediaWiki uses a simple form of markup to enrich plain text. This is a cheat sheet; the standard editing help page is... comprehensive. Lots of trees, hard to see the wood. If you bookmark this page then you can just type "Help Me" into your Awesomebar whenever you need it.
If you have text already marked up with HTML, much of it will Just Work. Paste it in to the Edit box, press "Show preview", and see how it looks. (Sadly, links don't work - you have to convert them to using the syntax below.) You can mix HTML and MediaWiki markup in the same page.
Type things from the left into the page editing box of the page you are editing, and the result will be what you see on the right. If you want to experiment without messing up anything important, practise by editing your personal user page.
==Heading== |
Heading |
===Smaller heading (more 'equals' signs; use up to 5)=== |
Smaller heading (more 'equals' signs; use up to 5) |
Separate your paragraphs with a blank line, just like in plain text. Otherwise text just flows, even past a single newline. |
Separate your paragraphs with a blank line, just like in plain text.
Otherwise text just flows, even past a single newline.
Explicit line breaks are also possible, e.g. for poetry, like this: |
* Bulleted list - first character on the line is a * ** Sub-bulleted list - multiple *s, but still first characters on the line |
|
# Numbered list - first character on the line is a #
# Here's another item |
|
[[Help:Editing|Links within the wiki]] - two square brackets on either side. The (optional) link text is separated from the page name by a | (pipe). | Links within the wiki - two square brackets on either side. The (optional) link text is separated from the page name by a | (pipe). |
[http://www.mozilla.org/ Links to other sites] - one square bracket, and a space separator for the link text. You will get these two forms mixed up. :-| Simpler but more ugly - just type the URL and it will autolinkify: http://www.mozilla.org/ | Links to other sites - one square bracket, and a space separator for the link text. You will get these two forms mixed up. :-| Simpler but more ugly - just type the URL and it will autolinkify: http://www.mozilla.org/ |
Start a line with whitespace to have it rendered like this, as 'preformatted' - good for code, program output etc. |
Start a line with whitespace to have it rendered like this, as 'preformatted' - good for code, program output etc. |
'''Three single quotes for bold'''. | Three single quotes for bold. |
''Two single quotes for italics''. | Two single quotes for italics. |
<tt>TT for a monospace font, e.g. for technical terms or code</tt>. | TT for a monospace font, e.g. for technical terms or code. |
Upload images, PDFs, documents etc. using the [[Special:Upload]] page, and make a link to them [[media:Devbeast.png|like this]]. Display images directly in the page like this: [[Image:Devbeast.png]] |
Upload images, PDFs, documents etc. using the Special:Upload page, and make a link to them like this. Display images directly in the page like this: |
"Templates" use two curly brackets to include standard snippets of text by name. E.g. {{bug|123456}} links to a bug. See below for a handy list. | "Templates" use two curly brackets to include standard snippets of text. E.g. bug 123456 links to a bug. See below for a handy list. |
Useful Templates
Templates are implemented by wiki pages prefixed with "Template:" (such as Template:MDN) containing boilerplate markup, sometimes complicated expressions, and ideally some documentation. They differ between wikis.
{{draft}} - worth putting at the top of all unfinished pages, for clarity | |
{{bug|123456}} - link to a bug in Mozilla's Bugzilla | bug 123456 |
{{warning|Danger! Rampaging memes!}} - issue a warning of some sort | |
{{outdated}} - simple, common form of warning for outdated pages |
A Little More Advanced
The below capabilities are also useful to know about:
- If two pages have duplicate information, you can consolidate onto a single page and have the other page redirect to the new best source. You do that by removing all the text and replacing it with:
#REDIRECT [[pagename]]
e.g.
#REDIRECT [[Help:Me]]