Open main menu
This page is a translated version of the page Extension:LogoFunctions and the translation is 38% complete.

Outdated translations are marked like this.
Other languages:
English • ‎dansk • ‎español • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
LogoFunctions
发布状态: 稳定版
实现 Parser function
描述 为维基Logo增加了一个解析器函数
作者 JuneHyeon Bae (devunttalk)
最新版本 2.0 (2019-09-15)
MediaWiki 1.31+
PHP 7.0+
数据更新
许可协议 GNU General Public License 2.0 or later
下载
$wgNamespaceLogos
翻译LogoFunctions扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

LogoFunctions扩展为维基Logo增加了一个解析器函数。

用途

#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.

安装

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目录内。

配置 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 configration since the former will not work. See 任务T232952 for further information.