Template:Protected: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Usage==
<onlyinclude>{{EmphasisBox|<span style{{=}}"float:left;">Protected:</span>This item is protected. Attempting to use it in a {{type|instance=Script}} or {{type|instance=LocalScript}} will cause an error. {{{1|}}}|orange|dark=true|text-align:center}}<includeonly>{{if|{{{nocat|}}}||[[Category:Protected members]]}}</includeonly></onlyinclude>
===Code===
{{Documentation}}
<code>
{{Protected}}
</code>
===Result===
{{Protected}}
 
[[Category:Templates]]
 
<includeonly><onlyinclude>{{EmphasisBox|<span style{{=}}"float:left;">Protected:</span>This item is protected. Attempting to use it in a {{type|instance=Script}} or {{type|instance=LocalScript}} will cause an error. {{{1|}}}|orange|dark=true|text-align:center}}[[Category:Protected Members]]</onlyinclude></includeonly>

Latest revision as of 19:58, 7 April 2012

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
[purge] Template documentation
This template is used to mark a property, a method or an event as protected. It should not be used on pages other than pages of events, methods and properties and should always be contained in a noinclude tag (or otherwise not be contained in the onlyinclude tag, if there is one). If it must be used on a page other than the page of a property, method or event, then its nocat argument must be specified.

Arguments

nocat
Must be specified if the template is used on a page other than a property, event or method page.