Guide:ExPar (Meta, no ontology)

From Compile Worlds

Revision as of 16:02, 12 October 2010 by Keiji (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ExPar is a temporary measure allowing Kawachan 1.5 to extract a paragraph of data from the article. You use it like this:

\!K154ExPar
function1(arg1=val1 arg2=val2 arg3=val3 ...)
function2(...)
...

If you need a value containing spaces, enclose it in single quotes ('). If you need to include a single quote, escape it with a backslash (as \').

Sometimes it won't get extracted properly, this is because MediaWiki is weird with line and paragraph breaks. Add or remove linebreaks before the \!K154ExPar line to work around that.

Currently, the only function is to put videos in the sidebar. The arguments are:

src (required)
The service and ID of the video, for example "yt:YJHux3Hda2c". "yt" means YouTube (currently the only supported service), and the 11 characters after the colon can be found from the video URL.
start (optional)
The time, in seconds, to start playing the video at. Default is 0.
caption (optional)
A caption to display underneath the video. Default is no caption.
aspect (optional)
The video's aspect ratio, used to determine the size of the video player. Default is 16:9.