Template:Lua example

From GMod Wiki

Jump to: navigation, search
DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/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! 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.


Warning 64 severe.pngEditing this template will effect every page using it. BE CAREFUL!


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox