Extension:LogoFunctions/zh
![]() Category:Stable extensions/zh |
|
---|---|
Category:Parser function extensions/zh | |
描述 | 为维基Logo增加了一个解析器函数 |
作者 | JuneHyeon Bae (*devunt留言) |
最新版本 | 2.0 (2019-09-15) |
MediaWiki | 1.31+Category:Extensions with manual MediaWiki version/zh |
PHP | 7.0+ |
否 | |
GNU通用公眾授權條款2.0或更新版本 | |
下載 | Category:Extensions in Wikimedia version control/zh |
|
|
前往translatewiki.net翻譯LogoFunctions | |
問題 | 开启的任务 · |
LogoFunctions扩展添加了解析器功能,以覆盖或添加标记到维基徽标。
用途
#setlogo
{{#setlogo:ExampleLogo.png}}
这会将标志设置为[[File:ExampleLogo.png]]
#stamplogo
{{#stamplogo:Featured.png|190px|top|-1em|-1em}}
這會在徽標([[File:Featured.png]]
)上添加一個特色條目印章,其寬度為190像素、距離左邊-1em、距離頂部-1em,如uncyclopedia:Page title所示。
top
、bottom
参数可以用于添加最多两个印章。
该扩展曾失效多年。请安装主分支,或适配 MediaWiki 1.34 及以上的发布版。
- 下载,并将解压后的
LogoFunctions
移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LogoFunctions
- 将下列放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'LogoFunctions' );
完成 – 在您的wiki上至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.
请勿使用名字空间常量,因为它不起作用。详见T232952。
![]() | 此在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |
Category:All extensions/zh
Category:BeforePageDisplay extensions/zh
Category:Extensions in Wikimedia version control/zh
Category:Extensions included in Miraheze/zh
Category:Extensions included in WikiForge/zh
Category:Extensions with manual MediaWiki version/zh
Category:GPL licensed extensions/zh
Category:ParserFirstCallInit extensions/zh
Category:Parser function extensions/zh
Category:Stable extensions/zh