Template:Osslfunc
From OpenSimulator
(Difference between revisions)
(Updated to include function permissions and delay information) |
m (Move permissions and delay to separate lines) |
||
| Line 10: | Line 10: | ||
|- valign="top" | |- valign="top" | ||
|width="100"|'''Threat Level'''||{{#if:{{{threat_level|}}}|{{{threat_level}}}|''No threat level specified'' [[Category:OSSL_functions_without_threat_level]]}} | |width="100"|'''Threat Level'''||{{#if:{{{threat_level|}}}|{{{threat_level}}}|''No threat level specified'' [[Category:OSSL_functions_without_threat_level]]}} | ||
| + | {{!}}- valign="top" | ||
|'''Permissions'''||{{#if:{{{permissions|}}}|{{{permissions}}}|''No permissions specified'' [[Category:OSSL_functions_without_permissions]]}} | |'''Permissions'''||{{#if:{{{permissions|}}}|{{{permissions}}}|''No permissions specified'' [[Category:OSSL_functions_without_permissions]]}} | ||
| + | {{!}}- valign="top" | ||
|'''Function delay'''||{{#if:{{{delay|}}}|{{{delay}}}|''No function delay specified'' [[Category:OSSL_functions_without_delay]]}} | |'''Function delay'''||{{#if:{{{delay|}}}|{{{delay}}}|''No function delay specified'' [[Category:OSSL_functions_without_delay]]}} | ||
{{#if:{{{ossl_example|}}}| | {{#if:{{{ossl_example|}}}| | ||
| Line 33: | Line 35: | ||
| Severe = [[Category:OSSL Functions/ThreatLevel:Severe]] | | Severe = [[Category:OSSL Functions/ThreatLevel:Severe]] | ||
}} | }} | ||
| − | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Revision as of 07:32, 11 August 2016
This template is to be used as follows (copy and paste the following into a new page):
{{osslfunc
|function_syntax=
|csharp_syntax=
|description=
|threat_level=
|permissions=
|delay=
|ossl_example=
|additional_info=
}}
| Property | Description | Required |
| function_syntax | syntax in LSL | Yes |
| csharp_syntax | syntax in C# | No |
| description | definitions or descriptions | Yes |
| threat_level | Threat level | Yes |
| permissions | who may use this OSSL function | Yes |
| delay | Any penalty (delay in seconds) for using this function | No |
| ossl_example | sample codes | No |
| additional_info | notes, hints or so | No |
You can find some infomation about OSSL functions within IOSSL_Api.cs or OSSL_Api.cs. If you unsure what to fill in, feel free to leave it empty and wait for experts shown up:)
If you have added some additional common facilities like threat level, feel free to add it to this template.
Features of this template:
- Includes the {{quicklinks}} template
- Automatically adds the article to all the relevant categories
- Displays a placeholder text when required information is missing, and adds the article to the relevant "missing" category/categories.
For deprecated functions, use Template:Osslfunc/Deprecated instead of this template.