#multilang(ja){{ TITLE:整形ルール

テキスト整形のルール

通常は入力した文章がそのまま出力されます。

これに加えて、特定のルールによるテキスト整形を行うことができます。以下では、プラグインについてはよく使われるものだけを簡略に説明しています。プラグインのオプションなど詳細な説明については PukiWiki/1.4/Manual/Plugin を参照してください。



ブロック要素

段落

インライン要素

他のブロック要素を明示しない限り、段落となります。

~ インライン要素

行頭で ~ を指定した場合も段落になります。行頭書式の文字(~、-、+、:、>、|、#、//)を通常の文字として段落の先頭に書きたい場合は、行頭に~を記述して書くことができます。

引用文

> インライン要素

行頭で > を指定すると、引用文になります。引用文は >、>>、>>> の3レベルあります。

リスト構造

- インライン要素

行頭で - を指定すると、番号なしリストになります。番号なしリストは -、--、--- の3レベルあります。

+ インライン要素

行頭で + を指定すると、番号付きリストになります。番号付きリストは +、++、+++ の3レベルあります。

: 定義語 | 説明文

行頭を : で始め、| 記号で区切ると、定義リストになります。定義リストは :、::、::: の3段階あります。定義リストの定義語、説明文は省略することができます。複数の連続した定義リストを記述し、2つ目以降の定義語を省略することで1つの定義語に対する複数の説明文を記述することができます。

整形済みテキスト

行頭が半角空白で始まる行は整形済みテキストとなります。行の自動折り返しは行なわれません。

表組み

| インライン要素 | インライン要素 |

行頭から | でインライン要素を区切ることで表組みになります。

CSV形式の表組み

,データ,データ,…

行頭でカンマ(,)を記述し、インライン要素をカンマ区切りで記述すると表組みになります。

見出し

* インライン要素

行頭で * を記述すると、見出しになります。見出しは *、**、*** の3段階あります。

目次

#contents

行頭で #contents を記述すると、見出しに基づいて目次を作成します。一般的に #contents はページの最初のほうに記述します。

左寄せ・センタリング・右寄せ

LEFT:インライン要素
CENTER:インライン要素
RIGHT:インライン要素

行頭で LEFT:、 CENTER:、 RIGHT: を記述すると、インライン要素が左寄せ、センタリング、右寄せされます。

水平線

---------------------------------------------

行頭で4つ以上の - を書くと水平線になります。

#hr

行頭で #hr を記述すると、区切り線になります。区切り線は上位のブロック要素の幅の60%の長さの水平線がセンタリングされて引かれます。

行間開け

#br

行頭で #br を記述すると、ブロック要素間またはブロック要素内で行間を開けることができます*2

添付ファイル・画像の貼り付け

#ref(添付ファイル名)
#ref(ファイルのURL)

行頭で #ref を記述すると、添付ファイルまたは指定されたURLにあるファイルへのリンクを貼り付けることができます。ファイルが画像ファイルの場合は、その画像を表示します。

テキストの回り込みの解除

#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にあるファイルへのリンクを貼り付けることができます。ファイルが画像ファイルの場合は、その画像を表示します。

ルビ構造

&ruby(ルビ){インライン要素};

行中で &ruby を書くとインライン要素に対するルビをふることができます。ルビに対応していないブラウザではルビが本文中に ( と ) に囲まれて表示されます。

アンカーの設定

&aname(アンカー名);
&aname(アンカー名){インライン要素};

行中で &aname を記述するとリンクのアンカーを設定することができます。リンクの飛び先にしたい位置に記述します。

カウンタ表示

&counter;
&counter(オプション);

行中で &counter を記述するとそのページにアクセスした人の数を表示することができます。

オンライン表示

&online;

行中で &online を記述すると現在アクセス中の人数を表示することができます。

バージョン表示

&version;

行中で &version を記述するとPukiWikiのバージョンを表示することができます。

WikiName

WikiName

行中で、1つ以上の大文字→1つ以上の小文字→1つ以上の大文字→1つ以上の小文字の組合わせからなる半角//文字列はWikiNameになります。

ページ名

[[ぷきうぃき]]

行中で [[ と ]] で囲まれた文字列はページ名になります。

[[ページ名#アンカー名]]

InterWiki

[[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進数;
&#x16進数;

行中で &# と ; の間に10進数を、&#x と ;の間に16進数を書くと、Unicodeを数値参照して表示します。キーボードから直接入力できない文字やJIS第3水準・第4水準の文字などの表示に使用します。たとえば、内田百閒と入力すると、内田百閒と表示されます。

その他

コメント行

// コメント

行頭で // を指定すると、コメント行になります。コメント行は出力されない行です。

#multilang(en){{

Inline Elements

In the following table you can see how to use the inline text elements of PukiWiki

Format exampleFormatting codeComment
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%%Strikethrough text%%
*5((This is the footnote's text))This inserts a footnote with the given text at the bottom of the page.
filewww.example.com&ref(http://www.example.com);This inserts a reference.
&aname(Anchor);This inserts an invisible anchor for hyperlinking.
143&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?
WikiNameWikiNameThis 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.


Block Elements

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

 Preformatted text. There is a space in front of this text.
Preformatted text. There is a space in front of this text. 


Headings

*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.

Paragraphs and the tilde as and escape character

~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.)

Quotes

>Quote Level 1
>>Quote Level 2
>>>Quote Level 3

Quote Level 1

Quote Level 2

Quote Level 3

Unordered lists

-Unordered list level 1
--Unordered list level 2
---Unordered list level 3

Ordered lists

+Ordered list level 1
++Ordered list level 2
+++Ordered list level 3
  1. Ordered list level 1
    1. Ordered list level 2
      1. Ordered list level 3

Definition lists

:Definition|Description
Definition
Description

Comments

A comment is hidden here: 
//Comment

A comment is hidden here:

Horizontal Rule

----

Table

Simple

|aaa|bbb|ccc|
|111|222|333|
aaabbbccc
111222333

Advanced

|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
HeaderHeader2Header3
footercolspan
lowspanbbbccc
222333

CSV Table

,aaa,bbb,ccc
,111,222,333
aaabbbccc
111222333

Special entities :

Special entityCodeComments
[heart]&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.


Nesting Elements

Paragraph Element-Emphasize 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.''

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.

Quotation Element-List 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]
    TABLEELEMENTNEXTtothe Inlineelementin 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 的標籤語法目前並不支援

文字的裝飾

''粗體字''

粗體字

'''斜體字'''

斜體字

%%刪除線%%

刪除線

((註解))

*6

COLOR(#rrggbb){文字變顏色的}

文字變成紅色的

SIZE(n){文字的大小}

文字的大小,36

文字的對齊

CENTER:置中對齊
置中對齊
LEFT:靠左對齊
靠左對齊
RIGHT:靠右對齊
靠右對齊

圖片的顯示

#img(圖片的URL,left)
#img(圖片的URL,right)
#img(,clear)
#img(): File not found:

附件的處理

#attach
[添付ファイル一覧] [全ページの添付ファイル一覧]
アップロード可能最大ファイルサイズは 1,024KB です。

管理者パスワード:
#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:ACategory:BCategory:C
Objectivefor AIOther
JavaLISPAssembla
表格可搭配 CENTER: RIGHT: 等屬性來使用
|左左左左左|中中中中中|右右右右右|
|左|CENTER:中|RIGHT:右|
|RIGHT:右|左|CENTER:中|
左左左左左中中中中中右右右右右

評論

#comment

文章

#article

備忘

#memo

投票

#vote(選項1,選項2,選項3)
選択肢 投票
選項1 24  
選項2 5  
選項3 5  

語法的原型

開頭空白則表示該行文字不會被寫作語法所轉換

條列項目

-第一層
--第二層
---第三層
+
++
+++
  1. 數字1
    1. 數字2
      1. 數字3
:用語1|更多的解說1
用語1
更多的解說1

引用文字

>

這是引用文字

水平線

----

換行、換段落

hoge~  換行

hoge

~hoge  換段落

hoge

連結

(WikiName)
PukiWiki 

PukiWiki

(BracketName)
[[SandBox]]

SandBox

[[測試區]]

測試區

[[http://pukiwiki.idv.tw/image/pukiwikiorg.png>FrontPage]]

FrontPage

(InterWiki)
[[PukiWiki:FrontPage]]

PukiWiki:FrontPage

[[PukiWiki.org>PukiWiki:FrontPage]]

PukiWiki.org

http://www.pukiwiki.org/
webmaster@pukiwiki.org

http://www.pukiwiki.org/ webmaster@pukiwiki.org

[[PukiWiki:http://www.pukiwiki.org/]]

PukiWiki

[[PukiWiki>http://www.pukiwiki.org/]]

PukiWiki

註解用的符號

開頭以 // 表示的為註解用的行
// 這行是註解,看不到的

時間、日期的轉換

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.3 >>
[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;:)[smile]
&bigsmile;:D[bigsmile]
&huh;:p,:d[huh]
&oh;X(,XD[oh]
&wink;;)[wink]
&sad;:(,;([sad]
&heart;[heart]
&mheart;&mheart;

直接插入型的元素

範例用法備註
粗體字''粗體字''將文字放在兩個單引號之間。
斜體字'''斜體字'''將文字放在三個單引號之間。
文字的
換行
文字的&br;換行
文字大小是 24&size(24){文字大小是 24};
紅色字&color(red){紅色字};
有顏色的字&color(#a98765){有顏色的字};
黃底紅字&color(red,yellow){黃底紅字};
刪除線%%刪除線%%
*7((這是註腳的文字))在頁面的底部插入註腳。
filepukiwiki.idv.tw&ref(http://pukiwiki.idv.tw);插入一個參考連結。
&aname(Anchor);插入一個頁內連結。
143&counter;插入訪客人數統計。
1&online;插入目前站上訪客人數。
1.5.4&version;插入目前的 PukiWiki 版本資訊。
WikiNameWikiName連結至站內的另一個頁面。
BracketName[[BracketName]]連結至站內的另一個頁面。
外部連結[[外部連結:http://pukiwiki.org]]連結至外部的頁面。
InterWikiLink:頁面[[InterWikiLink:頁面]]連結至其他 Wiki 站的頁面。


區塊型元素

~段落

段落

後面隱藏的是註解: &#47;&#47;註解

後面隱藏的是註解: //您無法看到註解。

 預先格式化的文字。在文字的前面有一個空白。
預先格式化的文字。在文字的前面有一個空白。
*標題一
**標題二
***標題三
>第一層引用
>>第二層引用
>>>第三層引用

第一層引用

第二層引用

第三層引用

-條列一
--條列二
---條列三
+數字條列一
++數字條列二
+++數字條列三
  1. 數字條列一
    1. 數字條列二
      1. 數字條列三
:定義|描述
定義
描述
水平線
----

表格
|aaa|bbb|ccc|
|111|222|333|
aaabbbccc
111222333
CSV 表格
,aaa,bbb,ccc
,111,222,333
aaabbbccc
111222333


[heart]&heart;
©&copy;
®&reg;
&trade;
²&sup2;
³&sup3;
 &nbsp;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.
&#10;Is this a normal space?
&#16;And this, a minus sign?

}}


*1 インライン要素となるプラグインやユーザ定義とは異なり、ブロック要素となるプラグインでは終端に;を付加する必要はありません。プラグインによっては正常に動作しなくなる場合があります。
*2 #brをブロック要素の直後の空行の次に指定すればブロック要素間の行間、ブロック要素の直後に指定すればそのブロック要素内での行間を開けることになります。#brは、行末改行と違って、次の行の行頭書式を無効にはしません
*3 注釈のサンプル
*4 クリップボードからの貼り付けの場合はタブコードを直接入力できます。
*5 This is the footnote's text
*6 註解
*7 這是註腳的文字

トップ   編集 凍結解除 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-05-17 (水) 13:59:31