跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
沙盒
编辑指导
用户守则
编写指导
社群首页
服务器索引
推荐服务器
知名服务器
服务器分类
基岩版服务器
Java版服务器
服务端教程
友情链接
MCBBS Wiki
像素科技
关于
站长主页
交流群
QQ频道
MCServerWiki
搜索
搜索
外观
创建账号
登录
个人工具
创建账号
登录
未登录编辑者的页面
了解详情
贡献
讨论
欢迎来到MCServerWiki!如果您是第一次来到这里,请点击:
创建账户
编辑“︁
帮助:横幅
”︁(章节)
帮助
讨论
大陆简体
阅读
编辑源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
编辑源代码
查看历史
常规
链入页面
相关更改
页面信息
导航
特殊页面
外观
移至侧栏
隐藏
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
==Configuration variables == <!--T:27--> </translate> <translate><!--T:29--> <tvar name=1>'''$wgWPBImage'''</tvar> is used to set the default banner image to be used.</translate> <translate><!--T:30--> Add image name without prefixing 'File:' namespace.</translate> <translate><!--T:31--> If the wiki does not need default banners, do not edit this field.</translate> <syntaxhighlight lang="php"> $wgWPBImage = "foo.jpg"; </syntaxhighlight> '''$wgWPBBannerProperty''' Banner property on Wikidata which holds a commons media file. Essential if Wikidata is enabled. <syntaxhighlight lang="php"> $wgWPBBannerProperty = "P948"; </syntaxhighlight> '''$wgWPBEnableDefaultBanner''' enables the default banner image on pages without the use of <code><nowiki>{{PAGEBANNER}}</nowiki></code>. <syntaxhighlight lang="php"> $wgWPBEnableDefaultBanner = true; </syntaxhighlight> <translate><!--T:33--> <tvar name=1>'''$wgWPBNamespaces'''</tvar> array of namespaces on which to display the banner.</translate> <translate><!--T:34--> Default is Main namespace.</translate> <translate><!--T:35--> It can also be set to <tvar name=2>{{php|true}}</tvar>, in which case it'll enable banner on all Namespaces, except those excluded by <tvar name=1>'''$wgWPBDisabledNamespaces'''</tvar>.</translate> <syntaxhighlight lang="php"> $wgWPBNamespaces = [ NS_MAIN ]; </syntaxhighlight> <translate><!--T:36--> <tvar name=1>'''$wgWPBDisabledNamespaces'''</tvar> excludes certain namespaces from showing banner.</translate> <translate><!--T:37--> Note that this parameter only has effect if <tvar name=1>{{phpi|$wgWPBNamespaces}}</tvar> is <tvar name=2>{{phpi|true}}</tvar>.</translate> <translate><!--T:38--> Otherwise, this parameter is disregarded and only namespaces in <tvar name=1>$wgWPBNamespaces</tvar> are considered.</translate> <syntaxhighlight lang="php"> $wgWPBDisabledNamespaces = [ NS_FILE ]; </syntaxhighlight> '''$wgWPBStandardSizes''' is an array of standard predefined screen widths in increasing order of size. <syntaxhighlight lang="php"> $wgWPBStandardSizes = [ 320, 640, 1280, 2560 ]; </syntaxhighlight> '''$wgWPBEnablePageImagesBanners''' when set to true and {{ll|Extension:PageImages}} is installed will use a page image when no Wikidata image or locally defined image is set. <syntaxhighlight lang="php"> $wgWPBEnablePageImagesBanners = true; </syntaxhighlight> '''$wgWPBDisplaySubtitleAfterBannerSkins''' is an array of names of skins that should have the banner displayed in the site-notice area, instead of in the page subtitle (which is the default). <syntaxhighlight lang="php"> $wgWPBDisplaySubtitleAfterBannerSkins = [ 'minerva' ]; </syntaxhighlight> '''$wgWPBEnableHeadingOverride''' determines whether the page title is displayed overlayed on the banner image. Defaults to true. <syntaxhighlight lang="php"> $wgWPBEnableHeadingOverride = true; </syntaxhighlight> '''$wgWPBEnableMainPage''' determines whether a banner is allowed to be shown on the {{manual|Main Page}}. Defaults to false. <syntaxhighlight lang="php"> $wgWPBEnableMainPage = false; </syntaxhighlight>
摘要:
请注意,所有对MCServerWiki的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
MCServerWiki:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
搜索
搜索
编辑“︁
帮助:横幅
”︁(章节)
添加话题