Template:Lua example

From DarkRP
Jump to navigation Jump to search
Used on

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.
Use {{Serverside}}, {{Client}} or {{Menu}} instead of words.
  • CODE = The example code.
  • 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.