Template:MediaWikiHook/doc

{	"params": { "templatemode": { "description": "Set to nocats if hook documentation should not appear in standard MediaWiki Categories. By default, using this template places the documentation page into categories: MediaWiki hooks Hooks added in MediaWiki... There are times when it is undesirable to automatically categorize the hook documentation. Examples would include when documenting a hook in an extension, or when documenting the template itself.", "label": { "en": "Template mode", "fr": "mode du modèle" }		},		"name": { "description": { "en": "The name of the hook. This is usually the same name as the sub-page.", "fr": "nom de l'accroche. Habituellement c'est le même que celui de la sous-page." },			"label": { "en": "Name", "fr": "nom" }		},		"version": { "description": { "en": "The version of MediaWiki this hook was first introduced in.", "fr": "version de MediaWiki dans laquelle cette accroche a été initialement introduite." },			"suggested": true, "label": { "en": "Version", "fr": "version" }		},		"removed": { "description": { "en": "If the hook has been removed, the version of MediaWiki that it was removed in.", "fr": "version de MediaWiki dans laquelle l'accroche a été supprimée, si c'est le cas." },			"type": "string", "label": { "en": "Version removed", "fr": "supprimé" }		},		"newvarname": { "label": { "en": "New variable name", "fr": "nouveau nom de variable" },			"description": { "en": "For removed or deprecated hooks, the name of the hook that should be used instead", "fr": "nom de l'accroche à utiliser pour remplacer les accroches supprimées ou devenues obsolètes" }		},		"newvarlink": { "label": { "en": "New variable link", "fr": "nouveau lien de variable " },			"description": { "en": "For removed or deprecated hooks, the link to the hook that should be used instead", "fr": "lien de l'accroche à utiliser pour remplacer les liens des accroches supprimées ou devenues obsolètes" }		},		"deprecated": { "description": "If the hook has been deprecated (but not removed), the version of MediaWiki that it was deprecated in.", "label": { "en": "Version deprecated", "fr": "obsolète" }		},		"rev": { "label": { "en": "SVN revision introduced", "fr": "révision" },			"description": "SVN revision in which this hook was first introduced. If this parameter is given, it'll link to the appropriate CodeReview page (e.g. rSVN1)." },		"gerrit": { "description": "Gerrit change number in which this hook was first introduced. If this parameter is given, it'll link to the appropriate Gerrit changeset page (e.g. Gerrit change 1)", "suggested": true, "label": "Gerrit changeset" },		"summary": { "description": { "en": "A short description of the hook's purpose. More detailed descriptions are desirable, and should be added to the main page content.", "fr": "brève description de ce que fait l'accroche. Si une description plus complète est souhaitée, elle doit être ajoutée au contenu de la page d'accueil." },			"required": true, "label": { "en": "Summary", "fr": "résumé" }		},		"args": { "description": { "en": "The arguments, as used at the top of the function.", "fr": "arguments tels qu'ils sont utilisés à l'entrée de la fonction" },			"required": true, "label": { "en": "Arguments", "fr": "arguments" }		},		"extension": { "label": "Extension" },		"source": { "description": "Location (file name/path not including ) which calls this hook in the code. Further locations can be added via source2...source10.", "suggested": true, "label": "File source" },		"source2": { "label": "File source 2" },		"source3": { "label": "File source 3" },		"source4": { "label": "File source 4" },		"source5": { "label": "File source 5" },		"source6": { "label": "File source 6" },		"source7": { "label": "File source 7" },		"source8": { "label": "File source 8" },		"source9": { "label": "File source 9" },		"source10": { "label": "File source 10" },		"sourcefunction": { "description": "Name of the function which calls this hook. Another can be added via sourcefunction2.", "suggested": true, "label": "Function source" },		"sourceclass": { "description": "Name of the class which calls this hook.", "suggested": true, "label": "Class source" },		"sourcefunction2": { "label": "Function source 2" },		"removed-msg": { "label": { "en": "Message for removed hook", "fr": "message de supression" },			"description": "If it is not suitable to use either the \"newvarname\" or the \"newvarlink\" template parameter, use this parameter. This parameter can be used to explain why it was removed, or for example, explain why there is no suitable replacement.", "type": "string" },		"deprecated-msg": { "label": { "en": "Message for deprecated hook", "fr": "message d'obsolescence" },			"description": "If it is not suitable to use either the \"newvarname\" or the \"newvarlink\" template parameter, use this parameter. This parameter can be used to explain why it was removed, or for example, explain why there is no suitable replacement.", "type": "string" }	},	"format": "block", "description": { "en": "A card which describes the information of a MediaWiki-registered hook.", "fr": "Fiche décrivant l'information d'une accroche enregistrée de MediaWiki." },	"paramOrder": [ "templatemode", "name", "version", "removed", "removed-msg", "deprecated", "deprecated-msg", "newvarname", "newvarlink", "rev", "gerrit", "summary", "args", "extension", "source", "source2", "source3", "source4", "source5", "source6", "source7", "source8", "source9", "source10", "sourcefunction", "sourcefunction2", "sourceclass" ] }