Extension:Page Forms/zh

Semantic Forms （语义表单）是针对MediaWiki的一项扩展，可供用户利用表单的方式，来新增、编辑和查询数据. 在最初创建时，该扩展仅仅是扩展的分支之一，旨在能够利用SMW来编辑模板，并存储模板参数. 这也正是为何其名称之中带有“Semantic”字样的原因. 不过，如今，该扩展也可以与另外的扩展配合使用，或者，在没有安装和的情况下使用.

非常简单地说就是，Semantic Forms可让您能够在自己的wiki站点之上备有“用来创建和编辑页面的表单”以及“用来查询数据的表单”，且无须进行任何的编程. 不但管理员可以创建和编辑表单，用户自己也可以这样.

Semantic Forms功能的主要组件是表单定义页面. 这些页面有着单独的命名空间，即‘Form:’. 这些页面由置标代码构成，而且，当用户访问表单时，就会解析相应的这些代码. 表单的定义完全利用的是这些定义页面，因此，用户可以自行创建和编辑表单，而无须进行任何实际的编程.

Semantic Forms扩展一般用于在页面之中添加和编辑对于信息框式模板的调用. 对于任何页面而言，表单均可供用户填写预定的一套模板以及页面章节. 在使用Cargo或Semantic MediaWiki的情况下，则可以存储和查询此类模板当中的数据.

表单还可以用于编辑已有wiki页面当中的数据. 在任何的wiki页面上，均可启用并显示“”选项卡.

Semantic Forms also supports autocompletion of fields, so users can easily see what the previously-entered values were for a given field. This greatly helps to avoid issues of naming ambiguity, spelling, etc.

Data in a page that doesn't fit into the form, like a free-form text description of the page's subject, isn't ignored when the page is edited with a form; rather, it is placed into a separate input box called "free text".

另外，Semantic Forms还包括有种类多样的，与表单相关的其他功能.

如下所示为完整文档的链接.


 *  下载与安装 


 * 如何采取Git、标准下载或软件包的方式，来下载Semantic Forms；如何安装Semantic Forms. 


 *  快速上手指南 


 * 如何立即开始上手使用Semantic Forms. 


 *  主机托管 


 * 那些支持Semantic Forms的Wiki托管站点，以及那些可用于试用该扩展公开Wiki站点. 


 *  特殊页面 


 * ''All the "special pages" that Semantic Forms defines: the ones that provide helper forms (Special:CreateProperty, Special:CreateTemplate, Special:CreateForm, Special:CreateCategory, Special:CreateClass), the ones that display lists (Special:Templates, Special:Forms) and the ones used to display actual forms (Special:FormEdit, Special:FormStart, Special:RunQuery, Special:UploadWindow).


 *  Semantic Forms 与模板 


 * The template-based philosophy of Semantic Forms - plus information on the two parser functions that SF defines for templates: #arraymap and #arraymaptemplate.


 *  表单的定义 


 * This is the major section. How to define a form via a page within the "Form:" namespace. Covers the entire form-definition syntax, including the,  ,  ,  ,  and  tags. Also covers how to add tabs and tooltips.


 *  “”选项卡 


 * How to get the "" tab to appear on pages, using the #default_form parser function. Plus, how to rename the tab to simply "edit", and how to remove the standard "edit" tab (if you want to).


 *  与表单的链接 


 * How to bring users to forms, via the #forminput, #formlink, #formredlink and #queryformlink functions. Also, how to use #formredlink to have red-linked pages created automatically. Also, how to create links that directly modify a page, via the #autoedit function.


 *  创建查询表单 


 * Creating forms to query data, instead of to modify data, via the Special:RunQuery page.


 *  常见问题 


 * Common issues people have run into, and their solutions, relating to forms, data structure design, and the use of Semantic Forms with other extensions.


 *  已知错误和计划功能 


 * ''Known bugs in the software, and potential workarounds for them; plus features that are planned in the current "development roadmap".


 *  获取支持 


 * Where to ask questions, submit bug reports, submit feature requests, submit fixes, and add new translations.


 *  开发人员文档 


 * Information for developers who want to modify Semantic Forms, or create an extension that works in tandem with it.


 *  作者与致谢 


 * The main authors, others who have contributed to the code, and credits to other organizations and software projects.


 *  版本历史 


 * 2007年5月至今Semantic Forms的版本历史. 


 *  使用Semantic Forms的网站 


 * A small sampling of the wikis that use Semantic Forms, plus links to more comprehensive lists.


 *  相关扩展 


 * Extensions that require the presence of Semantic Forms, extensions that can be used together with Semantic Forms, and extensions that have a similar purpose to Semantic Forms.