#multilang(ja){{ TITLE:整形ルール
通常は入力した文章がそのまま出力されます。
これに加えて、特定のルールによるテキスト整形を行うことができます。以下では、プラグインについてはよく使われるものだけを簡略に説明しています。プラグインのオプションなど詳細な説明については PukiWiki/1.4/Manual/Plugin を参照してください。
インライン要素
他のブロック要素を明示しない限り、段落となります。
~ インライン要素
行頭で ~ を指定した場合も段落になります。行頭書式の文字(~、-、+、:、>、|、#、//)を通常の文字として段落の先頭に書きたい場合は、行頭に~を記述して書くことができます。
> インライン要素
行頭で > を指定すると、引用文になります。引用文は >、>>、>>> の3レベルあります。
- インライン要素
行頭で - を指定すると、番号なしリストになります。番号なしリストは -、--、--- の3レベルあります。
+ インライン要素
行頭で + を指定すると、番号付きリストになります。番号付きリストは +、++、+++ の3レベルあります。
: 定義語 | 説明文
行頭を : で始め、| 記号で区切ると、定義リストになります。定義リストは :、::、::: の3段階あります。定義リストの定義語、説明文は省略することができます。複数の連続した定義リストを記述し、2つ目以降の定義語を省略することで1つの定義語に対する複数の説明文を記述することができます。
行頭が半角空白で始まる行は整形済みテキストとなります。行の自動折り返しは行なわれません。
| インライン要素 | インライン要素 |
行頭から | でインライン要素を区切ることで表組みになります。
LEFT: CENTER: RIGHT: BGCOLOR(色): COLOR(色): SIZE(サイズ):
表組みの | 各セルの要素の配置に | 関するサンプル |
左寄せ | センタリング | 右寄せ |
右寄せ | 左寄せ | センタリング |
LEFT: CENTER: RIGHT: BGCOLOR(色): COLOR(色): SIZE(サイズ):
,データ,データ,…
行頭でカンマ(,)を記述し、インライン要素をカンマ区切りで記述すると表組みになります。
* インライン要素
行頭で * を記述すると、見出しになります。見出しは *、**、*** の3段階あります。
#contents
行頭で #contents を記述すると、見出しに基づいて目次を作成します。一般的に #contents はページの最初のほうに記述します。
LEFT:インライン要素 CENTER:インライン要素 RIGHT:インライン要素
行頭で LEFT:、 CENTER:、 RIGHT: を記述すると、インライン要素が左寄せ、センタリング、右寄せされます。
---------------------------------------------
行頭で4つ以上の - を書くと水平線になります。
#hr
行頭で #hr を記述すると、区切り線になります。区切り線は上位のブロック要素の幅の60%の長さの水平線がセンタリングされて引かれます。
#br
行頭で #br を記述すると、ブロック要素間またはブロック要素内で行間を開けることができます*2。
#ref(添付ファイル名) #ref(ファイルのURL)
行頭で #ref を記述すると、添付ファイルまたは指定されたURLにあるファイルへのリンクを貼り付けることができます。ファイルが画像ファイルの場合は、その画像を表示します。
添付ファイルのページ
left center right
wrap nowrap
around
nolink
代替文字列
#clear
行頭で #clear を記述すると、 #ref で指定したテキストの回り込みを解除します。 #clear を指定しなくても、記事の末尾でテキストの回り込みが自動的に解除されます。
#comment
行頭で #comment を記述すると、コメントを挿入するためのフォームが埋め込まれます。
#pcomment
行頭で #pcomment を記述すると、コメントを挿入するためのフォームが埋め込まれます。 #comment とは異なり、コメントは別ページに記録されます。また、コメントに対するレスポンスを階層状に表示します。
#article
行頭で#articleを記述すると、簡易掲示板のフォームが埋め込まれます。
#vote(選択肢1,選択肢2,...)
行頭で #vote を記述すると、簡易投票フォームが埋め込まれます。
文字列
文字列はインライン要素です。
インライン要素~
行末に~を書くと行末改行になります。行末改行はブロック要素内での改行になります。
&br;
行中に &br; を書くと、そこで改行されます。行末の ~ と違い、定義リストの定義語や表組の要素、# で始まるブロック要素のパラメタの中でも使用できます。
''インライン要素''
行中のインライン要素を '' ではさむと、インライン要素が 強調表示 になります。
'''インライン要素'''
行中のインライン要素を ''' ではさむと、インライン要素が 斜体表示 になります。
&size(サイズ){インライン要素};
行中に &size を書くとインライン要素の文字サイズを指定することができます。サイズはピクセル単位(px)で指定します。例えば20を指定すると、20ピクセルの文字の大きさになります。
&color(文字色,背景色){インライン要素};
行中に &color と書くとインライン要素の文字色と背景色を指定することができます。背景色は省略できます。
%%インライン要素%%
行中のインライン要素を%%ではさむと、インライン要素に取消線が付きます。
((インライン要素))
行中でインライン要素を (( と )) ではさむと、注釈*3が作成され、行中に注釈へのリンクが貼られます。
&ref(添付ファイル名); &ref(ファイルのURL);
行中で &ref を記述すると、添付ファイルまたは指定されたURLにあるファイルへのリンクを貼り付けることができます。ファイルが画像ファイルの場合は、その画像を表示します。
添付ファイルのページ
nolink
代替文字列
&ruby(ルビ){インライン要素};
行中で &ruby を書くとインライン要素に対するルビをふることができます。ルビに対応していないブラウザではルビが本文中に ( と ) に囲まれて表示されます。
&aname(アンカー名); &aname(アンカー名){インライン要素};
行中で &aname を記述するとリンクのアンカーを設定することができます。リンクの飛び先にしたい位置に記述します。
&counter; &counter(オプション);
行中で &counter を記述するとそのページにアクセスした人の数を表示することができます。
today
yesterday
all
&online;
行中で &online を記述すると現在アクセス中の人数を表示することができます。
&version;
行中で &version を記述するとPukiWikiのバージョンを表示することができます。
WikiName
行中で、1つ以上の大文字→1つ以上の小文字→1つ以上の大文字→1つ以上の小文字の組合わせからなる半角//文字列はWikiNameになります。
[[ぷきうぃき]]
行中で [[ と ]] で囲まれた文字列はページ名になります。
[[ページ名#アンカー名]]
[[InterWikiName:ページ名]]
行中のページ名形式の文字列の中で、: で2つの文字列を区切るとInterWikiになります。:の前にはInterWikiNameのページで定義したInterWikiNameを、: の後ろにはページ名を記述します。
[[InterWikiName:ページ名#アンカー名]]
[[リンク名:URL]]
行中のInterWikiNameの形式の文字列の中で、: の前に任意のリンク名を、: の後ろにURLを記述すると、そのリンク名でURLに対するリンクを貼ることができます。
http://www.example.com/ https://www.example.com/ ftp://ftp.example.com/ news://news.example.com/ foo@example.com
[[エイリアス名>ページ名]]
行中のページ名形式の文字列の中で、> で2つの文字列を区切るとエイリアスになります。 > の前にはエイリアス名を、> の後ろにはページ名を記述します。
エイリアスはPukiWiki内のページ名とは別のエイリアス名で、指定したページへのリンクを貼ります。
[[エイリアス名>ページ名#アンカー名]] [[エイリアス名>#アンカー名]]
[[エイリアス名>http://www.example.com/]] [[エイリアス名>https://www.example.com/]] [[エイリアス名>ftp://ftp.example.com/]] [[エイリアス名>news://news.example.com/]] [[エイリアス名>foo@example.com]] [[エイリアス名>InterWikiName:ページ名]] [[エイリアス名>InterWikiName:ページ名#アンカー名]]
[[エイリアス名:http://www.example.com/]] [[エイリアス名:https://www.example.com/]] [[エイリアス名:ftp://ftp.example.com/]] [[エイリアス名:news://news.example.com/]] [[エイリアス名:foo@example.com]]
&t;
行中で &t; と書くと、タブコードに置換されます。
通常、フォーム内ではキーボードからタブコードを直接入力できない*4ので、タブコードを入力したい位置に&t;を記述すると、保存時にタブコードに置換します。
&page; &fpage;
行中で &page; 及び &fpage; と書くと、編集中のページ名に置換されます。ページ名が階層化されたページで「hogehoge/hoge」となっている場合、 &page; は「hoge」に、 &fpage; は「hogehoge/hoge」に置換されます。階層化されていないページでは、 &page; も &fpage; も同じになります。
&date; &time; &now;
date? time? now?
&_date; &_time; &_now;
&lastmod; &lastmod(ページ名);
文字参照は、SGMLで定義されている文字参照文字(©や®など)のほか、下記の独自の文字参照文字が使用できます。
&heart; ⌣ &bigsmile; &huh; &oh; &wink; &sad; &worried;

進数; 進数;
行中で &# と ; の間に10進数を、&#x と ;の間に16進数を書くと、Unicodeを数値参照して表示します。キーボードから直接入力できない文字やJIS第3水準・第4水準の文字などの表示に使用します。たとえば、内田百閒と入力すると、内田百閒と表示されます。
// コメント
行頭で // を指定すると、コメント行になります。コメント行は出力されない行です。
#multilang(en){{
In the following table you can see how to use the inline text elements of PukiWiki
Format example | Formatting code | Comment |
Emphasised text | ''Emphasised text'' | Put the text between two single quotes. |
Italic text | '''Italic text''' | Put the text between three single quotes. |
Text with a break | Text with &br; a break | |
Text in font size 24 | &size(24){Text in font size 24}; | |
Purple text | &color(purple){Purple text}; | |
Colored text | &color(#123456){Colored text}; | |
Red text with yellow backbround | &color(red,yellow){Red text with yellow background}; | |
%%Strikethrough text%% | ||
*5 | ((This is the footnote's text)) | This inserts a footnote with the given text at the bottom of the page. |
www.example.com | &ref(http://www.example.com); | This inserts a reference. |
&aname(Anchor); | This inserts an invisible anchor for hyperlinking. | |
151 | &counter; | This inserts a counter. What does it count, in fact? |
1 | &online; | What does this do, in fact? |
1.5.4 | &version; | I guess this inserts the current version number of PukiWiki itself? |
WikiName | WikiName | This create a link to another pages on the same Pukiwiki site. |
BracketName | [[BracketName]] | This creates a link to another page on a same Pukiwiki site. |
External link | [[External link:http://www.example.com]] | This creates links to pages on other web sites. |
InterWikiLink:page name | [[InterWikiLink:page name]] | This creates a link to another Wiki, right? |
Paragraph | ~Paragraph | |
Inline text Inline text | Inline text&br;Inline text | &br; is replaced with a line break. |
Inline text~ #plug-in | Inline text~ #plug-in | The ~, followed by a line break works as an escape character that disables the # character, which normally activates a plugin. |
In what follows, examples for the block elements will be given. First, you will see the example as it should be entered into PukiWiki,and next is the result you'll get.
Preformatted text. There is a space in front of this text.
Preformatted text. There is a space in front of this text.
*Heading level 1 **Heading level 2 ***Heading level 3
There are no examples of how the heading looks like here,
because they would disturb the structure of this document.
But take a look at the headings above and below to see how
it might look.
~Paragraph ~*This will not be displayed as a heading
Paragraph
*This will not be displayed as a heading
Line break escape example~ #comment (disables first letter formatting rule, which is used to activate plug-ins.)
Line break escape example
#comment (disables first letter formatting rule, which is used to activate plug-ins.)
>Quote Level 1 >>Quote Level 2 >>>Quote Level 3
Quote Level 1
Quote Level 2
Quote Level 3
-Unordered list level 1 --Unordered list level 2 ---Unordered list level 3
+Ordered list level 1 ++Ordered list level 2 +++Ordered list level 3
:Definition|Description
A comment is hidden here: //Comment
A comment is hidden here:
----
|aaa|bbb|ccc| |111|222|333|
aaa | bbb | ccc |
111 | 222 | 333 |
|RIGHT:100|CENTER:|SIZE(20)|c -------------- format definition line |~Header|Header2|Header3|h ----------------- header line |CENTER:lowspan|COLOR(red):bbb|ccc| |~|222|COLOR(#ff0000):BGCOLOR(yellow):333| |footer|>|CENTER:colspan|f ----------------- footer line
Header | Header2 | Header3 |
---|---|---|
footer | colspan | |
lowspan | bbb | ccc |
222 | 333 |
,aaa,bbb,ccc ,111,222,333
aaa | bbb | ccc |
111 | 222 | 333 |
Special entity | Code | Comments |
&heart; | ||
© | © | |
® | ® | |
™ | ™ | |
² | ² | |
³ | ³ | |
| You may not be able to see it, but there is a non-breaking space in the first column. It prevents a line from being broken at that point. | |
| You can define any unicode character up to #32000 using this code. Please note that you need a font that supports the character, or you will not be able to see it. | |
世 | 世 | You can use characters from all over the world! |
♂ | ♂ | It is a man's world. |
☿ | ♀ | But it would be nothing without a woman. |
∞ | ∞ | We could go on like this forever... |
Ω | Ω | But here it must end. |
~This is the paragraph, which is the parent element that contains emphasized text. ''This is the emphasized text, that is the child element of the paragraph element.''
This is the paragraph, which is the parent element that contains emphasized text. This is the emphasized text, that is the child element of the paragraph element.
Level[0] >Quotation Level[1]AAA ~Quotation Level[1]BBB >>Quotation Level[2]AAA ~Quotation Level[2]BBB >>>Quotation Level[3] -Child Element-List Level[1] |TABLE|ELEMENT|NEXT|to|the Inline|element|in a list| --Child Element-List Level[2] &br;Line Break in a Element ---Child Element-List Level[3] --Child Element-List Level[2] ---Child Element-List Level[3] <<Quotation Level[1] >>Quotation Level[2] <<Get out of the Quotation Level2 Element >>>Quotation Level[3]AAA >>>Quotation Level[3]BBB -Child Element-List Level[1] --Child Element-List Level[2] ---Child Element-List Level[3]
Level[0]
Quotation Level[1]AAA
Quotation Level[1]BBB
Quotation Level[2]AAA
Quotation Level[2]BBB
Quotation Level[3]
- Child Element-List Level[1]
TABLE ELEMENT NEXT to the Inline element in a list
- Child Element-List Level[2]
Line Break in a Element
- Child Element-List Level[3]
- Child Element-List Level[2]
- Child Element-List Level[3]
Quotation Level[1]
Quotation Level[2]
Get out of the Quotation Level2 Element
Quotation Level[3]AAA
Quotation Level[3]BBB
- Child Element-List Level[1]
- Child Element-List Level[2]
- Child Element-List Level[3]
This section needs to be brushed up. }}
#multilang(zh_TW){{ TITLE:寫作語法
底下是 PukiWiki 的寫作語法,HTML 的標籤語法目前並不支援
''粗體字''
粗體字
'''斜體字'''
斜體字
%%刪除線%%
刪除線
((註解))
COLOR(#rrggbb){文字變顏色的}
文字變成紅色的
SIZE(n){文字的大小}
文字的大小,36
CENTER:置中對齊
LEFT:靠左對齊
RIGHT:靠右對齊
#img(圖片的URL,left)
#img(圖片的URL,right)
#img(,clear)#img(): File not found:
#attach
#ref(附件的名稱)
#ref(): File not found: "附件的名稱" at page "FormatRule"
#ref(附件的名稱,center)
#ref(): File not found: "附件的名稱" at page "FormatRule"
#ref(附件的名稱,right)
#ref(): File not found: "附件的名稱" at page "FormatRule"
#ref(附件的名稱,left)
#ref(): File not found: "附件的名稱" at page "FormatRule"
#ref(附件的名稱,right,around)
#ref(): File not found: "附件的名稱" at page "FormatRule"
#ref(附件的名稱,left,around)
#ref(): File not found: "附件的名稱" at page "FormatRule"
預設為 left
*H1 **H2 ***H3
#contents 製作目錄索引
|''Category:A''|''Category:B''|''Category:C''| |Objective|for AI|Other| |Java|LISP|Assembla|
Category:A | Category:B | Category:C |
Objective | for AI | Other |
Java | LISP | Assembla |
表格可搭配 CENTER: RIGHT: 等屬性來使用
|左左左左左|中中中中中|右右右右右| |左|CENTER:中|RIGHT:右| |RIGHT:右|左|CENTER:中|
左左左左左 | 中中中中中 | 右右右右右 |
左 | 中 | 右 |
右 | 左 | 中 |
#comment
#article
#memo
#vote(選項1,選項2,選項3)
開頭空白則表示該行文字不會被寫作語法所轉換
-第一層 --第二層 ---第三層
+ ++ +++
:用語1|更多的解說1
>
這是引用文字
----
hoge~ 換行
hoge
~hoge 換段落
hoge
(WikiName) PukiWiki
(BracketName) [[SandBox]]
[[測試區]]
[[http://pukiwiki.idv.tw/image/pukiwikiorg.png>FrontPage]]
(InterWiki) [[PukiWiki:FrontPage]]
[[PukiWiki.org>PukiWiki:FrontPage]]
http://www.pukiwiki.org/ webmaster@pukiwiki.org
http://www.pukiwiki.org/ webmaster@pukiwiki.org
[[PukiWiki:http://www.pukiwiki.org/]]
[[PukiWiki>http://www.pukiwiki.org/]]
開頭以 // 表示的為註解用的行 // 這行是註解,看不到的
date?
2003-09-17
time?
15:40:03
now?
2003-09-17 (Wed) 15:40:03
#related
#norelated
#calendar_read(200309)
2003.9 (read) [FormatRule] |
||||||
日 | 月 | 火 | 水 | 木 | 金 | 土 |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
#calendar_edit(200309)
2003.9 (edit) [FormatRule] |
||||||
日 | 月 | 火 | 水 | 木 | 金 | 土 |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
#calendar2(off)
<<
2024.5
>>
[FormatRule] |
||||||
日 | 月 | 火 | 水 | 木 | 金 | 土 |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
用法1 | 用法2 | 臉型 |
---|---|---|
&smile; | :) | |
&bigsmile; | :D | |
&huh; | :p,:d | |
&oh; | X(,XD | |
&wink; | ;) | |
&sad; | :(,;( | |
&heart; | ||
&mheart; | &mheart; |
範例 | 用法 | 備註 |
粗體字 | ''粗體字'' | 將文字放在兩個單引號之間。 |
斜體字 | '''斜體字''' | 將文字放在三個單引號之間。 |
文字的 換行 | 文字的&br;換行 | |
文字大小是 24 | &size(24){文字大小是 24}; | |
紅色字 | &color(red){紅色字}; | |
有顏色的字 | &color(#a98765){有顏色的字}; | |
黃底紅字 | &color(red,yellow){黃底紅字}; | |
%%刪除線%% | ||
*7 | ((這是註腳的文字)) | 在頁面的底部插入註腳。 |
pukiwiki.idv.tw | &ref(http://pukiwiki.idv.tw); | 插入一個參考連結。 |
&aname(Anchor); | 插入一個頁內連結。 | |
151 | &counter; | 插入訪客人數統計。 |
1 | &online; | 插入目前站上訪客人數。 |
1.5.4 | &version; | 插入目前的 PukiWiki 版本資訊。 |
WikiName | WikiName | 連結至站內的另一個頁面。 |
BracketName | [[BracketName]] | 連結至站內的另一個頁面。 |
外部連結 | [[外部連結:http://pukiwiki.org]] | 連結至外部的頁面。 |
InterWikiLink:頁面 | [[InterWikiLink:頁面]] | 連結至其他 Wiki 站的頁面。 |
~段落
段落
後面隱藏的是註解: //註解
後面隱藏的是註解: //您無法看到註解。
預先格式化的文字。在文字的前面有一個空白。 預先格式化的文字。在文字的前面有一個空白。
*標題一 **標題二 ***標題三
>第一層引用 >>第二層引用 >>>第三層引用
第一層引用
第二層引用
第三層引用
-條列一 --條列二 ---條列三
+數字條列一 ++數字條列二 +++數字條列三
:定義|描述
水平線 ----
表格 |aaa|bbb|ccc| |111|222|333|
aaa | bbb | ccc |
111 | 222 | 333 |
CSV 表格 ,aaa,bbb,ccc ,111,222,333
aaa | bbb | ccc |
111 | 222 | 333 |
&heart; | ||
© | © | |
® | ® | |
™ | ™ | |
² | ² | |
³ | ³ | |
| You may not be able to see it, but there is a non-breaking space in the first column. It prevents a line from being broken at that point. | |
| Is this a normal space? | |
 | And this, a minus sign? |
}}