PageTemplateSyntax: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "{| class="wikitable" !Template Field !Page Type !Values !Notes !Example |- |name |all |name of the function/event |Including namespaces if applicable, excluding class name if...")
 
No edit summary
Line 1: Line 1:
Template Name: ScriptItem2
{| class="wikitable"
{| class="wikitable"
!Template Field
!Field Name
!Page Type
!Page Type
!Values
!Values
!Notes
!Notes
!Example
!Examples
|-
|-
|name
|name
Line 35: Line 37:
|For events, text is automatically added to the start: "The '''event-name''' event is invoked when"<br>Otherwise, text is automatically added to the start: "The '''item-name''' '''item-type''' is used to"<br>A full stop is added to the end of the description if the description doesn't end in one already.
|For events, text is automatically added to the start: "The '''event-name''' event is invoked when"<br>Otherwise, text is automatically added to the start: "The '''item-name''' '''item-type''' is used to"<br>A full stop is added to the end of the description if the description doesn't end in one already.
|desc = an element is destroyed
|desc = an element is destroyed
|-
|arg(1-20)
|function, method, event
|An argument. Syntax: '''type name description''' or '''[type name = defaultValue]'''.<br>For an optional argument, use [] around the type and name and use '''= value''' for the default value.
|arg1 = Element element The element that is about to be destroyed.<br>arg1 = [Element element = localClient.player] Example description.
|}
|}
6,834

edits

Navigation menu