Extension:Page Forms/Download and installation/zh

下载
您可以下载.zip格式的页面表单代码. https://github.com/wikimedia/mediawiki-extensions-PageForms/archive/5.1.zip

您也可以直接从MediaWiki源代码库通过Git下载代码（参见可用标签）. 从扩展目录的命令行，运行以下代码：

如需在线查看代码，包括每个文件的历史版本，参见PageForms.

不推荐
还有一些其它方法可以下载页面表单，但并不推荐：


 * 页面表单可以从MediaWiki扩展分配器下载，您可以在该页面下载适用于MediaWiki任何版本的任何扩展. This not recommended because the code being downloaded represents a random snapshot in time, that could contain bugs that were fixed later - or, if the "development/trunk" version is used, it could conversely contain code that is too new, and hasn't been fully tested yet.
 * 页面表单可通过某些Linux发行版获得，例如Debian. 不建议使用这种方式，因为它们的软件版本往往已过时.

安装
将代码下载到 文件夹中名为 的目录后，您需要将以下行添加到LocalSettings.php文件中：

为页面表单定义了四个：

By default it is given to all members of the 'user' group. By default it is given to everyone (i.e, '*').
 * ' '权限用于创建新的类（参见扩展:页面表单/特殊页面）. 默认情况下，它被赋予“用户”组的所有成员.
 * ' '权限用于编辑受限字段. 默认情况下，它被赋予“管理员”（sysop）组的所有成员.
 * ' ' is the "permission" to use the MultiPageEdit special page, which allows to edit multiple pages through a single spreadsheet-like interface.
 * ' ' is the "permission" to see the "edit with form" tab.

You can modify the set of users who have any of these permissions. For example, to have the "edit with form" tab show up only for administrators, you could add the following, below the inclusion of Page Forms:

Composer
Page Forms can also be downloaded and installed using Composer. However, this is not a well-supported feature at the moment.

To install with Composer, add the following to your  file:

{  "require": { "mediawiki/page-forms": "^5.1" } }

有关软件包的更多信息，请参阅