Interface administrators, moderator
2,771
edits
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Template Name: ScriptItem2 | {{DISPLAYTITLE:Page Template Syntax}} | ||
== Template Name: ScriptItem2 == | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 27: | ||
|all | |all | ||
|required | |required | ||
|server, client, | |server, client, shared | ||
| | | | ||
|side = shared | |side = shared | ||
Line 41: | Line 42: | ||
|required | |required | ||
|iii vc sa iv | |iii vc sa iv | ||
|Game support. | |[[GamesAndVersions|Game support]]. Separated by spaces. | ||
|games = iii vc sa iv | |games = iii vc sa iv | ||
|- | |||
|offline | |||
|all | |||
|optional | |||
|true/false | |||
|Whether the function works when '''not''' connected to a server | |||
|offline = true | |||
|- | |||
|online | |||
|all | |||
|optional | |||
|true/false | |||
|Whether the function works when connected to a server | |||
|online= true | |||
|- | |- | ||
|desc | |desc | ||
Line 75: | Line 90: | ||
|event | |event | ||
|required | |required | ||
|true | |true/false | ||
|Whether the event can be cancelled. | |Whether the event can be cancelled. | ||
|cancel = true | |cancel = true | ||
Line 82: | Line 97: | ||
|variable, property | |variable, property | ||
|required | |required | ||
|true | |true/false | ||
|Whether the variable/property is readonly. | |Whether the variable/property is readonly. | ||
|readonly = true | |readonly = true | ||
Line 109: | Line 124: | ||
|cb(1-20)text | |cb(1-20)text | ||
|method, function, event | |method, function, event | ||
|optional | |optional | ||
|Text | |Text | ||
|Extra description for the callback argument. | |Extra description for the callback argument. | ||
Line 116: | Line 131: | ||
|cb(1-20)arg(1-20) | |cb(1-20)arg(1-20) | ||
|method, function, event | |method, function, event | ||
| | |optional | ||
|A callback argument. | |A callback argument. | ||
|Syntax: '''type name description'''. | |Syntax: '''type name description'''. | ||
|arg1 = | |arg1 = Client client The element's syncer | ||
|- | |- | ||
|} | |} |