Template:ExtensionHook/fr

{{Documentation|content=

Notes d'utilisation

 * name
 * Nom de l'accoche. C'est habituellement le même nom que celui de la sous-page.


 * version
 * Version de MediaWiki pour laquelle cette accroche a été introduite pour la première fois.


 * rev
 * Révision SVN pour laquelle cette accroche a été introduite pour la première fois. Si ce paramètre est fourni, il pointera vers la page CodeReview concernée (par exemple r115794).


 * gerrit
 * Numéro de modification Gerrit pour lequel cette accroche a été introduite pour la première fois. Si ce paramètre est fourni, il doit pointer vers la page du groupe de modifications approprié de Gerrit (par exemple Gerrit modification 5)


 * removed
 * Si l'accroche a été supprimée, la version de MediaWiki dans laquelle la suppression a eu lieu.


 * deprecated
 * Si l'accroche est obsolète, (mais n'a pas été supprimée), la version de MediaWiki dans laquelle l'obsolescence a été déclarée.


 * summary
 * Une brève description de ce que fait l'accroche.
 * Une description plus détaillée est souhaitable, et doit être ajoutée au contenu de la page principale.
 * Si vous mettez à jour la description courte, pensez également à mettre à jour les deux tables de.


 * args
 * Les arguments, tels qu'ils sont utilisés au début de la fonction.


 * extension
 * Extension name where hook is called; for when the source is not in the MediaWiki core code repository.


 * source
 * Emplacement (nom de fichier) qui appelle cette accroche dans le code. D'autres emplacements peuvent être ajoutés via source2...source10.


 * sourcefunction
 * Nom de la fonction qui appelle cette accroche. On peut en ajouter une autre via sourcefunction2.


 * sourceclass
 * Nom de la classe qui appelle cette accroche.


 * newvarname
 * Utilisé par Removed ou Deprecated lorsque removed ou deprecated est positionné.


 * newvarlink
 * Utilisé par Removed ou Deprecated lorsque removed ou deprecated est positionné.


 * templatemode
 * Mettre nocats si vous ne voulez pas que la documentation de l'accroche apparaisse dans les catégories standard de MediaWiki.
 * Par défaut, l'utilisation de ce modèle place la documentation dans les catégories :
 * Accroches MediaWiki
 * Accroches ajoutées à MediaWiki...
 * Dans certains cas, il n'est pas souhaitable que la documentation de l'accroche soit automatiquement catégorisée. Des exemples seront inclus lors de la documentation d'une accroche, ou à la documentation du modèle lui-même.

Template data
{	"params": { "templatemode": { "label": "Template mode", "type": "string" },		"name": { "label": "Name", "description": "The name of the hook. This is usually the same name as the sub-page.", "type": "string", "required": true },		"removed": { "label": "Version removed", "description": "If the hook has been removed, the version of MediaWiki that it was removed in.", "type": "string" },		"newvarname": { "label": "Replacement name", "description": "If the hook is either deprecated or removed, name the feature that replaces this hook, if there is any replacement.", "type": "string" },		"newvarlink": { "label": "Replacement link", "description": "If the hook is either deprecated or removed, link to the feature that replaces this hook, if there is any replacement.", "type": "wiki-page-name" },		"deprecated": { "label": "Version deprecated", "description": "If the hook has been deprecated, the version of MediaWiki that it was deprecated in.", "type": "string" },		"version": { "label": "Version introduced", "description": "The version of MediaWiki this hook was first introduced in.", "type": "string", "suggested": true },		"rev": { "label": "SVN revision introduced", "description": "SVN revision in which this hook was first introduced. If this parameter is given, it will link to the appropriate CodeReview page.", "type": "string" },		"gerrit": { "label": "Gerrit changeset introduced", "description": "Gerrit change number in which this hook was first introduced. If this parameter is given, it will link to the appropriate Gerrit changeset page.", "type": "number", "suggested": true },		"summary": { "label": "Summary", "description": "A short description of the hook's purpose. More detailed descriptions are desirable, and should be added to the main page content.", "type": "string", "suggested": true },		"args": { "label": "Arguments", "description": "The arguments that are defined by the hook signature.", "required": true, "type": "string" },		"extension": { "label": "Extension name", "description": "Extension name where the hook is called; for when the source is not in the MediaWiki core code repository.", "type": "wiki-page-name", "required": true },		"source": { "label": "Source 1", "description": "Location (file name) which calls this hook in the code.", "type": "string", "suggested": true },		"source2": { "label": "Source 2", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source3": { "label": "Source 3", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source4": { "label": "Source 4", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source5": { "label": "Source 5", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source6": { "label": "Source 6", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source7": { "label": "Source 7", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source8": { "label": "Source 8", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source9": { "label": "Source 9", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"source10": { "label": "Source 10", "description": "Location (file name) which calls this hook in the code, if another source exists", "type": "string" },		"sourcefunction": { "label": "Source function", "description": "Name of the function which calls this hook", "type": "string", "suggested": true },		"sourceclass": { "label": "Source class", "description": "The fully qualified class name (FQCN) which calls this hook.", "suggested": true, "type": "string" },		"sourcefunction2": { "label": "Source function 2", "description": "Name of the function which calls this hook, if another functions call this hook", "type": "string" }	},	"description": "A card which describes the information of a hook registered by an extension.", "paramOrder": [ "templatemode", "name", "rev", "gerrit", "version", "deprecated", "removed", "newvarname", "newvarlink", "summary", "args", "extension", "source", "source2", "source3", "source4", "source5", "source6", "source7", "source8", "source9", "source10", "sourceclass", "sourcefunction", "sourcefunction2" ],	"format": "block" }

Voir aussi


}}