Open main menu
This page is a translated version of the page Extension:FormWizard and the translation is 15% complete.

Other languages:
English • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
FormWizard
发布状态: 测试
FormWizardStep 1.png
实现 Parser function, Ajax, API
描述 在MediaWiki wiki上创建新页面
作者 Egbe Eugene and James Hare
最新版本 0.0.1 (TBA)
MediaWiki 1.29+
数据更新
许可协议 GNU General Public License 2.0 or later
下载
README
使用的钩子
ResourceLoaderTestModules
BeforePageDisplay
OutputPageParserOutput
翻译FormWizard扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

The FormWizard extension allows anyone to create forms on MediaWiki wikis, used to create new pages. It was first developed as a FormWizard gadget but is now available as a MediaWiki extension.

User guide

For an end user guide to FormWizard, see Help:Extension:FormWizard.

Installation

  • 下载文件,并将其放置在您extensions/文件夹中的FormWizard目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'FormWizard' );
    
  • Run Composer to install PHP dependencies, by issuing composer update in the extension directory.
  •   完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

Basic setup

For FormWizard to be able to work properly, you need to configure the parser function on a wiki page like so:

{{#formwizard:action=Start|config=Config.json|mode=subpage|project=TestProject}}

with mode=" ", should generate a button which looks like this:

Start

with mode="subpage", should generate a button and a text field like so:

 

In the parser function definition,

  • action is what should be displayed on the button which will be created
  • config is the name of the JSON configuration page. An example can be found here
  • mode is the mode in which the extension in operating and is used to determine if the user will need to provide a subpage name before the making use of the extension.
  • project is the project where the extension is applied (this will be used to define page content in context of the project.