「MediaWiki」の版間の差分
提供: Wikinote
細 |
|||
| (同じ利用者による、間の5版が非表示) | |||
| 行1: | 行1: | ||
| − | == | + | == 編集方法について == |
| + | * 明示的に目次を表示するには、<nowiki>__TOC__</nowiki> を使う。 | ||
| + | |||
| + | == 各種設定について == | ||
| + | === 時刻を JST で表示する === | ||
| + | MediaWiki では、時刻を UTC で管理して、ユーザへ表示する場合に | ||
| + | ユーザ毎にタイムゾーンを考慮するという方式になっている。 | ||
| + | (<s>Linux とかと同じ。</s> Linux はユーザごとではなく、OS 全体だった。) | ||
| + | デフォルトではタイムゾーンが設定されていない (UTC 表示になっている) が、 | ||
| + | 設定で変更することができる。 | ||
| + | |||
| + | # ログインする。 | ||
| + | # 最上部の「オプション」から「日付と時刻」の「タイムゾーン」で UTC からの時差を設定する。 | ||
| + | |||
=== ショートカット (アクセスキー) を解除する === | === ショートカット (アクセスキー) を解除する === | ||
Mac (Safari) ではテキストボックスで Emacs のバインディングが利用できて便利だが (vi 派のオレでも多少は使えるもん!!)、 | Mac (Safari) ではテキストボックスで Emacs のバインディングが利用できて便利だが (vi 派のオレでも多少は使えるもん!!)、 | ||
| 行19: | 行32: | ||
=== ページ名を変更する === | === ページ名を変更する === | ||
設定ではないが… ページ名は、各ページの上部の「移動」タブで変更できる。 | 設定ではないが… ページ名は、各ページの上部の「移動」タブで変更できる。 | ||
| + | |||
| + | === 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; | ||
| + | } | ||
2010年1月6日 (水) 23:33時点における最新版
目次
編集方法について
- 明示的に目次を表示するには、__TOC__ を使う。
各種設定について
時刻を JST で表示する
MediaWiki では、時刻を UTC で管理して、ユーザへ表示する場合に
ユーザ毎にタイムゾーンを考慮するという方式になっている。
(Linux とかと同じ。 Linux はユーザごとではなく、OS 全体だった。)
デフォルトではタイムゾーンが設定されていない (UTC 表示になっている) が、
設定で変更することができる。
- ログインする。
- 最上部の「オプション」から「日付と時刻」の「タイムゾーン」で UTC からの時差を設定する。
ショートカット (アクセスキー) を解除する
Mac (Safari) ではテキストボックスで Emacs のバインディングが利用できて便利だが (vi 派のオレでも多少は使えるもん!!)、
MediaWiki にはアクセスキーという余計な機能 (Ctrl + F で検索ボックスにフォーカスとか) があってうざい。
これを解除するには、languages/messages/MessageEn.php の accesskey を含む行を
コメントアウトする。
## 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;
}