Template:Extension by patch warning

{{#switch: {{ambox }} {{#ifeq:{templatemode|}|nocats|| {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Extension by patch warning|noshift=1}} }} {{Documentation|content=
 * type = important
 * text =  This extension requires {{ll|Do not hack MediaWiki core|patches to core MediaWiki code}}{{#if:{{{version|}}}| when used with MediaWiki {{{version}}} and before}}.  Extensions implemented using patches may be disabled by or interfere with upgrades and security patches. {{#if:{{{version|}}}|If you would like to use this extension, we strongly recommend you upgrade to a version later than {version}. Alternatively, if|If}} a suitable alternative without a patch is available, we recommend you use that extension instead.
 * #default=

Purpose
Adds an extension to Category:Extensions requiring patches and inserts the warning box displayed below. If you only want the warning box, the category can be suppressed by using the optional parameter templatemode=nocats.


 * patch needed for all versions:


 * patch needed for versions before :

Parameters

 * templatemode=nocats - optional, suppresses categories
 * version - identifies the last MediaWiki version to require patches. Many extensions have been reimplemented to use hooks and configuration variables available in later versions.

{	"params": { "version": { "label": "Version", "description": "The highest MediaWiki version to require patching.", "type": "string" },		"templatemode": { "label": "Template mode", "description": "Set to 'nocats' to prevent inclusion in .", "example": "nocats", "type": "string" }	},	"description": "Banner for extension pages to indicate that an extension requires (the strongly discouraged) modification of MediaWiki core." }