''This page is under translation now.''

!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
マイナス記号「-」を行の先頭から4つ書くと水平線になります．

!! 記述例

 最初の段落
 ---- 
 第二段落
 ----ここになにか書いてあっても無視されます．
 第三段落

!! 出力例

最初の段落の文章．
---- ここになにか書いてあっても無視されます．
第二段落の文章．
----第二段落と第三段落の区切線です．
第三段落の文章．

----
! Link

リンクはページ内のインラインマークアップが有効な場所でのみ作れます．

リンクには自動的に作成されるものとして，

* WikiName によるリンク
* 文中の URL によるリンク

明示的に作成するものとして，

* マークアップによるリンク

の計3つがあります．

!!WikiNameによるリンク
*大文字の英字で始まり、小文字の英字または数字が1文字以上続く
*この条件が2回以上繰り返される単語はWikiNameとなり自動的に，
その名前のページにリンクがはられます．

!!!記述例
 WikiName     - WikiName
 HogeRule1    - WikiName
 NOTWIKINAME  - 全て大文字なのでWikiNameではない
 WikiNAME     - NAMEが全て大文字なのでWikiNameではない
 fooWikiName  - 先頭に全て小文字の英字fooがあるためWikiNameではない

!!!出力例
**WikiName     - WikiName
**HogeRule1    - WikiName
**NOTWIKINAME  - 全て大文字なのでWikiNameではない
**WikiNAME     - NAMEが全て大文字なのでWikiNameではない
**fooWikiName  - 先頭に全て小文字の英字fooがあるためWikiNameではない

!! 文中の URL によるリンク
インラインマークアップが有効な部分のテキストにURLっぽいものがあると
自動的にリンクがはられます．

!!! 記述例
 そういうことは http://www.google.co.jp/ で調べてから質問してください．

!!! 出力例

そういうことは http://www.google.co.jp/ で調べてから質問してください．

!! マークアップによるリンク

*ページへのリンクは以下のように記述します．
 [[<ページ名>]]
*任意のURLへのリンクは以下のように記述します．
 [[<リンク名>|<URL>]]
*URLのファイル名の末尾が jpg,jpeg,png,gif だとIMGタグに
展開されます．（指定した単語がALTに設定される）
*URLが「#」で始まる場合はページ内のリンクとみなします．
ページ内同じページ内にある
** 見出し
** 用語定義リストの用語
に対してリンクが張れます．


* 記述例
 *このサイトについては[[FrontPage]]を読んでください．
 *その他技術的なことは[[Google|http://www.google.co.jp/]] で調べてから
 質問してください． 
 [[ぐーぐる|http://www.google.co.jp/intl/ja_jp/images/logo.gif]]
 * [[見出し|#見出し]]

* 出力例

*このサイトについては[[FrontPage]]を読んでください．
*その他技術的なことは [[Google|http://www.google.co.jp/]] で調べてから
質問してください．
[[ぐーぐる|http://www.google.co.jp/intl/ja_jp/images/logo.gif]]
* [[見出し|#見出し]]


! 文字列の修飾
ページ内のインラインマークアップが有効な場所は簡単な文字列の修飾ができます．

*「'」2個で挟んだ部分は強調されます．
*「'」3個で挟んだ部分はさらに強調されます．
*「=」2個で挟んだ部分は取消線になります．

* 記述例
 このようにすると''強調''になります．
 そして、このようにすると'''さらに強調'''されます．
 ==だるいけど==さらに、取り消し線もサポートしています．

* 出力例

このようにすると''強調''になります．
そして、このようにすると'''さらに強調'''されます．
==だるいけど==さらに、取り消し線もサポートしています．


!Reference

テキストの記述ルールは 
[[Hiki|http://www.namaraii.com/hiki/]]
を参考にしました．

