Page Forms also includes a wide variety of other functionality related to forms. This greatly helps to avoid issues of naming ambiguity, spelling, etc.ĭata 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 supports autocompletion of fields, so users can easily see what the previously-entered values were for a given field. Disambiguations are typically somewhat user-unfriendly I describe my method for improving quality. This is the story of how I dealt with one. 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.įorms 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. The pattern of store -> query -> store -> query can lead to caching nightmares when working with Cargo or SMW in MediaWiki. The Page Forms extension is mostly used to add and edit calls to infobox-style templates within pages. Since forms are defined strictly through these definition pages, users can themselves create and modify forms, without the need for any actual programming. These are pages consisting of markup code which gets parsed when a user goes to a form. The main components of Page Forms functionality are form definition pages, which exist in a separate namespace, 'Form:'. Forms can be created and edited not just by administrators, but by users themselves. 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. However, it can now also work with the alternative Cargo extension, or with neither extension installed. It was originally created as an offshoot of the Semantic MediaWiki extension to be able to edit templates that store their parameters via SMW. Thus, this template presupposes not only that the Page Forms extension is installed, but that an "Author" form has been created.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. | " into one or more sub-values (splitting by comma), then, for each value, either links directly to that page, if a page with that name already exists or links to the form for creating that page, using the form definition at "Form:Author". Here is what the two templates might look like: A database table, defined by the Cargo extension, whose values will be. However, you can also manually create these templates. A Semantic MediaWiki concept whose pages will be autocompleted on. If you have the Page Forms extension installed, you can use either of its helper pages Special:CreateTemplate or Special:CreateClass to create these templates.Īnd if you also have the Page Schemas extension installed, you can use its standard "create/edit schema" to create and re-create Cargo-based templates. The main thing you need to do is create two templates, one for books and one for authors. You want two kinds of pages on your wiki: one for books, and one for authors.Įach book page should hold a title, an author name (or names), a genre (or genres), a year of publication, and a number of pages.Įach author page should hold the author name, their country of origin, and a list of all the books they have written that you own. Let's say that you want to create a wiki that shows all the books you have at home.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |