Template:Usage

From Spherical
Revision as of 19:21, 20 May 2013 by Apollolux (talk | contribs) (Added 'return')
Jump to: navigation, search


Use this template to demonstrate Sphere API. Template parameters include:

  • return (optional) - The return type of the function
  • object (optional) - The Sphere object this function is a member of, if any
  • func - The name of the function
  • params (optional) - A comma-separated list of function parameters, if any

For example, {{Usage|object=sound|func=play|params=repeat}} will result in:

sound.play(repeat);