- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- PukiWiki Plus!活用法 へ行く。
- 1 (2011-07-19 (火) 18:52:15)
- 2 (2011-12-14 (水) 01:29:17)
- 3 (2012-05-22 (火) 04:17:53)
- 4 (2012-05-22 (火) 04:59:40)
- 5 (2012-09-20 (木) 06:43:16)
- 6 (2012-09-20 (木) 07:27:55)
- 7 (2012-10-30 (火) 03:00:10)
- 8 (2012-11-01 (木) 05:10:49)
- 9 (2013-01-19 (土) 12:23:29)
- 10 (2013-01-19 (土) 12:29:21)
- 11 (2013-03-20 (水) 22:31:52)
- 12 (2013-05-07 (火) 17:26:00)
- 13 (2014-01-23 (木) 03:03:27)
- 14 (2014-01-23 (木) 03:09:05)
- 15 (2014-02-06 (木) 01:37:35)
- 16 (2014-02-06 (木) 01:58:53)
- 17 (2014-03-09 (日) 17:17:07)
- 18 (2014-03-09 (日) 17:29:09)
- 19 (2014-03-09 (日) 17:34:17)
- 20 (2014-03-09 (日) 17:42:47)
- 21 (2014-03-09 (日) 18:39:28)
- 22 (2016-12-19 (月) 16:45:55)
- 23 (2016-12-19 (月) 22:11:52)
- 24 (2017-01-06 (金) 11:46:25)
このサイトで実践しているPukiWiki Plus!の活用法について。
バックアップ一覧で普通に過去版を表示 † 
plugin/backup.inc.php: 変更前: define('PLUGIN_BACKUP_DISABLE_BACKUP_RENDERING', auth::check_role('safemode') || PKWK_OPTIMISE); 変更後: define('PLUGIN_BACKUP_DISABLE_BACKUP_RENDERING', auth::check_role('safemode'));
設定の扱いを変更する。
なぜか本運用のためのオプション'PKWK_OPTIMISE'を使っていると、バックアップ一覧から過去版へのリンクを消してしまうので削除。最適化と関係ない。
部分編集を見出しレベルごとにする † 
plugin/edit.inc.php: 変更前: defined('PLUGIN_EDIT_PARTAREA') or define('PLUGIN_EDIT_PARTAREA', 'compat'); 変更後: defined('PLUGIN_EDIT_PARTAREA') or define('PLUGIN_EDIT_PARTAREA', 'level');
設定を変更する。
大きな見出しを編集するとき、下位の見出しもまとめて編集可能にする。複数の見出しをまとめて編集。
Google検索 † 
左上の検索ボックスを使うとGoogleでの検索になります。
閲覧だけならこちらの検索方法が便利でしょう。
PukiWiki Plus!の検索ボックスは正確な分、表記の揺れなどに左右されるので編集者向けでしょう。
こちらはページ下部に配置しています。
Google検索なのでGoogle独自のキーワードも使えます。
intitle:ページ
タグ † 
ここでは[[t/…]]形式のタグを利用しています。
PukiWikiには自動リンクがありますが、それとは別にわざわざタグを付けることでまとめを作業化しています。
最下部 † 
:Footerにタグクラウドを置いているのは
…があります。
編集時にも見えるとタグを付けるときに役立ちます。
似ている意味のタグは統一しなければタグの効果が無くなってしまうので。
あまり絞り込めなくなってきたのでやめました。はてなブックマークやEvernoteデスクトップ版のように複数タグを選択するUIがあればいいかも。
目次 † 
pukiwiki:自作プラグイン/tag.inc.phpとpukiwiki:自作プラグイン/lsx.inc.phpの利点を活かしてMenuBar[?]の目次を自動生成しています。
目次に入れたいページに「目次」というタグを付ければ、そのページが目次に追加される仕組みです。
ページ名の"/" † 
ページ名を区切る"/"は日本語での「の」と同じ意味になります。
例えば「ページ/属性」と「ページの属性」。
そこで、ページ名を付けるとき、「の」は"/"に置き換えています。
簡単で効率の良いページ分類法だと思います。
InterWikiName † 
InterWikiNameをいくつか作っています。
他のPukiWiki(Plus!)で利用するときはInterWikiNameの編集ページをコピーして、そちらのInterWikiNameに貼り付けてください。
[[A9:アイデアのつくり方]] [[ISBN:4484881047]]
などと書くことでA9:アイデアのつくり方やISBN:4484881047といったリンクを作れるようになります。
ページ名に関連する本を検索 † 
Webcat Plusを利用する連想検索。
InterWikiNameに以下を追加。
-[<a href="<a href="<a href="http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1</a>">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1</a></a>">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1</a>">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1">http://webcatplus.nii.ac.jp/index.html?type=assoc&text=$1</a></a></a> 連想図書検索] utf8
その後、任意のページに…
[[連想図書検索:&fpage;]]
…と書けば「ページ名から連想される本」を検索できるようなリンクになります。
連想図書検索:ウィキエンジンX
#lookup(連想図書検索,* 図書検索 *);
Google † 
InterWikiNameに以下を追加。
-[<a href="<a href="<a href="http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8</a>">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8</a></a>">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8</a>">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8">http://www.google.com/search?q=$1%20site%3Awiki.pmint.name&lr=lang_ja&hl=ja&ie=utf8&oe=utf8</a></a></a> サイト内検索(Google)] utf8
任意のページに以下を追加。
[[サイト内検索(Google):記法]] #lookup(サイト内検索(Google),* Google検索 *);
Yahoo! Japan † 
[[サイト内検索(Yahoo!JAPAN):記法]] #lookup(サイト内検索(Yahoo!JAPAN),* Yahoo!検索 *);
はてなブックマーク † 
[[&ref(:Image/b_entry.gif,このエントリーを含むはてなブックマーク); このエントリーを含むはてなブックマーク><a href="<a href="<a href="http://b.hatena.ne.jp/entry/(http://で始まるURL)]]">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]</a>">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]</a></a>">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]</a>">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]">http://b.hatena.ne.jp/entry/(http://で始まるURL)]]</a></a></a>
で置けます。
ブックマークされている数なども同じ方法で表示できるはずなのですが、PukiWiki(Plus!)ではURLが.pngなどといった拡張子で終わっていないと画像として扱われないので不可能です。
階層付き「ページ新規作成」 † 
階層付きのページを頻繁に作る場合、lookupプラグインとInterWikiNameで手間を省けます。
- 「InterWikiName」ページに追加…
-[./index.php?cmd=read&page=%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%2F 機能/]
「%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%2F」は「機能/」をURLエンコードしたもの。PukiWiki Plus!のi18n版ではUTF-8を使用しているので、「機能/」をUTF-8で表現した文字コードをURLエンコード。PukiWikiや、EUC版のPukiWiki Plus!(i18nでないバージョン)はUTF-8ではなくEUCを使用しているので異なる。
- URLエンコードのやりかた
- 例えば、[[Web便利ツール/URLエンコード・デコードフォーム - TAG index Webサイト><a href="<a href="<a href="http://www.tagindex.com/tool/url.html]]">http://www.tagindex.com/tool/url.html]]</a>">http://www.tagindex.com/tool/url.html]]">http://www.tagindex.com/tool/url.html]]</a></a>">http://www.tagindex.com/tool/url.html]]">http://www.tagindex.com/tool/url.html]]</a>">http://www.tagindex.com/tool/url.html]]">http://www.tagindex.com/tool/url.html]]</a></a></a> で…
機能/
…をURLエンコード。「文字コード」はEUC-JPかUTF-8をPukiWiki、PukiWiki Plus!のバージョンにあわせて選択。
- 設置したいページに追加…
#lookup(機能/,* 新規作成 *);
- 結果
- (機能/で始まるページを作成)
ブックマークレット † 
ページをスクロールさせると編集アイコンは見えなくなります。
編集ページをブックマークにしておけばいつでもブックマーク(お気に入り)で編集ページを開けて便利です。
作り方 † 
適当にブックマークを作り、その「プロパティ」のアドレス欄(あるいはURL欄)に下記スクリプトをコピペします。
- (表示中のページに)追加
- javascript:(function(){var site = document.location.href;if (site.indexOf('?') > -1){site = site.substring(0, site.indexOf('?'));}var page = document.location.href;if (page.indexOf('&page=') > -1){page = page.substring(page.indexOf('&page=') + 6);} else if (page.indexOf('?') > -1){page = page.substring(page.indexOf('?') + 1);} else {page = 'FrontPage';}page = page.replace(/&.*/, '');document.location.href = site + '?cmd=add&page=' + page;})();
- (表示中のページを)編集
- javascript:(function(){var site = document.location.href;if (site.indexOf('?') > -1){site = site.substring(0, site.indexOf('?'));}var page = document.location.href;if (page.indexOf('&page=') > -1){page = page.substring(page.indexOf('&page=') + 6);} else if (page.indexOf('?') > -1){page = page.substring(page.indexOf('?') + 1);} else {page = 'FrontPage';}page = page.replace(/&.*/, '');document.location.href = site + '?cmd=edit&page=' + page;})();
- (表示中のページの)下位ページを作成
- javascript:(function(){var site = document.location.href;if (site.indexOf('?') > -1){site = site.substring(0, site.indexOf('?'));}var page = document.location.href;if (page.indexOf('&page=') > -1){page = page.substring(page.indexOf('&page=') + 6);} else if (page.indexOf('?') > -1){page = page.substring(page.indexOf('?') + 1);} else {page = 'FrontPage';}page = page.replace(/&.*/, '');document.location.href = site + '?plugin=newpage_subdir&directory=' + page;})();
これは他のPukiWiki(Plus!)のサイトでも使用できます。
使い方 † 
Wiki閲覧中に今作ったブックマークを使うと、それぞれの追加ページや編集ページが開きます。
ツールバーに表示させておくのも良いですし、キーボードで追加ページを開くこともできます。
Firefoxをお使いならブックマーク名を「Add:追加」などにして、Alt + B → Alt + A で追加ページを開くこともできます。
ブックマークにある「キーワード」欄に「add」とでも打ち込んでおけば Ctrl + L → addと打ち込む で同じ事ができます。
スマートキーワード † 
Firefoxの機能です。
<a href="<a href="<a href="http://wiki.pmint.name/index.php?%s">http://wiki.pmint.name/index.php?%s</a>">http://wiki.pmint.name/index.php?%s">http://wiki.pmint.name/index.php?%s</a></a>">http://wiki.pmint.name/index.php?%s">http://wiki.pmint.name/index.php?%s</a>">http://wiki.pmint.name/index.php?%s">http://wiki.pmint.name/index.php?%s</a></a></a>
をブックマークに登録して、そのブックマークの「キーワード」を
x
とでもしておけば、Ctrl + Lのあと
x FrontPage
または
X FrontPage
と打ち込んでトップページを開くことができます。
ATOKやJapanistといったIMEを併用すればページ名さえ省略することができます。
押し出しファイリング † 
野口悠紀雄「超・整理法」で紹介されていた「押し出しファイリング」を簡単にWikiで実践できます。
RecentChangesにページが編集日時順に並んで表示されています。
後は、手を加える必要が無くても、読んで参考にしたページを更新するようにすれば押し出しファイリングになります。
RecentChangesで表示される数が足りなければPukiWiki(Plus!)の設定を書き換えるしかありませんが、
新しいページに…
#recent(500)
…とだけ書いて保存すれば500件表示されるページになります。
参考にしたページを更新するのに手間が掛かりすぎる気がするので、この「変更なしの更新」を行うプラグインでもあれば良いのですが。
テキストエディターで編集 † 
Webブラウザー上では長いテキストの編集がしづらいとき、テキスト編集専用のソフトを利用する手があります。
- Internet Explorer用、Sleipnir用なら「AreaEditor」
Google:"AreaEditorとは" - Mozilla Firefox用なら「It's All Text!」など
Google:"It's All Text!" - Macなら「QuickCursor」とか
Google:”QuickCursor”
…といったソフトでWebブラウザーとテキストエディターを連携させることができます。
これに加えて、テキストエディター側で…
- ^\*(?!\*).*$
見出し レベル1(*見出し) - ^\*\*+.*$
見出し レベル2以降(***…など) - &.+?;
インライン型プラグイン呼び出し(…など) - ^#.*$
ブロック型プラグイン呼び出し(#lsなど) - ^----+$
区切り線(----) - \[\[.+?\]\]
リンク 別名BracketName([[…]])
…などを強調表示したり、アウトライン表示すればより編集しやすくなります。