Wikifier

Used to display text on the page.  This is taken more or less verbatim from the TiddlyWiki core code, though not all formatters are available (notably the WikiWord link).

Summary
Used to display text on the page.
Wikifies source text into a DOM element.
Meant to be called by macros, this returns the text passed to the currently executing macro.
Creates a link to a passage.
Creates a link to an external URL.

Functions

Wikifier

function Wikifier(place,
source)

Wikifies source text into a DOM element.  Any pre-existing contents are appended to.  This should be used in place of TiddlyWiki’s wikify() function.

Parameters

placethe DOM element to render into
sourcethe source text to render

Returns

nothing

fullArgs

Wikifier.prototype.fullArgs = function()

Meant to be called by macros, this returns the text passed to the currently executing macro.  Unlike TiddlyWiki’s default mechanism, this does not attempt to split up the arguments into an array, thought it does do some magic with certain Twee operators (like gt, eq, and $variable).

Parameters

none

Returns

a parsed string of arguments

createInternalLink

Wikifier.createInternalLink = function (place,
title)

Creates a link to a passage.  It automatically classes it so that broken links appear broken.

Parameters

placethe DOM element to render into
titlethe title of the passage to link to

Returns

the newly created link as a DOM element

createExternalLink

Wikifier.createExternalLink = function (place,
url)

Creates a link to an external URL.

Parameters

placethe DOM element to render into
urlthe URL to link to

Returns

the newly created link as a DOM element

function Wikifier(place,
source)
Wikifies source text into a DOM element.
Wikifier.prototype.fullArgs = function()
Meant to be called by macros, this returns the text passed to the currently executing macro.
Wikifier.createInternalLink = function (place,
title)
Creates a link to a passage.
Wikifier.createExternalLink = function (place,
url)
Creates a link to an external URL.