Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

Util.js can be included in your mod with a single line of Javascript...

 

Step 1 - Download it

Download the latest version from the home page and store it alongside the other .js files in your mod.

See also: Util API Downloads.

Step 2 - Include it

In the script where you want to use Util.js, include it in your script:

Code Block
themeRDark
languagejavascript
linenumberstrue
include("path/to/util_0.6.js");

That's it!

What Next?

After including the file, you can start using the following features:

Child pages (Children Display)
pageAPI
excerpttrue

the Util API features.

Div
classnotice box ping

Remember to change the version number in the filename in the include() statement.

Div
classbox

JS API docs:

  • include() – include an external script file

Util API docs:

  • Util API – full documentation of all Util.js features