Difference between revisions of "Reference:Page Forms"
(Changed categories.) |
Forms for adding and editing semantic data
Use Cases[edit | edit source]
Use a special Namespace[edit | edit source]
You can have a page-input form create pages within a specific namespace (like 'User:') by default, without forcing users to type in that namespace every time. To do that, add 'namespace=namespace-name' to the "query string=" parameter.
(Note that, if you want to use SMW on a custom namespace, you need to add the namespace to $smwgNamespacesWithSemanticLinks.)
Page Forms (known until November 2016 as Semantic Forms) is an extension to MediaWiki that allows users to add, edit and query data using forms.
It was originally created as an offshoot of the Semantic MediaWiki extension, to be able to edit templates that store their parameters via SMW, which is why it was originally called "Semantic Forms". However, it can now also work with the alternative Cargo extension, or with neither extension installed.
Very simply, Page Forms allows you to have forms for creating and editing pages on your wiki, as well as for querying data, all without any programming. Forms can be created and edited not just by administrators, but by users themselves.
The main components of Page Forms functionality are form definition pages, which exist in a separate namespace, '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 "⧼formedit⧽" 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.
Source: mediawiki
'''Page Forms for adding and editing semantic data ==Use Cases== ===Use a special Namespace=== You can have a page-input form create pages within a specific namespace (like 'User:') by default, without forcing users to type in that namespace every time. To do that, add 'namespace=namespace-name' to the "query string=" parameter. (Note that, if you want to use SMW on a custom namespace, you need to add the namespace to $smwgNamespacesWithSemanticLinks.) ''' (known until November 2016 as '''Semantic Forms''') is an extension to MediaWiki that allows users to add, edit and query data using forms. It was originally created as an offshoot of the [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Semantic_MediaWiki Semantic MediaWiki] extension, to be able to edit templates that store their parameters via SMW, which is why it was originally called "Semantic Forms". However, it can now also work with the alternative [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Cargo Cargo] extension, or with neither extension installed. Very simply, Page Forms allows you to have '''forms for creating and editing pages''' on your wiki, as well as '''for querying data''', all '''without any programming'''. Forms can be created and edited not just by administrators, but by users themselves. The main components of Page Forms functionality are form definition pages, which exist in a separate namespace, '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 [https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Template 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 "⧼formedit⧽" 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. '''Source: '''[https://www.mediawiki.org/wiki/Extension:Page_Forms/Linking_to_forms#Adding_pages_of_a_specific_namespace mediawiki] [[en:{{FULLPAGENAME}}]][[de:Semantic Forms]] [[Category:Export]] [[Category:Extension]]
Line 1: | Line 1: | ||
− | Forms | + | '''Page Forms''' (known until November 2016 as '''Semantic Forms''') is an extension to MediaWiki that allows users to add, edit and query data using forms. |
− | + | It was originally created as an offshoot of the [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Semantic_MediaWiki Semantic MediaWiki] extension, to be able to edit templates that store their parameters via SMW, which is why it was originally called "Semantic Forms". However, it can now also work with the alternative [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Cargo Cargo] extension, or with neither extension installed. | |
− | |||
− | |||
− | + | Very simply, Page Forms allows you to have '''forms for creating and editing pages''' on your wiki, as well as '''for querying data''', all '''without any programming'''. Forms can be created and edited not just by administrators, but by users themselves. | |
+ | |||
+ | The main components of Page Forms functionality are form definition pages, which exist in a separate namespace, '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 [https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Template 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 "⧼formedit⧽" 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. | ||
+ | |||
+ | '''Source: '''[https://www.mediawiki.org/wiki/Extension:Page_Forms mediawiki] | ||
− | |||
[[en:{{FULLPAGENAME}}]][[de:Semantic Forms]] | [[en:{{FULLPAGENAME}}]][[de:Semantic Forms]] | ||
[[Category:Export]] | [[Category:Export]] | ||
[[Category:Extension]] | [[Category:Extension]] |