Template:Object

From Legacy Roblox Wiki
Jump to navigationJump to search

This template is used for documenting object classes. This template will require setting four or less subpages, depending on your object. The four subpages that you can set are:

  • /superclass (This is for the class that your object inherits)
  • /methods (These hold all of the methods that originate from your object)
  • /properties (These hold all of the properties that originate from your object)
  • /events (These hold all of the events that originate from your object)

How to use the template

The template that we are using has three arguments. These arguments are shown below with the template:

{{Object|classname|object or service|style}}

For example, look at the following code:

How do I set the four subpages?

Superclass

This page is simply just the classname of the object this object inherits. For example, the superclass of Part would be BasePart.

Methods

This page is for all of the methods that originate from this object. They have to be set specifically according to the code above.

Properties

This page is for all of the methods that originate from this object. Like methods, they have to be set specifically according to the code above.

Events

This page is for all of the methods that originate from this object. They too have to be set specifically according to the code above.

Why use this template?

This template is useful for a lot of reasons. It cuts down on code. You can produce many objects in less time if you set the pages correctly and properly. Finally, the code is easy to understand.