Template:Lua example
From GMod Wiki
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
How to use this template:
To use type:
{{Lua example |
description = DESCRIPTION |
useOn = LOCATION |
code = CODE |
output = OUTPUT |}}
- DESCRIPTION = A description of what the example code does.
- LOCATION = Where the action is executed, e.g. Server Side.
- Tip:Use {{Serverside}}, {{Client}} or {{Menu}} instead of words.
- CODE = The example code.
- Caution: Remember to include the <lua> & </lua> tags!
- OUTPUT = The outputed result of the executed code.
Use this template on a Lua function page (after the Lua function template) to add an example.
Editing this template will effect every page using it. BE CAREFUL! |