''Please correct any "strange English" you may find.''

!Table of Contents

* [[Parts of Page|#Parts of Page]]
* [[Paragraph|#Paragraph]]
* [[Headline|#Headline]]
* [[List|#List]]
* [[Term Definition List|#Term Definition List]]
* [[Quotation|#Quotation]]
* [[Preformat Text|#Preformat Text]]
* [[Table|#Table]]
* [[Horizontal Line|#Horizontal Line]]
* [[Link|#Link]]
* [[Text Markup|#Text Markup]]
* [[Reference|#Reference]]

!Parts of Page

!!Kinds of Lines

All the lines are classified into following either 
according to the character of the head of the sentence.

* Header Line : The line which starts in "!"
* Unordered List Item : The line which starts in "*"
* Ordered List Item : The line which starts in "#"
* Term Definition : The line which starts in ":"
* Quotation Line : The line which starts in tow double quatatio mark
* Preformat Text Line : The line which starts in " "(space)
* Table Line : The line which starts in ","(comma)
* Horizontal Line : The line which starts in "----"(four hyphens)
* Null Line : The line which consists of some blank characters(new line, space, or tab)
Null line becomes the pause of a paragraph.
* Text line : The line applicable to neither is a normal text.

!!Inline Markups
Inline markup becomes effective inside a header line, 
a list item, an ordered list item, a term definition, 
a table line, and a text line.

* Link : WikiName, URL, and a string inserted in two brackets
* Emphasis : String inserted with two single quotation mark
* Strong emphasis : String inserted with three single quotation mark
* Stroke : String inserted with two equal sign


!Paragraph

* The continuous text line regards it as one paragraph.
* Lines other than a text line become a pause of a paragraph.

!! Paragraph Description Example
 The continuous text line regards it as one paragraph.
 
 Even if a new-line enters 
 on the way, 
 it regards 
 as one paragraph.

!! Paragraph Output Example
The continuous text line regards it as one paragraph.

Even if a new-line enters 
on the way, 
it regards 
as one paragraph.



! Headline
* It will become a headline if "!" is written to the head of a line. 
* The number of "!" is from 1 to 5. It becomes such a small headline that the number of "!" is large.

!! Headline Description Example
 ! Headline 1
 !! Headline 2
 !!! Headline 3
 !!!! Headline 4
 !!!!! Headline 5

!! Headline Output Example
! Headline 1
!! Headline 2
!!! Headline 3
!!!! Headline 4
!!!!! Headline 5

! List
* The continuous unordered list item (line which begins from "*") becomes an unordered list. 
* The continuous ordered list item (line which begins from "#") becomes an ordered list. 
* "*" and "#" can be described from one to three, and can also be made into a nest. 


!! List Description Example
 * unordered list item 1
 ** unordered list item 1.1
 ** unordered list item 1.2
 *** unordered list item 1.2.1
 *** unordered list item 1.2.2
 *** unordered list item 1.2.3
 ** unordered list item 1.3
 ** unordered list item 1.4
 * unordered list item 2

 # ordered list item 1
 ## ordered list item 1.1
 ## ordered list item 1.2
 ### ordered list item 1.2.1
 ### ordered list item 1.2.2
 ### ordered list item 1.2.3
 ## ordered list item 1.3
 ## ordered list item 1.4
 # ordered list item 2

!! List Output Example

* unordered list item 1
** unordered list item 1.1
** unordered list item 1.2
*** unordered list item 1.2.1
*** unordered list item 1.2.2
*** unordered list item 1.2.3
** unordered list item 1.3
** unordered list item 1.4
* unordered list item 2

# ordered list item 1
## ordered list item 1.1
## ordered list item 1.2
### ordered list item 1.2.1
### ordered list item 1.2.2
### ordered list item 1.2.3
## ordered list item 1.3
## ordered list item 1.4
# ordered list item 2


! Definition List
* The continuous term definition (line which begins from ":") becomes a term definition list.
* A term definition divides a term and a definition by ":", 
and describes them like ":TERM:The description about TERM".


!! Definition List Description Example

 :Bear:General term of the department of bear
 :Gorilla:The anthropoid of the department of orangutan
 :Sheep:A group of the department of cow

!! Definition List Output Example

:Bear:General term of the department of bear
:Gorilla:The anthropoid of the department of orangutan
:Sheep:A group of the department of cow


! Quotation

* It will be quoted if two """ is written to the head of the sentence.
* Inline Markup is invalid.

!! Quotation Description Example

 ""This is quotation.
 ""Furthermore, quotation continues.
 ""In a quotation, an Inline Markup is invalid.
 ""It does not become a link even if 
 ""you writes like [[FrontPage]].
 ""Neither ''emphasis'' nor ==stroke== can also be used.

!! Quotation Output Example

""This is quotation.
""Furthermore, quotation continues.
""In a quotation, an Inline Markup is invalid.
""It does not become a link even if 
""you writes like [[FrontPage]].
""Neither ''emphasis'' nor ==stroke== can also be used.


! Preformat Text

* The continuous Preformatted Text Line regards it 
as one Preformat Text.
* Since the inputted text is outputted as it is, 
it is effective in the source code of a program.
* An Inline Markup is invalid.

!! Preformat Text Description Example

 #include<stdio.h>
 int main(int argc, char* argv[])
 {
     printf("Hello, World!!");
     return 0;
 }

!! Preformat Text Output Example

It is the same as the example of description.


! Table

* The continuous Table Line becomes a table.
* Each content of a table is divided by comma like a CSV format.
* If the contents of a table contain a comma, 
it is surrounded with a double quotation mark.
* You can use Inline Markup in contents of column.

!! Table Description Example
 ,Name,        Unit Price($), Number, Total Price($)
 ,Candy,                   1,  10000, "10,000"
 ,Chewing gum,             1,  15000, "15,000"

!! Table Output Example
,Name,        Unit Price($), Number, Total Price($)
,Candy,                   1,  10000, "10,000"
,Chewing gum,             1,  15000, "15,000"


! Horizontal Line
It will become a horizontal line 
if four hyphens are written to the head of a line. 

!! Horizontal Line Description Example

 First Paragraph
 ---- 
 Second Paragraph
 ---- This text is not displayed.
 Third Paragraph

!! Horizontal Line Output Example

First Paragraph
---- 
Second Paragraph
---- This text is not displayed.
Third Paragraph

----
! Link

There are three kinds of links.
* WikiName
* URL
* Link Markup

!! WikiName 

The character sequence which matches the following 
regular expressions will become a WikiName.

* ([A-Z][a-z0-9]+)([A-Z][a-z0-9]+)+

WikiName becomes a link to a page with the page name.

!!! WikiName Description Example
 * WikiName     - WikiName
 * HogeRule1    - WikiName
 * NOTWIKINAME  - Not WikiName
 * NotWikiNAME  - Not WikiName
 * fooWikiName  - Not WikiName

!!! WikiName Output Example
* WikiName     - WikiName
* HogeRule1    - WikiName
* NOTWIKINAME  - Not WikiName
* NotWikiNAME  - Not WikiName
* fooWikiName  - Not WikiName

!! URL Link

The URL in a text generates a link automatically.

!!! URL Link Description Example
 See http://www.google.com/

!!! URL Link Output Example
See http://www.google.com/

!! Link Markup

* Link to Page
 [[<PageName>]]
* Link to URL
 [[<Label>|<URL>]]
* If URL has the following extensions,
It make an img element in HTML.

*If URL start with '#', It make the link to label in same page. 
The following become a label.
** Headline
** Term part of Definition List


!!! Link Markup Description Example 
 * Please see [[FrontPage]], 
 if you want to know about this site.
 * Let's use a search engine like 
   [[Google(TM)|http://www.google.com/]].
   [[Google(TM)|http://www.google.com/images/logo.gif]]
 * Description about [[Headline|#Headline]]

!!! Link Markup Output Example
* Please see [[FrontPage]], 
if you want to know about this site.
* Let's use a search engine like 
  [[Google(TM)|http://www.google.com/]].
  [[Google(TM)|http://www.google.com/images/logo.gif]]
* Description about [[Headline|#Headline]]


! Text Markup

!!! Text Markup Description Example

 * ''Emphasis''
 * '''Stronger Emphasis'''
 * ==Cancellation Line==

!!! Text Markup Output Example

* ''Emphasis''
* '''Stronger Emphasis'''
* ==Cancellation Line==


! Reference
I referred to [[Hiki|http://www.namaraii.com/hiki/]].
