Extension:Page Forms

This page is a translated version of the page Extension:Page Forms and the translation is 53% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎polski • ‎čeština • ‎русский • ‎中文 • ‎日本語
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced.svg
Page Forms
リリースの状態: 安定
実装 特別ページ , API
説明 infobox形式のテンプレートを使うページの作成と編集用に、入力フォームを作成する拡張機能。Semantic MediaWiki あるいはCargo と併用(もしくは単体で使用)できる。 フォームの詳細はウィキページ上で設定、独自のマークアップ言語で記述し、パーシングはオンザフライ方式でフォームの表示時に直接、書き込む。
作者 Yaron Koren <yaron57@gmail.com>、Stephan Gambke、他
最新バージョン 4.9.4 (2020年7月)
互換性ポリシー master
MediaWiki 1.29+
Composer mediawiki/page-forms
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード Extension:Page Forms/ダウンロードとインストール を参照してください
  • $wgPageFormsAutoeditNamespaces
  • $wgPageFormsShowTabsForAllHelperForms
  • $wgPageFormsAutocompleteValues
  • $wgPageFormsLinkAllRedLinksToForms
  • $wgPageFormsShowExpandAllLink
  • $wgPageFormsContLangMonths
  • $wgPageFormsCalendarValues
  • $wgPageFormsDependentFields
  • $wgPageFormsCacheAutocompleteValues
  • $wgPageFormsRenameEditTabs
  • $wgPageFormsMaxAutocompleteValues
  • $wgPageForms24HourTime
  • $wgPageFormsFieldProperties
  • $wgPageFormsHeightForMinimizingInstances
  • $wgPageFormsMapsWithFeeders
  • $wgPageFormsRunQueryFormAtTop
  • $wgPageFormsCargoFields
  • $wgPageFormsRenameMainEditTab
  • $wgPageFormsGridValues
  • $wgPageFormsAutocompleteOnAllChars
  • $wgPageFormsGridParams
  • $wgPageFormsCacheFormDefinitions
  • $wgPageFormsDisableOutsideServices
  • $wgPageFormsMaxLocalAutocompleteValues
  • $wgPageFormsDatePickerSettings
  • $wgPageFormsCheckboxesSelectAllMinimum
  • $wgPageFormsUseDisplayTitle
  • $wgPageFormsShowOnSelect
  • $wgPageFormsListSeparator
  • $wgPageFormsSimpleUpload
  • $wgPageFormsCalendarParams
  • $wgPageFormsVisualEditorMaxHeight
  • viewedittab
  • editrestrictedfields
  • createclass
  • multipageedit
Page Forms 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。
問題点 未解決のタスク · バグを報告

2016年まではSemantic Formsとして知られていたPage Formsは、利用者によるフォームを利用したデータの追加・編集・問い合わせを可能にする MediaWiki 拡張機能です。

当初はSMW経由でパラメータを保存するテンプレートの編集を目指すという、Semantic MediaWiki 拡張機能から派生したプロジェクターだったため、"Semantic Forms" という名称でした。現在はその頃とは異なり、代替できるCargo 拡張機能との併用あるいはそれら拡張機能をインストールしない状態でも作動します。

簡単に言えば、Page Forms ではデータを問い合わせるためのフォームはもちろんページを作成・編集するためのフォームをも、すべて一切のプログラミングなしでウィキに設置することが可能です。 フォームは管理者だけでなく利用者自身でも作成しや編集ができます。

Page Forms 機能の主要な要素はフォームページの定義で、これは独立した名前空間「Form:」に存在します。 These are pages consisting of markup code which gets parsed when a user goes to a form. Since forms are defined strictly through these definition pages, users can themselves create and modify forms, without the need for any actual programming.

The Page Forms extension is mostly used to add and edit calls to infobox-style templates within pages. A form allows a user to populate a pre-defined set of templates, as well as page sections, for any page; if Cargo or Semantic MediaWiki are used, the data within the templates can then be stored and queried.

Forms can also be used to edit the data in an existing page, and you can enable an "edit with form" tab to show up on any page.

Page 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".

Page Forms also includes a wide variety of other functionality related to forms.


How to download Page Forms via either Git, a standard download, or a software package; and how to install it.
How to get started with Page Forms right away.
Wiki hosting sites that support Page Forms, plus public wikis that can be used for trying out the software.
All the "special pages" that Page 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), the ones used to display actual forms (Special:FormEdit, Special:FormStart, Special:RunQuery, Special:UploadWindow) and one that provides a spreadsheet-like interface to edit multiple pages containing a template (Special:MultiPageEdit).
The template-based philosophy of Page Forms - plus information on the two parser functions that PF defines for templates: #arraymap and #arraymaptemplate.
This is the first of the two major sections. How to define a form via a page within the "Form:" namespace. Covers the entire form-definition syntax, including the {{{info}}}, {{{for template}}}, {{{end template}}}, {{{field}}}, {{{section}}} and {{{standard input}}} tags. Also covers how to add tabs and tooltips.
The second major section. A listing of all allowed input types, as well as parameters for each, and the set of SMW and Cargo data types that each can be used with. Also includes complete information on autocompletion options.
How to get the "edit with form" 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 Page Forms with other extensions.
Known bugs in the software, and potential workarounds for them; plus features that are planned in the current "development roadmap".
Information for developers who want to modify Page 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.
A version history of Page Forms, from May 2007 to the present.
A small sampling of the wikis that use Page Forms, plus links to more comprehensive lists.
Extensions that require the presence of Page Forms, extensions that can be used together with Page Forms, and extensions that have a similar purpose to Page Forms.
リンク SMWの関連項目一覧 · Cargoの関連項目一覧 · Scratchpad · サンドボックス
パ|サ|関数 {{#arraymap:value|delimiter|var|formula|new_delimiter|conjunction}}
{{#forminput:form=|size=|default value=|button text=|query string=|autocomplete on category=|autocomplete on namespace=|placeholder=|popup|no autofocus|namespace selector|query string parameters}}
{{#formlink:form=|link text=|link type=|query string=|target=|tooltip=|popup|new window|query string parameters}}
{{#formredlink:form=|link text=|existing page link text=|query string=|target=|popup|new window|create page|query string parameters}}
{{#queryformlink:form=|link text=|link type=|query string=|tooltip=|popup|new window|query string parameters}}
{{#autoedit:form=|target=|link text=|link type=|minor|query string=|reload|tooltip=|query string parameters}}
{{#default_form:form name}}

text , text with autocomplete , textarea , textarea with autocomplete , tokens , combobox , date , datetime , year , datepicker , datetimepicker , checkbox , dropdown , radiobutton , checkboxes , listbox , tree , rating , regexp , googlemaps , leaflet , openlayers