Skin:Cavendish
Appearance
リリースの状態: 安定 |
|
|---|---|
| 説明 | Mozilla Cavendish skin based on MonoBook style by Gabriel Wicke. |
| 作者 | Mozilla, Daniel Schuba, Jack Phoenix, Samantha Nguyen |
| 最新バージョン | 3.0.0 (2022-05-23) |
| MediaWiki | 1.39+ |
| ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
| ダウンロード | |
| 例 | |
| 四半期ごとのダウンロード数 | 0 |
| 使用している公開ウィキ | 173 (Ranked 29th) |
| 既定の外装として使用している公開ウィキ | 19 |
| translatewiki.net で翻訳を利用できる場合は、Cavendish 外装の翻訳にご協力ください | |
| 問題点 | 未解決のタスク · バグを報告 |
The Cavendish skin is a rework of the skin formerly used at wiki.mozilla.org.
It was modified to work better with new versions of MediaWiki.
インストール
- ダウンロードして、ファイルを
skins/フォルダー内のCavendishという名前のディレクトリ内に配置します。 - ファイル LocalSettings.php の末尾に以下のコードを追加してください:
wfLoadSkin( 'Cavendish' );
- Configure as required.
完了 - 自分のウィキの Special:Version に移動して、外装が正しくインストールされたことを確認してください。
Configuration
There are different parameters for the skin that can be set in your wiki's LocalSettings.php file.
| Configuration option name | Default value | Details |
|---|---|---|
$wgCavendishLogoURL
|
false
|
URL to the custom logo that should be displayed in the header. By default, no custom logo is displayed. |
$wgCavendishLogoWidth
|
322
|
Width of the custom logo as a number in pixels (px)
|
$wgCavendishLogoHeight
|
53
|
Height of the custom logo as a number in pixels (px)
|
$wgCavendishLogoMargin
|
10
|
Offset on top of the custom logo |
$wgCavendishQRCode
|
false
|
Display a Quick Response (QR) code on all pages? When enabled, the QR codes are generated by pinging an external server at api.qrserver.com.
|
$wgCavendishQRUrlAdd
|
"?pk_campaign=qr-code"
|
Additional URL parameters (as a string) to be appended to wiki page URLs when QR code generation is enabled. This can be useful to track users coming to the wiki via QR codes if you use analytics software on your wiki. This configuration option has no effect when QR code generation is turned off ($wgCavendishQRCode = false;).
|
$wgCavendishQRCodeMode
|
"all"
|
Acceptable values are the strings all or print. If all, the "powered by MediaWiki" button image (#f-poweredbyico) is supposed to be hidden via CSS; if print, then the QR code element (#qrcode) is supposed to be hidden via CSS, but this feature might be broken altogether.
|
$wgCavendishSiteWidth
|
false
|
Fixed width (in pixels) of the content area; it's dynamic if not set |
$wgCavendishSidebarSearchbox
|
true
|
Display the search bar (#p-search) in the top navigation area (#nav)? If false, the said bar is then hidden via CSS.
|
Version history
- 0.9.2: works with MW 1.15.1
- 0.9.5: Some bugs were reported but could not be verified yet.
- 1.2.0: big rework and uses many elements from MonoBook skin to be compatible with most MW versions.
- 1.3.1: was tested with MediaWiki 1.16.5 and 1.17.0 and 1.19alpha.
- 1.3.3: bugfixes and added support for MediaWiki 1.15
- 1.3.6: bugfixes and added option for Google +1 button
- 1.5.0: Dropped support for older versions of MediaWiki and cleaned code
- 1.6.0: Cleanup of old compatibilities
- 1.6.1: print.css improved
- 1.6.3: print improved and QR code added to the front page
- 1.6.4: small improvements
- 2.5.0 (1 November 2020): MediaWiki 1.35 or newer is now required; added support for page status indicators, optimized CSS, turned off QR code generation by default and fixed the skin to be compatible with 1.35
- 2.6.0 (18 February 2022): $wgCavendishColor and $wgCavendishExtensionCSS settings removed
- 3.0.0 (23 May 2022): MediaWiki 1.39 or newer is now required
