Manual:Forms/fr
![]() | Please note: Some techniques recommended in this article require the use of extensions. Exercise caution when using them, as the status of each extension is self-assigned by its maintainer, and does not reflect the opinion of the MediaWiki development team.
Rappelez vous : certaines techniques recommandées dans cet article nécessitent l'utilisation d'extensions. Faites preuve de prudence lors de leur utilisation car le statut de chaque extension est auto-attribué par son mainteneur et ne reflète pas le point de vue de l'équipe de développement de MediaWiki. |
Within the Mediawiki ecosystem the concept of "form" can have 3 different meanings:
- built-in forms included in the Mediawiki software by which users can sign-in/login, edit the wikitext of pages, and even to perform structured searches through a large set of special pages
- input forms to provide wikis administrators with data entered by visitors, located in standard wiki articles or special pages
- forms located either in standard wiki articles and special pages by which users can enter structured data in order to create a new wiki article and to "preload " such article with the entered data (these kind of forms are known as "page forms")
Formulaires prédéfinis
Out-of-the-box MediaWiki uses form-based data entry for a variety of page maintenance and administrative functions. MediaWiki articles themselves are created using free-form wikitext. Like most other features of MediaWiki, there are numerous customization possibilities available.
Adapter les formulaires prédéfinis
Please see the following articles:
- Manuel:Interface , Messages système - describe how to customize/localize the text that appears on the built-in forms used by MediaWiki.
Formulaires de saisie
Input forms are standard forms placed either in wiki articles or in special pages where visitors can enter structured data (for instance contact information) and administrators can access submissions easily and securely. Because out-of-the-box MediaWiki does not provide this functionality, here is a list of extensions which implement it:
- Extension:ContactPage - implements a simple contact form within a fixed special page
- Extension:EmailPage - allows sending fully rendered articles with embedded CSS to users, groups, or contact lists
- Extension:CIForms - forms with auto-validation, multiple choice questions and cloze tests
- Extension:FlexForm - lets users define forms for creating and editing pages, and sending emails
- Extension:QuickSurveys - surveys appearing on articles based on a PHP configuration
- LimeSurvey - it might be a paid service, running on an external environment
Formulaires de page
"Page forms" are forms located either in standard wiki articles, or in Special pages, by which users can enter structured data in order to create and/or edit wiki articles, and to "preload" such articles with the entered data. The difference, compared to "input forms", is that input forms either send the data directly to a provided email address (usually the system administrator) or store submissions in the database, where they can be accessed by authorized users. By contrast, "page forms" use form submissions to fill a standard wiki article (publicly accessible on the wiki) with some structured data.
This is a list of extensions implementing this functionality:
- Extension:InputBox - extension pour créer ou renommer les pages, insérer des commentaires et rechercher du texte
- Extension:Page Forms - Extension to create and edit pages with infobox-style templates through forms
- Extension:FlexForm - lets users define forms for creating and editing pages, and sending emails
- Extension:Form - Extension that lets users create new articles with a form
- Extension:VisualData - full-fledged metadata management framework based on JSON-schema able to easily record, organize and query collection of data on your wiki
Please see Extension:Page Forms/Extensions liées for more information on this kind of forms.
Créer ou modifier des articles avec des données structurées
Certains articles contiennent un mélange de données structurées et de texte sous forme libre. For example, an article that holds a description of a marketing contact or a bug report would normally have a set of questions that must always be answered to create a complete article. In this case, a form or an article with some preloaded wiki text might be more appropriate. Autres informations sur cette approche, voir Manuel:Création de pages avec du texte préchargé .
Maîtrise du processus d'édition
If you are an extension developer, and you want your extension to intercept the editing process, you might want to check the following hooks :
- AlternateEdit - est appelé sur action=edit . It gives MediaWiki installations an opportunity to provide an alternate response to the edit action.
- EditPage::showEditForm:initial - is called when the text window used to enter wikitext is displayed. It gives extension writers the ability to define an alternative to the simple edit box. Liste des extensions qui utilisent cette accroche, voir Catégorie:Extensions liées à EditPage::showEditForm:initial .