Extension:ParserFunctions/zh
From Linux Web Expert
<translate> This {{<tvar name=1>#if:|{{{type}}}</tvar>|extension}} [[<tvar name=mwversion>Special:MyLanguage/MediaWiki 1.18#Bundled extensions</tvar>|comes with MediaWiki <tvar name=mwversion2>1.18</tvar>]] and above.</translate> <translate> Thus you do not have to download it again.</translate> <translate> However, you still need to follow the other instructions provided.</translate>
ParserFunctions 发行状态: 稳定版 |
|
---|---|
实现 | 解析器函数 |
描述 | 以逻辑函数和字符串函数优化解析器。 |
作者 | Tim Starlingtalk |
最新版本 | 持續更新 |
兼容性政策 | 快照跟随MediaWiki发布。 master分支不向后兼容。 |
MediaWiki | 1.25+ |
数据库更改 | 否 |
许可协议 | 未指定许可协议 |
下載 | README |
帮助 | |
季度下載量 | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
正在使用的公开wiki数 | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
前往translatewiki.net翻譯ParserFunctions-{zh-hans:扩展; zh-hant:擴充功能}- | |
問題 | 开启的任务 · 报告错误 |
ParserFunctions(解析器函数)扩展通过一些有用的函数加强了维基文本(wikitext)的解析能力,尤其是逻辑和字符串处理方面。从 MediaWiki 1.15 版本开始,ParserFunctions已经包含大部分(但不是所有的)之前的字符串函数扩展里的函数,但是这些函数可能被启用或者被禁用。
有关如何使用此扩展的说明,请参阅帮助页。
安裝
- <translate> [[<tvar name=2>Special:ExtensionDistributor/ParserFunctions/zh</tvar>|Download]] and move the extracted <tvar name=name>
ParserFunctions/zh
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions%2Fzh - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'ParserFunctions/zh' );
- 按要求配置。举个例子,如果你想要使用the intergrated字符串函数,你只需要在行末添加:
$wgPFEnableStringFunctions = true;
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
配置
$wgPFEnableStringFunctions
- 允许激活整合进扩展的字符串函数功能(参见 string function )。 默认值为
false
。 $wgPFStringLengthLimit
- 定义字符串函数中字符串最大允许长度。默认值为
1000
。
帮助页面
參見
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
File:OOjs UI icon information-progressive.svg |
Categories:
- Pages with script errors
- Extensions bundled with MediaWiki 1.18/zh
- Pages with broken file links
- Stable extensions/zh
- Parser function extensions/zh
- Extensions with manual MediaWiki version
- Extensions with no license specified/zh
- Extensions in Wikimedia version control/zh
- All extensions/zh
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/zh