Template:Deprecated/doc

From Legacy Roblox Wiki
Revision as of 20:31, 7 April 2012 by >JulienDethurens
Jump to navigationJump to search

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.}}