Karos Graveyard Wiki
Advertisement

Function articles

Please format function entries like addSphere. I have reproduced it for you here.


addSphere(<sSphereName>, <tPosition>, <fRadius>)
Description
Adds a sphere to a ".level" file.
Note: This is a note.
Example
addSphere("CarrierFleeSphere", {6010, 0, -30508,}, 434.294)
Arguments
<sSphereName>: the name of the sphere.
<tPosition>: a table containing the X, Y, and Z coordinates.
<fRadius>: the radius of the sphere.
Related Pages
  • A related page

{{DISPLAYTITLE: addSphere}}
<br />
;addSphere(<sSphereName>, <tPosition>, <fRadius>)

;Description
:Adds a sphere to a ".level" file.
:<span class="notes">Note: This is a note.</span>

;Example
:<syntaxhighlight lang="lua">addSphere("CarrierFleeSphere", {6010, 0, -30508,}, 434.294)</syntaxhighlight>

;Arguments
:'''<sSphereName>''': the name of the sphere.
:'''<tPosition>''': a table containing the X, Y, and Z coordinates.
:'''<fRadius>''': the radius of the sphere.

;Related Pages
*[[A related page]]
<br />

  1. Note the use of the DISPLAYTITLE template. Many HWRM function names have underscores in them, which MediaWiki strips out. So you have to force the wiki to show them using this template. Do this for functions that start with a lowercase letter as well.
  2. Note the use of the syntaxhighlight tag. This makes the code examples look pretty.
  3. Note the use of the semicolon and colons. This is much simpler than putting everything in bold type.
  4. Note the formatting of the blue text.
  5. Don't forget to add the article to the correct scope category!
  6. Note also that in the function pages, parameter names are prefixed with a letter depending on the data type. E.g. lowercase s stands for string, i stands for integer, f stands for float, t stands for table, and b stands for boolean.

Thanks!

Advertisement