Help:Formatting: Difference between revisions

From Mallala
Marcus (talk | contribs)
mNo edit summary
Marcus (talk | contribs)
mNo edit summary
Line 7: Line 7:
You can format the page using Wikitext special characters.  
You can format the page using Wikitext special characters.  


{| cellspacing="0" cellpadding="2" border="1" style="width: 640px; height: 1000px;"
{| border="1" style="width: 832px; height: 3024px;"
|-
|-
! What it looks like  
! width="640px" | What it looks like on the wiki page
! What you type
! width="360px" | What you type
|-
|-
|  
|  
Line 40: Line 40:
But an empty line starts a new paragraph.  
But an empty line starts a new paragraph.  


When used in a list, a newline ''does'' affect the layout ([[#lists|see below]]).  
When used in a list, a newline ''does'' affect the layout (<a href="#lists">see below</a>).  


| <pre>A single newline
| <pre>A single newline
Line 73: Line 73:
|-
|-
| You should "sign" your comments on talk pages: <br>  
| You should "sign" your comments on talk pages: <br>  
*Three tildes gives your signature: [[User:Example|Example]] <br>  
*Three tildes gives your signature: &lt;a href="User:Example"&gt;Example&lt;/a&gt; <br>  
*Four tildes give your signature plus date/time: [[User:Example|Example]] 07:46, 27 November 2005 (UTC) <br>  
*Four tildes give your signature plus date/time: &lt;a href="User:Example"&gt;Example&lt;/a&gt; 07:46, 27 November 2005 (UTC) <br>  
*Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC) <br>
*Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC) <br>


Line 85: Line 85:
- Five tildes gives the  
- Five tildes gives the  
date/time alone: ~~~~~
date/time alone: ~~~~~
</pre>
|-
|
== Advanced Editing  ==
== Section headings  ==
''Headings'' organize your writing into sections. The ''Wiki'' software can automatically generate a &lt;a href="Help:Table of contents"&gt;table of contents&lt;/a&gt; from them. <!-- don't use standard since it will move the edit block -->
=== Subsection  ===
Using more "equals" (=) signs creates a subsection.
==== A smaller subsection  ====
Don't skip levels, like from two to four equals signs.
Start with 2 equals signs not 1 because 1 creates H1 tags which should be reserved for page title.
| <pre>== Section headings ==
''Headings'' organize your writing into
sections. The ''Wiki'' software can automatically
generate a [[Help:table of contents|table of contents]] from them.
=== Subsection ===
Using more "equals" (=) signs creates a subsection.
==== A smaller subsection ====
Don't skip levels, like from two to four equals signs.
Start with 2 equals signs not 1 because 1 creates H1
tags which should be reserved for page title.
</pre>
|- id="lists"
|
*''Unordered &lt;a href="Help:List"&gt;lists&lt;/a&gt;'' are easy to do:
**Start every line with a star.
***More stars indicate a deeper level.
<br>
*:Previous item continues. &lt;/dd&gt;
<br>
**A newline
*in a list
marks the end of the list.
*Of course you can start again.
| <pre>* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*: Previous item continues.
** A newline
* in a list 
marks the end of the list.
*Of course you can start again.
</pre>
|-
|
#''Numbered lists'' are:
##Very organized
##Easy to follow
A newline marks the end of the list.
#New numbering starts with 1.
| <pre># ''Numbered lists'' are:
## Very organized
## Easy to follow
A newline marks the end of the list.
# New numbering starts with 1.
</pre>
|-
|
Here's a ''definition list'':
<br>
;Word&nbsp; &lt;/dt&gt;
:Definition of the word &lt;/dd&gt;
;A longer phrase needing definition &lt;/dt&gt;
:Phrase defined &lt;/dd&gt;
;A word&nbsp; &lt;/dt&gt;
:Which has a definition &lt;/dd&gt;
:Also a second definition &lt;/dd&gt;
:And even a third &lt;/dd&gt;
<br>
Begin with a semicolon. One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
| <pre>Here's a ''definition list'':
; Word&nbsp;: Definition of the word
; A longer phrase needing definition
: Phrase defined
; A word&nbsp;: Which has a definition
: Also a second one
: And even a third
Begin with a semicolon. One item per line;
a newline can appear before the colon, but
using a space before the colon improves
parsing.
</pre>
|-
|
*You can even do mixed lists
*#and nest them
*#inside each other
*#*or break lines<br>in lists.
<br>
*#;definition lists &lt;/dt&gt;
*#:can be
*#:;nested&nbsp; &lt;/dt&gt;
*#::too &lt;/dd&gt; &lt;/dd&gt;
<br>
| <pre>* You can even do mixed lists
*# and nest them
*# inside each other
*#* or break lines&lt;br&gt;in lists.
*#; definition lists
*#: can be
*#:; nested&nbsp;: too
</pre>
|-
|
<br>
:A colon (:) indents a line or paragraph. &lt;/dd&gt;
<br>
A newline starts a new paragraph. <br> Should only be used on &lt;a _fcknotitle="true" href="Talk page"&gt;Talk page&lt;/a&gt;s. <br> For articles, you probably want the blockquote tag.
<br>
:We use 1 colon to indent once.
::We use 2 colons to indent twice.
:::3 colons to indent 3 times, and so on. &lt;/dd&gt; &lt;/dd&gt; &lt;/dd&gt;
<br>
| <pre>: A colon (:) indents a line or paragraph.
A newline starts a new paragraph.
Should only be used on talk pages.
For articles, you probably want the blockquote tag.
: We use 1 colon to indent once.
:: We use 2 colons to indent twice.
::: 3 colons to indent 3 times, and so on.
</pre>
|-
|
You can make &lt;a href="W:horizontal dividing line"&gt;horizontal dividing lines&lt;/a&gt; (----) to separate text.
----
But you should usually use sections instead, so that they go in the table of contents.
| <pre>You can make [[w:horizontal dividing line|horizontal dividing line]]s
(----) to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.
</pre>
|-
|
You can add footnotes to sentences using the ''ref'' tag -- this is especially good for citing a source.
<br>
:There are over six billion people in the world.&lt;ref&gt;CIA World Factbook, 2006.&lt;/ref&gt; &lt;/dd&gt;
<br>
References: &lt;references/&gt;
<br>
| <pre>You can add footnotes to sentences using
the ''ref'' tag -- this is especially good
for citing a source.
:There are over six billion people in the
world.&lt;ref&gt;CIA World Factbook, 2006.&lt;/ref&gt;
References: &lt;references/&gt;
</pre>
</pre>
|}
|}

Revision as of 19:54, 17 September 2009

Text formatting markup

This table lists the various formatting options available using Wikitext:

Basic text formatting

You can format the page using Wikitext special characters.

What it looks like on the wiki page What you type

You can italicize text by putting 2 apostrophes on each side.

3 apostrophes will embolden the text.

5 apostrophes will embolden and italicize the text.

(Using 4 apostrophes doesn't do anything special --
the last pair are just 'left over ones' that are included as part of the text.)

You can ''italicize text'' by putting 2 
apostrophes on '''each''' side. 

3 apostrophes will '''embolden the text'''. 

5 apostrophes will '''embolden''' and ''italicize'' 
'''''the text'''''.

(Using 4 apostrophes doesn't do anything
special -- <br /> the last pair are just 
''''left over ones'''' that are included 
as part of the text.)

A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the diff function (used internally to compare different versions of a page).

But an empty line starts a new paragraph.

When used in a list, a newline does affect the layout (<a href="#lists">see below</a>).

A single newline
generally has no effect on the layout.
These can be used to separate
sentences within a paragraph.
Some editors find that this aids editing
and improves the ''diff'' function
(used internally to compare
different versions of a page).

But an empty line
starts a new paragraph.

When used in a list, a newline ''does''
affect the layout ([[#lists|see below]]).

You can break lines
without a new paragraph.
Please use this sparingly.

Please do not start a link or italics or bold text on one line and end on the next.

You can break lines<br/>
without a new paragraph.<br/>
Please use this sparingly.

Please do not start a link or
''italics'' or '''bold''' text on one line
and end on the next.
You should "sign" your comments on talk pages:
  • Three tildes gives your signature: <a href="User:Example">Example</a>
  • Four tildes give your signature plus date/time: <a href="User:Example">Example</a> 07:46, 27 November 2005 (UTC)
  • Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC)
You should "sign" your comments 
on talk pages:
- Three tildes gives your
signature: ~~~
- Four tildes give your 
signature plus date/time: ~~~~
- Five tildes gives the 
date/time alone: ~~~~~

Advanced Editing

Section headings

Headings organize your writing into sections. The Wiki software can automatically generate a <a href="Help:Table of contents">table of contents</a> from them.

Subsection

Using more "equals" (=) signs creates a subsection.

A smaller subsection

Don't skip levels, like from two to four equals signs.

Start with 2 equals signs not 1 because 1 creates H1 tags which should be reserved for page title.

== Section headings ==

''Headings'' organize your writing into 
sections. The ''Wiki'' software can automatically 
generate a [[Help:table of contents|table of contents]] from them.

=== Subsection ===
Using more "equals" (=) signs creates a subsection.

==== A smaller subsection ====

Don't skip levels, like from two to four equals signs.

Start with 2 equals signs not 1 because 1 creates H1 
tags which should be reserved for page title.
  • Unordered <a href="Help:List">lists</a> are easy to do:
    • Start every line with a star.
      • More stars indicate a deeper level.


  • Previous item continues. </dd>


    • A newline
  • in a list

marks the end of the list.

  • Of course you can start again.
* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*: Previous item continues.
** A newline
* in a list  
marks the end of the list.
*Of course you can start again.
  1. Numbered lists are:
    1. Very organized
    2. Easy to follow

A newline marks the end of the list.

  1. New numbering starts with 1.
# ''Numbered lists'' are:
## Very organized
## Easy to follow
A newline marks the end of the list.
# New numbering starts with 1.

Here's a definition list:


Word  </dt>
Definition of the word </dd>
A longer phrase needing definition </dt>
Phrase defined </dd>
A word  </dt>
Which has a definition </dd>
Also a second definition </dd>
And even a third </dd>


Begin with a semicolon. One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.

Here's a ''definition list'':
; Word : Definition of the word
; A longer phrase needing definition
: Phrase defined
; A word : Which has a definition
: Also a second one
: And even a third

Begin with a semicolon. One item per line; 
a newline can appear before the colon, but 
using a space before the colon improves 
parsing.
  • You can even do mixed lists
    1. and nest them
    2. inside each other
      • or break lines
        in lists.


    1. definition lists </dt>
      can be
      nested  </dt>
      too </dd> </dd>


* You can even do mixed lists
*# and nest them
*# inside each other
*#* or break lines<br>in lists.
*#; definition lists
*#: can be 
*#:; nested : too


A colon (:) indents a line or paragraph. </dd>


A newline starts a new paragraph.
Should only be used on <a _fcknotitle="true" href="Talk page">Talk page</a>s.
For articles, you probably want the blockquote tag.


We use 1 colon to indent once.
We use 2 colons to indent twice.
3 colons to indent 3 times, and so on. </dd> </dd> </dd>


: A colon (:) indents a line or paragraph.
A newline starts a new paragraph.
Should only be used on talk pages.
For articles, you probably want the blockquote tag.
: We use 1 colon to indent once.
:: We use 2 colons to indent twice.
::: 3 colons to indent 3 times, and so on.

You can make <a href="W:horizontal dividing line">horizontal dividing lines</a> (----) to separate text.


But you should usually use sections instead, so that they go in the table of contents.

You can make [[w:horizontal dividing line|horizontal dividing line]]s 
(----) to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.

You can add footnotes to sentences using the ref tag -- this is especially good for citing a source.


There are over six billion people in the world.<ref>CIA World Factbook, 2006.</ref> </dd>


References: <references/>


You can add footnotes to sentences using
the ''ref'' tag -- this is especially good
for citing a source.

:There are over six billion people in the
world.<ref>CIA World Factbook, 2006.</ref>

References: <references/>