|
|
テキスト整形のルール
|
| 表組みの | 各セルの要素の配置に | 関するサンプル |
| 左寄せ | センタリング | 右寄せ |
| 右寄せ | 左寄せ | センタリング |
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){{
*Inline Elements [#v2f727fb]
In the following table you can see how to use the inline text elements of PukiWiki
|Format example|Formatting code|Comment|h
|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.|
|
www.example.com|&ref(http://www.example.com);|This inserts a reference.|
||&aname(Anchor);|This inserts an invisible anchor for hyperlinking.|
|841|&counter;|This inserts a counter. What does it count, in fact?|
|1|&online;|What does this do, in fact?|
|&version;|&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.|
*Block Elements [#veaf1193]
~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 [#v6d2a929]
Preformatted text. There is a space in front of this text.
Preformatted text. There is a space in front of this text.
**Headings [#n6275890]
*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 [#a6ab3c0e]
~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 [#q0849799]
>Quote Level 1
>>Quote Level 2
>>>Quote Level 3
>Quote Level 1
>>Quote Level 2
>>>Quote Level 3
**Unordered lists [#kbd4d759]
-Unordered list level 1
--Unordered list level 2
---Unordered list level 3
-Unordered list level 1
--Unordered list level 2
---Unordered list level 3
**Ordered lists [#z291b8c3]
+Ordered list level 1
++Ordered list level 2
+++Ordered list level 3
+Ordered list level 1
++Ordered list level 2
+++Ordered list level 3
**Definition lists [#z93a6096]
efinition|Description
efinition|Description
**Comments [#l279ee0b]
A comment is hidden here:
//Comment
A comment is hidden here:
//Comment
**Horizontal Rule [#s0439a0c]
----
----
**Table [#jecf0233]
*** Simple [#v90083b4]
|aaa|bbb|ccc|
|111|222|333|
|aaa|bbb|ccc|
|111|222|333|
*** Advanced [#n6c24e02]
|RIGHT:100|CENTER:|SIZE(20)|c -------------- format definition line
|~Header|Header2|Header3|h ----------------- header line
|CENTER:lowspan|bbb|ccc|
|~|222|BG333|
|footer|>|CENTER:colspan|f ----------------- footer line
|RIGHT:100|CENTER:|SIZE(20)|c
|~Header|Header2|Header3|h
|CENTER:lowspan|bbb|ccc|
|~|222|BG333|
|footer|>|CENTER:colspan|f
**CSV Table [#pece650e]
,aaa,bbb,ccc
,111,222,333
,aaa,bbb,ccc
,111,222,333
//**Plug-ins
// #contents
// (This is the table of contents plugin)
//
//#contents
//(This is the table of contents plugin)
// The above does not work?
*Special entities : [#nb14c38a]
// These expressions do not work with the default settings.
// See pukiwiki.ini.php and default.ini.php.
//|FormattingSandbox|&page;|This one doesn't seem to work?|
//|2003-10-28|&date;|This one doesn't seem to work?|
//|03:33:43|&time;|This one doesn't seem to work?|
//|2003-10-28 (火) 03:33:43|&now;|This one doesn't seem to work?|
//|2003-10-15|date ?| This one is replaced when editing is finished.|
//|12:35:09|time ?| This one is replaced when editing is finished.|
//|2003-10-15 (水) 12:35:09|now ?| This one is replaced when editing is finished.|
|Special entity|Code|Comments|h
|
|&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 [#vd8a37d7]
**Paragraph Element-Emphasize Element [#n053ef8b]
~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 [#a8c9880d]
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]
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:寫作語法
#norelated
*寫作語法 [#t474cb3d]
底下是 PukiWiki 的寫作語法,HTML 的標籤語法目前並不支援
#contents
**文字的裝飾 [#sa30d3f7]
粗體字
粗體字
斜體字
斜體字
刪除線
刪除線
*6
*7
文字變顏色的;
文字變成紅色的;
文字的大小;
文字的大小,36;
**文字的對齊 [#j8a91132]
CENTER:置中對齊
CENTER:置中對齊
LEFT:靠左對齊
LEFT:靠左對齊
RIGHT:靠右對齊
RIGHT:靠右對齊
**圖片的顯示 [#p91a3a79]
#img(圖片的URL,left)
#img(http://pukiwiki.idv.tw/image/noIE.png,left)
#img(圖片的URL,right)
#img(http://pukiwiki.idv.tw/image/noIE.png,right)
#img(,clear)
#img(,clear)
**附件的處理 [#x09c9333]
#attach
#attach
#ref(附件的名稱)
#ref(附件的名稱)
#ref(附件的名稱,center)
#ref(附件的名稱,center)
#ref(附件的名稱,right)
#ref(附件的名稱,right)
#ref(附件的名稱,left)
#ref(附件的名稱,left)
#ref(附件的名稱,right,around)
#ref(附件的名稱,right,around)
#ref(附件的名稱,left,around)
#ref(附件的名稱,left,around)
預設為 left
**標題列 [#ledb8597]
*H1
**H2
***H3
#contents
製作目錄索引
**表格 [#bf80cc12]
|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:中|
|左左左左左|中中中中中|右右右右右|
|左|CENTER:中|RIGHT:右|
|RIGHT:右|左|CENTER:中|
**評論 [#f9013a01]
#comment
**文章 [#me286aca]
#article
**備忘 [#u814f0e3]
#memo
**投票 [#h4e58e45]
#vote(選項1,選項2,選項3)
#vote(選項1[24],選項2[5],選項3[5])
**語法的原型 [#nb55d0ba]
開頭空白則表示該行文字不會被寫作語法所轉換
**條列項目 [#t8a85629]
-第一層
--第二層
---第三層
-第一層
--第二層
---第三層
+
++
+++
+數字1
++數字2
+++數字3
:用語1|更多的解說1
:用語1|更多的解說1
**引用文字 [#s3e68591]
>
> 這是引用文字
**水平線 [#rbebd5f2]
----
----
**換行、換段落 [#sdeecf57]
hoge~ 換行
hoge~
~hoge 換段落
~hoge
**連結 [#ve789b5e]
(WikiName)
PukiWiki
PukiWiki
(BracketName)
SandBox?
SandBox?
測試區?
測試區?


(InterWiki)
PukiWiki:FrontPage
PukiWiki:FrontPage
PukiWiki.org
PukiWiki.org
http://www.pukiwiki.org/
webmaster@pukiwiki.org
http://www.pukiwiki.org/
webmaster@pukiwiki.org
PukiWiki
PukiWiki
PukiWiki
PukiWiki
**註解用的符號 [#j878c9e6]
開頭以 // 表示的為註解用的行
// 這行是註解,看不到的
// 這行是註解,看不到的
**時間、日期的轉換 [#m05233d9]
date?
2003-09-17
time?
15:40:03
now?
2003-09-17 (Wed) 15:40:03
**其他 [#hfbedfc0]
#related
#related
#norelated
#norelated
#calendar_read(200309)
#calendar_read(200309)
#calendar_edit(200309)
#calendar_edit(200309)
#calendar2(off)
#calendar2(off)
**情境圖示 [#a404388d]
CENTER:各種臉型
|||CENTER:|c
|~用法1|~用法2|~臉型|h
|&smile;|:)|
|
|&bigsmile;|:D|
|
|&huh;|:p,:d|
|
|&oh;|X(,XD|
|
|&wink;|;)|
|
|&sad;|:(,;(|
|
|&heart;||
|
|&mheart;||&mheart;|
**直接插入型的元素 [#k43cefee]
|範例|用法|備註|
|粗體字|''粗體字''|將文字放在兩個單引號之間。|
|斜體字|'''斜體字'''|將文字放在三個單引號之間。|
|文字的
換行|文字的&br;換行||
|文字大小是 24| &size(24){文字大小是 24};||
|紅色字| &color(red){紅色字};||
|有顏色的字| &color(#a98765){有顏色的字};||
|黃底紅字| &color(red,yellow){黃底紅字};||
|刪除線| %%刪除線%%||
|*8|((這是註腳的文字))|在頁面的底部插入註腳。|
|
pukiwiki.idv.tw|&ref(http://pukiwiki.idv.tw);|插入一個參考連結。|
||&aname(Anchor);|插入一個頁內連結。|
|841|&counter;|插入訪客人數統計。|
|1|&online;|插入目前站上訪客人數。|
|&version;|&version;|插入目前的 PukiWiki 版本資訊。|
|WikiName|WikiName|連結至站內的另一個頁面。|
|BracketName?|[[BracketName]]|連結至站內的另一個頁面。|
|外部連結|[[外部連結:http://pukiwiki.org]]|連結至外部的頁面。|
|InterWikiLink:頁面|[[InterWikiLink:頁面]]|連結至其他 Wiki 站的頁面。|
**區塊型元素 [#z57f6202]
~段落
~段落
後面隱藏的是註解: //註解
後面隱藏的是註解: //您無法看到註解。
預先格式化的文字。在文字的前面有一個空白。
預先格式化的文字。在文字的前面有一個空白。
*標題一
**標題二
***標題三
>第一層引用
>>第二層引用
>>>第三層引用
>第一層引用
>>第二層引用
>>>第三層引用
-條列一
--條列二
---條列三
-條列一
--條列二
---條列三
+數字條列一
++數字條列二
+++數字條列三
+數字條列一
++數字條列二
+++數字條列三
:定義|描述
:定義|描述
水平線
----
----
表格
|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? |
};
};};