Extension:LogoFunctions

This page is a translated version of the page Extension:LogoFunctions and the translation is 53% complete.
MediaWiki 拡張機能マニュアル
LogoFunctions
リリースの状態: 安定
実装 パーサー関数
説明 ウィキのロゴに関するパーサー関数を追加する
作者 JuneHyeon Bae (*devuntトーク)
最新バージョン 2.0 (2019-09-15)
MediaWiki 1.31+
PHP 7.0+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgNamespaceLogos
Quarterly downloads 5 (Ranked 140th)
translatewiki.net で翻訳を利用できる場合は、LogoFunctions 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

LogoFunctions 拡張機能は、ウィキのロゴオーバーライドまたは追加するパーサー関数を追加します。

使用法

#setlogo
{{#setlogo:ExampleLogo.png}}

これは、ロゴをファイル [[File:ExampleLogo.png]] にします

#stamplogo
{{#stamplogo:Featured.png|190px|top|-1em|-1em}}

This adds a featured article stamp to the logo ([[File:Featured.png]]), 190px wide, -1em from the left, -1em from the top, as seen on uncyclopedia:Page title.

top or bottom options can be used, for up to two stamps applied to the logo on a page.

インストール

This extension was broken for several years. Use master or respectively the versions for MediaWiki 1.34 and later once available to install it.
  • ダウンロードして、ファイルをextensions/フォルダー内のLogoFunctionsという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'LogoFunctions' );
    
  • 必要に応じて設定します。
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

This extension can be used to set per-namespace logos via configuration by mapping a namespace number to a file available on the wiki:

$wgNamespaceLogos = [
	6 => 'Uncyclomedia Commons.png',
	7 => 'Uncyclomedia Commons.png',
];

The above code added to your "LocalSettings.php" file will set the specified files as logos for the "File" and "File talk" namespace. For these in particular, do remember to protect the files and also to mark them as used to prevent them from being deleted.

Do not use namespace constants but namespace numbers for configuration since the former will not work. See タスク T232952 for further information.