MediaWiki

提供: Wikinote
2009年4月14日 (火) 23:14時点におけるHagio (トーク | 投稿記録)による版 (各種設定)

移動: 案内検索

各種設定

ショートカット (アクセスキー) を解除する

Mac (Safari) ではテキストボックスで Emacs のバインディングが利用できて便利だが (vi 派のオレでも多少は使えるもん!!)、 MediaWiki にはアクセスキーという余計な機能 (Ctrl + F で検索ボックスにフォーカスとか) があってうざい。 これを解除するには、languages/messages/MessageEn.phpaccesskey を含む行を コメントアウトする。

## Keyboard access keys for power users
#'accesskey-pt-userpage'             => '.', # do not translate or duplicate this message to other languages
#'accesskey-pt-anonuserpage'         => '.', # do not translate or duplicate this message to other languages
#'accesskey-pt-mytalk'               => 'n', # do not translate or duplicate this message to other languages
            :

ロゴを設定する

LocalSettings.php$wgLogo に画像の URL を指定する。 画像の大きさは 135 x 135。

$wgLogo = "http://hagio.org/wiki/skins/common/images/wikinote.png";

参考:http://www.mediawiki.org/wiki/Manual:$wgLogo/ja

ページ名を変更する

設定ではないが… ページ名は、各ページの上部の「移動」タブで変更できる。

wikitable を利用する

skins/monobook/main.css に以下を追加する。(どっかからのパクリ)

table.wikitable, table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em; }
table.wikitable th, table.prettytable th {    background: #f2f2f2;    text-align: center;
}

table.wikitable caption, table.prettytable caption {
    margin-left: inherit;
    margin-right: inherit;
}