MozillaZine Knowledge Base:Formatting: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(revert)
Line 2: Line 2:


===Emphasis===
===Emphasis===
*<nowiki>''Double apostrophes''</nowiki> = ''Double apostrophes''
*<nowiki>'''Triple apostrophes'''</nowiki> = '''Triple apostrophes'''
*<nowiki>'''''Five apostrophes'''''</nowiki> = '''''Five apostrophes'''''
*<nowiki>'''''Five apostrophes'''''</nowiki> = '''''Five apostrophes'''''


Line 19: Line 21:
*Internal links: <nowiki>[[Support Home]]</nowiki> = [[Support Home]] .
*Internal links: <nowiki>[[Support Home]]</nowiki> = [[Support Home]] .
*External links as footnotes: <nowiki>[http://mozilla.org/]</nowiki> = [http://mozilla.org/].
*External links as footnotes: <nowiki>[http://mozilla.org/]</nowiki> = [http://mozilla.org/].
*Named external links: Bitch[http://bitch.netShut up]</nowiki> = [http://bitch.netShut up].
*Named external links: <nowiki>[http://mozilla.orgMozilla Home]</nowiki> = [http://mozilla.orgMozilla Home].
*Any trick with anchors works in the wiki too.
*Any trick with anchors works in the wiki too.


==Document structure==
==Document structure==
Section headers: <nowiki>=Header Example=</nowiki> gives you a kick:
Section headers: <nowiki>=Header Example=</nowiki> gives you a:
===Header Example===
===Header Example===
which will add an entry to the table of contents.
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 (<nowiki>====Subheader Example - 01====</nowiki>)(<nowiki>====Subheader Example - 02====</nowiki>)(<nowiki>====Subheader Example - 03====</nowiki>)(<nowiki>====Subheader Example - 04====</nowiki>)
Subsections: in order to have subsections, add one more equal sign to both sides of the code (<nowiki>====Subheader Example====</nowiki>)
====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===
Line 54: Line 59:


===Signatures===
===Signatures===
*Sign with nickname: <nowiki>~~~</nowiki> = [[User:Mr.Big|Mr.Big]] .
*Sign with nickname: <nowiki>~~~</nowiki> = [[User:Heroist|Heroist]] .
*Nickname and date: <nowiki>~~~~</nowiki> = [[User:Mr.Big|Mr.Big]] 09:27, 31 Jan 2004 (PST).
*Nickname and date: <nowiki>~~~~</nowiki> = [[User:Heroist|Heroist]] 09:27, 31 Jan 2004 (PST).


==More Information==
==More Information==
More advanced editing is explained at [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide:_Editing_overview Wikipedia's MetaWiki].
More advanced editing is explained at [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide:_Editing_overview Wikipedia's MetaWiki].

Revision as of 10:28, 28 March 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 .
  • External links as footnotes: [http://mozilla.org/] = [1].
  • Named external links: [http://mozilla.org/ Mozilla Home] = Mozilla Home.
  • 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
  1. Ordered list

For levels of lists, add more *,#s:

    • Unordered list
    1. 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:

Me

Signatures

  • Sign with nickname: ~~~ = Heroist .
  • Nickname and date: ~~~~ = Heroist 09:27, 31 Jan 2004 (PST).

More Information

More advanced editing is explained at Wikipedia's MetaWiki.