Template:Deprecated

Deprecated:This item is deprecated. Do not use it for new work. Use {{{alternative}}} instead. {{{1}}}
[purge] Template documentation

Documentation subpage icon

This is a documentation subpage for Template:Deprecated.
It contains usage information, categories and other content that is not part of the original template page.

This template marks an object, or a member of an object, as deprecated. It displays a red box indicating that the object has been deprecated and adds the Deprecated items category to the page. It should only be used if the object browser itself marks the object as deprecated.

Usage

{{deprecated[|text][|alternative=alternative]}}

Note: text between brackets ([ and ]) is optional, text in bold represents a certain value (something you must replace) and the rest represents things that must be present as-is.

Parameters

alternative
The alternative to use, if there is one. Usually, this will be a link to another property, method, event or object.
1
Additional information about the deprecation. Do not use this to indicate an alternative, use the alternative argument instead.

Examples

This is an example of what could be put on the page of the children method:

{{deprecated|alternative=[[GetChildren]]}}

And this is an example of what could be put on the page of the Remove method:

{{deprecated|Use [[ClearAllChildren]] to get rid of all child objects, or [[Destroy]] to invalidate this object and its descendants.}}