PageTemplateSyntax: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 15: Line 15:
|Including namespaces if applicable, excluding class name if object oriented
|Including namespaces if applicable, excluding class name if object oriented
|name = gta.createBlip
|name = gta.createBlip
|-
|class
|method, property
|required
|name of the class
|
|class = Element
|-
|-
|side
|side
Line 64: Line 71:
|Syntax: '''type''' or '''type value'''.
|Syntax: '''type''' or '''type value'''.
|void<br>int -1
|void<br>int -1
|-
|note or<br>note(2-20)
|all
|optional
|
|A note for the page.
|note = Text goes here.<br>note2 = Text goes here.
|-
|-
|cancel
|cancel
Line 79: Line 79:
|cancel = true
|cancel = true
|-
|-
|compat or<br>compat(1-20)
|readonly
|variable, property
|required
|true, false
|Whether the variable/property is readonly.
|readonly = true
|-
|note<br>note(2-20)
|all
|optional
|
|A note for the page.
|note = Text goes here.<br>note2 = Text goes here.
|-
|compat<br>compat(1-20)
|all
|all
|optional
|optional
Line 86: Line 100:
|compat1 = Text goes here.
|compat1 = Text goes here.
|-
|-
|example or<br>exampleJS or<br>exampleLua or<br>exampleSquirrel or<br>exampleJSSS or<br>exampleJSCS or<br>exampleLuaSS or<br>exampleLuaCS or<br>exampleSquirrelJS or<br>exampleSquirrelCS
|example<br>exampleJS<br>exampleLua<br>exampleSquirrel<br>exampleJSSS<br>exampleJSCS<br>exampleLuaSS<br>exampleLuaCS<br>exampleSquirrelJS<br>exampleSquirrelCS
|all
|all
|optional
|optional
Line 92: Line 106:
|
|
|exampleJS = code here
|exampleJS = code here
|-
|cb(1-20)text
|method, function, event
|optional, even if matching arg(1-20) is a callback.
|Text
|Extra description for the callback argument.
|arg1 = function Arg1Name Arg 1 description.<br>cb1text = Extra callback description here.
|-
|cb(1-20)arg(1-20)
|method, function, event
|required if matching arg(1-20) callback receives any arguments.
|A callback argument.
|Syntax: '''type name description'''.
|arg1 = Element element The element that is about to be destroyed.
|-
|}
|}
6,833

edits