2012年5月18日(金) 13:18 JST
この記事は当初はWinKeyサイトで記事掲載しましたが、テーマによりwiki構文の見た目に違いがあるのでこちらでも掲載いたします。
WinKeyサイトでのGeeklogで使えるwiki構文のサンプル
では以下から記事本文をどうぞ。
Geeklogでは "コンフィギュレーション" の "ユーザと投稿" で "投稿にWikiテキストエディタ"を"はい"にすることで、記事の投稿でWikiスタイル(PEAR::TEXT_WIKI)が使えるようになってます。(履歴を調べるとGeeklog1.5.0以降から使えるようです)
プラグインではダウンロードがWikiスタイルに対応。(他にもあれば教えてください)
ただWikiスタイルといっても様々なwikiがありそれぞれ微妙に記述方法(構文)が違ったりするので、Geeklogで使えるWikiスタイルの構文がどんなものか調べてみました。
さらにテーマごとに用意されている見栄えも違ってくるため、ここへWiki構文のサンプルを記述します。
(この記事を作成しているのはGeeklog1.7.1です。他のバージョンでは確認していませんので微妙に違ってくるかもしれません)
| ''イタリック'' | イタリック |
| //em強調// | em強調 |
| **ボールド** | ボールド |
| ''**イタリック&ボールド**'' | イタリック&ボールド |
| //**em強調&ボールド**// | em強調&ボールド |
| } | } |
| @@--- 打ち消し線 +++ 下線 @@ | |
| @@--- 打ち消し線 @@ | |
| @@+++ 下線 @@ | 下線 |
This //text// gets **parsed**.
``This //text// does not get **parsed**.``
+ レベル1見出し
++ レベル2見出し
+++ レベル3見出し
++++ レベル4見出し
+++++ レベル5見出し
++++++ レベル6見出し
[[toc]]
----
* 記号1リスト
* サブ記号リスト
# 番号1リスト
# 番号2リスト
# サブ番号リスト
# 番号1リスト
* 記号リスト
* 記号リスト
# 番号2リスト
* 記号リスト
* 記号リスト
* サブ記号リスト
# サブサブ番号リスト
# サブサブ番号リスト
# 番号3リスト
* 記号リスト
* 記号リスト
: Item 1 : Something
: Item 2 : Something else
This is normal text here.
> Indent me! The quick brown fox jumps over the lazy dog. Now this the time for all good men to come to the aid of their country. Notice how we can continue the block-quote in the same "paragraph" by using a backslash at the end of the line.
>
> Another block, leading to...
>> Second level of indenting. This second is indented even more than the previous one.
Back to normal text.
Indent me! The quick brown fox jumps over the lazy dog. Now this the time for all good men to come to the aid of their country. Notice how we can continue the block-quote in the same "paragraph" by using a backslash at the end of the line.
Another block, leading to...
Second level of indenting. This second is indented even more than the previous one.
Back to normal text.
単にリモートのURLを入力することでリンクが作成できます。 例)http://gl17x.hiroron.com/
ページが乱雑にならないよう、番号の参照リンクを作成する場合は角カッコでURLを囲みます。
[http://www.winkey.jp] と記述することで 1 が作成できます。
[http://pear.php.net PEAR]
http://c2.com/sig/wiki.gif
画像にALTタグをつけたい場合は角括弧で囲み説明を記述します。
[http://en.wikipedia.org/wiki/File:Albert_Einstein_1979_USSR_Stamp.jpg Einstein]
画像に元画像へのリンクやサイズオプションをつけたい場合は角括弧2つで囲みimageで始めます。
[[image http://gl17x.hiroron.com/images/library/Image/mhp3-quest-clear.jpg width="150" link="http://gl17x.hiroron.com/images/library/Image/mhp3-quest-clear.jpg"]]

...を使って作成できます。
This is an example code block!
PHPコードを自動的にカラー化するPHPブロックを作る場合は...で囲んでください。
````
// Set up the wiki options
$options = array();
$options['view_url'] = "index.php?page=";
// load the text for the requested page
$text = implode('', file($page . '.wiki.txt'));
// create a Wiki objext with the loaded options
$wiki = new Text_Wiki($options);
// transform the wiki text.
echo $wiki->transform($text);
// Set up the wiki options
$options = array();
$options['view_url'] = "index.php?page=";
// load the text for the requested page
$text = implode('', file($page . '.wiki.txt'));
// create a Wiki objext with the loaded options
$wiki = new Text_Wiki($options);
// transform the wiki text.
echo $wiki->transform($text);
?>
その他のコードタイプには...があります。
|| セル1 || セル2 ||
|||| 隣セルと合体 ||
|| セル4 || セル5 ||
|| セル6 || ここには長いテキストのセルをつくってみる ||
| セル1 | セル2 |
| 隣セルと合体 | |
| セル4 | セル5 |
| セル6 | ここには長いテキストのセルをつくってみる |
|| lines must start and end || with double vertical bars || nothing ||
|| cells are separated by || double vertical bars || nothing ||
|||| you can span multiple columns by || starting each cell ||
|| with extra cell |||| separators ||
|||||| but perhaps an example is the easiest way to see ||
| lines must start and end | with double vertical bars | nothing |
| cells are separated by | double vertical bars | nothing |
| you can span multiple columns by | starting each cell | |
| with extra cell | separators | |
| but perhaps an example is the easiest way to see | ||
No trackback comments for this entry.
The following comments are owned by whomever posted them. This site is not responsible for what they say.