<help> <text> <p><b>Help file syntax:</b> Help files are enclosed by a <help> tag, and consist of either a <redirect> tag, or one or more <usage> tags, followed by a <text> tag.</p> <p><b>The <redirect> tag</b> is used to redirect the user to a different help page. A help page using the redirect command would typically look like this:</p> <pre> <help> <redirect target="foo" database="#123"> </help> </pre> <p> The <i>database</i> attribute is optional; if omitted, it will redirect to the current database.</p> <p><b>Usage tags</b> are optional. If a page is describing a command or function, they should be used to explain the syntax. The usage tag can contain text and <param> tags.</p> <p><b>Param tags</b> are used to represent the arguments to a verb/command, such as "put <i>thing</i> in <i>container</i>". There is an optional attribute <i>type</i>, which may be used to make parameters "optional"</p> <pre> <usage> equals(<param>x</param>, <param>y</param>, <param type="optional">case-matters</param> ) </usage> </pre> <p><b>The <text> tag</b> contains the text for the help page. This tag is split up into paragraphs, lists, <pre>formatted sections, and see-also topics.</p> <p><b>Within the <p> tag</b>, paragraphs of text can be marked up with <b><b></b>, <i><i></i>, <eg><eg></eg>, and <link><link></link> tags, as well as <param>s may be used to markup the text.</p> <p><b>The <list> tag</b> can contain <li> tags. List tags may use the type="-" attribute to specify which character should be used as a bullet. </p> <p><b>The <topics> tag</b> contains one or more <topic> tags. Each topic tag must contain a <i>name</i> attribute with the name of the help page to link to.</p> </text> </help>
[home | help | who | search | setup | code]