Template:Property: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy
No edit summary
>JulienDethurens
Added hidden category so we can find all of these quickly and correct them eventually, even though it isn't an emergency.
 
(59 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div style="float:left; padding:2px; width:600px; min-height:150px; overflow:auto; margin:2px;">
{{if|{{{property|}}}|[[Category:Properties using the old property argument]]}}{{if|1={{{name<includeonly>|</includeonly>}}}|2={{if|1={{{type<includeonly>|</includeonly>}}}|2={{if|1={{{description<includeonly>|</includeonly>}}}|2=<onlyinclude><div style="float:left; max-width:600px; width: 50%; overflow:auto">
{| cellspacing="0" cellpadding="4" style="-webkit-border-radius: 6px; -moz-border-radius: 6px; background: #ffdddd; margin:0; width: 100%; font-size: 90%; text-align: left; align: center; padding: 4px; border: solid 4px #3d78e3;"
{{{!}} cellspacing="0" cellpadding="4" style="margin: 2px; display: block; {{border-radius|6px}}; background: {{color|blue}}; font-size: 90%; text-align: left; border: 4px solid {{color|blue|dark}};"
|style="padding: 1; font-size:120%; font-weight:bold;" colspan="2"|[[Image:{{if|{{{protected|}}}|Protected}}Property Icon.png]][[{{{name}}} (Property)|{{{name}}}]]
{{!}}style="padding: 1; font-size:120%; font-weight:bold;" colspan="2"{{!}}[[File:{{if|{{{protected|}}}|Protected}}Property Icon.png|link={{{name}}} (Property)]][[{{{name}}} (Property){{!}}{{{name}}}]]
|-style="background: #FFFFFF;"
{{!}}-style="background: {{color|blue|light}};"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Property
{{!}}style="width: 10%; border-top: solid 1px {{color|blue|dark}}; border-right: solid 1px {{color|blue|dark}}; font-weight:bold;"{{!}}{{if|{{{type|}}}|Type|Property}}
|style="border-top: solid 1px black;"|{{{property}}}
{{!}}style="border-top: solid 1px {{color|blue|dark}};"{{!}}{{{type|{{{property|}}}}}}
|-style="background: #ffdddd;"
{{!}}-
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold;"|Description
{{!}}style="width: 10%; border-top: solid 1px {{color|blue|dark}}; border-right: solid 1px {{color|blue|dark}}; font-weight:bold;"{{!}}Description
|style="border-top: solid 1px black;"|{{{description}}}
{{!}}style="border-top: solid 1px {{color|blue|dark}};"{{!}}{{{description}}}
|-style="background: #FFFFFF;"
{{!}}-style="background: {{color|blue|light}};"
|style="width: 10%; border-top: solid 1px black; border-right: solid 1px black; font-weight:bold; border-bottom: solid 1px black;"|In Objects
{{!}}style="width: 10%; border-top: solid 1px {{color|blue|dark}}; border-right: solid 1px {{color|blue|dark}}; font-weight:bold; border-bottom: solid 1px {{color|blue|dark}};"{{!}}Member of
|style="border-bottom: solid 1px black; border-top: solid 1px black;"|[[{{{object}}}]]{{if|{{{object2|}}}|, [[{{{object2|}}}]]}}
{{!}}style="border-bottom: solid 1px {{color|blue|dark}}; border-top: solid 1px {{color|blue|dark}};"{{!}}{{if|{{{object|}}}|[[RBX.lua.{{{object|}}} (Object)|{{{object|}}}]]|{{{objects|}}}}}
|}</div><noinclude>
{{!}}}</div></onlyinclude>|3=<p class="error">The description must be specified.</p>[[Category:Pages with template errors]]}}|3=<p class="error">The type must be specified.</p>[[Category:Pages with template errors]]}}|3=<p class="error">The name must be specified.</p>[[Category:Pages with template errors]]}}<noinclude>{{documentation}}[[Category:Object Documentation Templates]]</noinclude>
{{clear floats}}
 
== Example Usage ==
 
<pre>
{{Property
|name        = Name
|property    = [[String]] ''object's name''
|description = The name of the object.
|object      = Instance
}}
</pre>
 
{{Property
|name        = Name
|property    = [[String]] ''object's name''
|description = The name of the object.
|object      = Instance
}}
 
<pre>
{{Property
|name        = Protected Property
|property    = [[ProtectedProperty]] ''protectedProperty''
|description = A protected property that cannot be read or written from scripts.
|object      = NonExistantObject
|protected  = yes}}</pre>
 
{{Property
|name        = Protected Property
|property    = [[ProtectedProperty]] ''protectedProperty''
|description = A protected property that cannot be read or written from scripts.
|object      = NonExistantObject
|protected  = yes}}
 
[[Category:Object Documentation Templates]]
</noinclude>

Latest revision as of 12:09, 26 April 2012

link={{{name}}} (Property)[[{{{name}}} (Property)|{{{name}}}]]
Property
Description {{{description}}}
Member of
[purge] Template documentation
This template is used to document properties. It should only be used to document properties that are part of the ROBLOX API.

Usage

<onlyinclude>{{Property
|name=name
|type=type
|description=description
[|protected=bool]
[|object=object]
[|objects=objects]
}}</onlyinclude>

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

name
The name of the property.
type
The type of the property. Should be either a link to the page of the type, either be displayed through the {{type}} template.
description
A description of the property.
protected
If specified, the icon of the property will indicate that the property is protected.
object
The name of the object this property belongs to, if there is only one. Otherwise, use the objects argument.
objects
Links to the objects this property belongs to, if there are more than one. Otherwise, use the object argument.

Notes

  • The property should always be at the top of the page.
  • If you need to put things after the property, make sure to use the {{clear floats}} template between the property and the rest of the page.
  • All properties should be categorized under the Properties category.