Extension:Page Forms/Common problems/fr

Vous trouverez ci-dessous les questions communes et les problèmes rencontrés lors de l'utilisation de. Cette page ne contient pas les bogues connus de - pour cela, allez sur Bogues connus et fonctionnalités planifiées.



Problèmes MediaWiki

 * Si un modèle contient des titres de section (comme ), lorsque le modèle est affiché sur une page, chaque titre de section aura son propre lien « Modifier ». De tels liens ne sont pas souhaitables, car ils conduiront l'utilisateur à modifier le modèle plutôt que la page actuelle en question. La façon la plus simple d'éviter ce problème est de placer la chaîne   n'importe où dans ce modèle; cela supprimera tous les liens de modification de section de toute page qui contient ce modèle. Une autre option qui vous permet de supprimer sélectivement les liens de section (mais toujours pas recommandée) est d'utiliser les balises, , etc. au lieu de  ,  , etc.



Problèmes liés à Page Forms

 * Vous pouvez modifier la façon dont les dates sont entrées et sorties par les formulaires en ajoutant la ligne  au fichier MediaWiki principal . Par défaut, les dates sont imprimées comme  ; en faisant ce changement, les dates seront alors imprimées sous le format « June 20, 2007 » (avec le nom du mois qui dépend de la langue du wiki).
 * Vous pouvez également définir manuellement le format d'affichage des dates en utilisant la fonction d'analyseur #time définie par l'extension . Pour un format européen de style de date par exemple, vous pouvez avoir quelque chose comme ceci dans le modèle :


 * De même, vous pouvez modifier la façon dont les heures sont saisies et affichées. Si vous avez un champ de formulaire dont le type d'entrée est, par défaut il utilisera le format sur 12 heures, avec AM (pour le matin) et PM (pour l'après-midi). Vous pouvez le changer en format 24 heures en ajoutant dans votre fichier $ 2la ligne :


 * If a page (which we'll call Page A) gets transcluded in another page (which we'll call Page B), and Page A belongs to a category that's associated with a form, it can have the unfortunate side effect of making Page B a member of that category as well, thus giving Page B an "edit with form" tab at the top, even if such a tab is not appropriate. You can solve this problem by putting the category declaration in Page A within a block, which will make Page A a member of that category but not Page B.
 * If, when you go to the special pages  or , you see a database error message that looks like "Access denied for user...", it means your database account lacks permission to create temporary tables.
 * If you run into any JavaScript problems using (such as the "upload file" window not popping up correctly), the issue could be a JavaScript bug coming from another extension, or from the skin. To debug the issue, add   or   to the URL where the problem is. Then "inspect" the page using the browser, and click on "Console" to see if there are any JavaScript error messages.
 * Various of ' actions are done using the MediaWiki job queue, such as creating templates and properties using Special:CreateClass, and automatically generating pages. If these actions do not seem to be getting performed, it could be that the value of is not large enough. By default it is 300 MB (prior to MW 1.22, 100 MB); to increase it, add something like the following to :


 * If a form contains a large number of fields - such as through the use of multiple-instance templates - and not all of them are saved, it could be due to a limitation in PHP. Increasing the value of the  setting in php.ini may help.
 * If you are having problems with within forms, make sure that the following line is not in LocalSettings.php:


 * If is not appearing within textareas, it may help to add the following line to LocalSettings.php:
 * If you want to do any processing on a list of values before calling  on it, such as sorting it, splitting it up or printing its size, it may help you to use the  extension.
 * only handles forms for adding and editing data in wiki pages. You may want forms for other purposes: fortunately, there are a few other form extensions you can use. For example, allows you to create forms for emailing data. See also the MediaWiki forms manual for other such extensions.
 * only handles forms for adding and editing data in wiki pages. You may want forms for other purposes: fortunately, there are a few other form extensions you can use. For example, allows you to create forms for emailing data. See also the MediaWiki forms manual for other such extensions.


 * Standard wiki tables are not allowed within field values. You can overcome this limitation by using  instead of   in the wiki table syntax. If you make use of  within form fields (using the  extension), it will thankfully escape pipes within tables automatically. Or you could just use standard HTML tags to create tables.

Issues with other extensions

 * If you use Semantic MediaWiki for autocompletion, for instance using, you may find that certain values are truncated and instead end with a random series of numbers and characters.

Data design issues

 * One common issue is how to use categories. The Wikipedia approach is to have many categories on each page, to identify all aspects of that page's subject. The general approach, though, is to only have one category per page, and have this category be set by the main template in the page: in other words, it is recommended that users not enter category declarations directly. The one exception to this rule is when there's a need for "hierarchical tagging", i.e. being able to add a page within different levels of a category tree. The   input type can be used for this purpose.
 * When defining a relationship between any two "classes", you may be unsure about which class should store that relationship. Usually such relationships will be of the one-to-many variety, also known as parent-child relationships, in which each page of type A has a relationship to any number of pages of type B, while each page of type B always has a relationship to exactly one page of type A. An example is countries and cities: a country can have many cities, but a city always belongs to exactly one country. In such a case, you may not know whether it should be country pages that have a "City" field, or city pages that have a "Country" field, or even whether both fields should exist. In this situation, it is recommended that you specify the relationship only from the child to the parent, i.e. use a "Country" field for cities and not the other way around. This is for two reasons: first, it lets you enforce the rule that every child has exactly one parent; and second, it makes autocompletion within the form more reliable, since parent pages are usually created before their children's pages are.
 * You may not be sure about whether to create one form or many for a set of related page types. For instance, in a wiki about restaurants, should you have a separate form/template/category set for regular restaurants, fast-food restaurants, diners etc., or a single form called "Restaurant", with a corresponding single template and category, that just uses a field to indicate the type of restaurant it is? A good rule of thumb is to look at the set of data that you want to be entered and displayed for each type of page. If it's the same across all the types, then you should probably use a single form/template/category set for all of them. If there are only a few differences, then you might be able to use the "show on select" feature to handle the different cases within a single form. However, if there are significant enough difference in the set of fields being displayed, then it probably makes sense to give such a page type its own form, template and category.
 * It is possible to create a different namespace for each page type. Wikisource does this with an "Author:" namespace, for instance, and some -using wikis have one or more namespaces for different page types. Whether you do this on your wiki is up to you, but it is not recommended that you do it unless there is a real possibility of naming ambiguity otherwise. A massive wiki like Wikipedia will have a great deal of pages that require disambiguation, but most small wikis will barely have any, and so having separate namespaces will probably be a needless complication. ( Currently the most common examples of ambiguity in smaller wikis are caused by having pages for both cities and states in the United States: "New York" and "Washington" both fit into either category. There are various solutions to this problem, but the simplest may be to have all states referred to by their two-letter abbreviation, e.g. "NY" and "WA". )