Extension:NoTitle/zh

Category:GPL licensed extensions/zh
NoTitle
Category:Stable extensions/zh
Category:Extended syntax extensions/zh
描述 增加一个允许用户隐藏页面标题的魔术字
作者
最新版本 0.4.0 (2018-07-16)
MediaWiki 1.29 - 1.43Category:Extensions with manual MediaWiki version/zh
PHP 5.5+
GNU通用公眾授權條款3.0或更新版本
下載 Category:Extensions in Wikimedia version control/zh
sandbox.semantic-mediawiki.org
前往translatewiki.net翻譯NoTitle
Category:All extensions/zh

No Title扩展会增加一个魔术字__NOTITLE__,使得用户可以隐藏任何页面的标题。

用法

Add __NOTITLE__ behavior switch on any pages where you want to hide the title.

[1]

{{DISPLAYTITLE:newtitle}} 对任何页面有效。

  • 下载,并将解压后的NoTitle移动到extensions/目录中。
    开发者和代码贡献人员应从Git安装扩展,输入:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NoTitle
    
  • 将下列放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'NoTitle' );
    $wgRestrictDisplayTitle = false;
    
  • Yes 完成 – 在您的wiki上Special:Version,以验证已成功安装

备注

  1. This extension will work for any skin that puts the title heading in an <h1> with class="firstHeading", including the default Vector skin.

參見

Category:HTML head extensions/zh
Category:All extensions/zh Category:Extended syntax extensions/zh Category:Extensions in Wikimedia version control/zh Category:Extensions included in Miraheze/zh Category:Extensions included in MyWikis/zh Category:Extensions included in WikiForge/zh Category:Extensions included in wiki.gg/zh Category:Extensions with manual MediaWiki version/zh Category:GPL licensed extensions/zh Category:GetDoubleUnderscoreIDs extensions/zh Category:HTML head extensions/zh Category:OutputPageParserOutput extensions/zh Category:Stable extensions/zh