MozillaZine Knowledge Base:Formatting: Difference between revisions
(revert) |
m (→URLs, Links) |
||
Line 18: | Line 18: | ||
==URLs, Links== | ==URLs, Links== | ||
This is quite easy, use single [] or double <nowiki> [[ ]].</nowiki> | This is quite easy, use single [] or double <nowiki>[[ ]]</nowiki>. | ||
* | *Internal links: <nowiki>[[Support Home]]</nowiki> = [[Support Home]]. | ||
* | *Named internal links: <nowiki>[[Support Home | Home for support]]</nowiki> = [[Support Home | Home for support]]. | ||
*Contracted external links: <nowiki>[http://mozilla.org/]</nowiki> = [http://mozilla.org/]. | |||
*Named external links: <nowiki>[http://mozilla.org/ Mozilla Home]</nowiki> = [http://mozilla.org/ Mozilla Home]. | *Named external links: <nowiki>[http://mozilla.org/ Mozilla Home]</nowiki> = [http://mozilla.org/ Mozilla Home]. | ||
*Explicit external links: <nowiki>[http://mozilla.org/ http://mozilla.org/]</nowiki> = [http://mozilla.org/ http://mozilla.org/]. | |||
*Any trick with anchors works in the wiki too. | *Any trick with anchors works in the wiki too. | ||
Revision as of 11:01, 11 April 2005
Character Formatting
Emphasis
- ''Double apostrophes'' = Double apostrophes
- '''Triple apostrophes''' = Triple apostrophes
- '''''Five apostrophes''''' = Five apostrophes
Code
Code may be entered as monospace lines by beginning a line with a space. Formatting is preserved. For example:
for(int a=0;a<1;a++) { do_something(); }
HTML and Wiki-code is still processed in monospace lines.
URLs, Links
This is quite easy, use single [] or double [[ ]].
- Internal links: [[Support Home]] = Support Home.
- Named internal links: [[Support Home | Home for support]] = Home for support.
- Contracted external links: [http://mozilla.org/] = [1].
- Named external links: [http://mozilla.org/ Mozilla Home] = Mozilla Home.
- Explicit external links: [http://mozilla.org/ http://mozilla.org/] = http://mozilla.org/.
- Any trick with anchors works in the wiki too.
Document structure
Section headers: =Header Example= gives you a:
Header Example
which will add an entry to the table of contents. Subsections: in order to have subsections, add one more equal sign to both sides of the code (====Subheader Example====)
Subheader Example
and adds an entry to the table of contents. Note: there are six levels of document headers in MediaWiki, hence six different header code (largest header has one equal sign, second largest has two, etc.)
Lists
Lists: *,# at the beginning of a line gives
- Unordered list
- Ordered list
For levels of lists, add more *,#s:
- Unordered list
- Ordered list
Indented Text
When you use the : (colon) at the beginning of a line it will be indented.
For example:
:Hello I am the indented line :Hello I am the next indented line.
Gives:
- Hello I am the indented line
- Hello I am the next indented line.
Tables
Tables are explained on a separate page.
Miscellaneous
- For those of us that like center aligned text: <center>'''Me'''</center>
gives you:
Signatures
More Information
More advanced editing is explained at Wikipedia's MetaWiki.