<help><text> <p>This MOO uses an XML based help system, for those who wish to use it.</p> <p>One important thing to notice is that you can only do sub-tags as listed. If you try to do a nested list for example, you will get errors. This is perhaps the xml help system's greatest shortcoming.</p> <p><eg><help></eg> starts an xml-help file and <eg></help></eg> ends it. This tag should encapsulate the whole of the help file. It has three sub-tags, <eg><redirect></eg>, <eg><usage></eg> and <eg><text></eg></p> <p><eg><redirect></eg> with a 'target' parameter will redirect the user to the specified help file. You cannot choose which help database to send the user to, its simply a redirect of the users <eg>?whatever</eg> command, where in the example <eg><redirect target="new-whatever"></eg> <eg>whatever</eg> is replaced with <eg>new-whatever</eg>. It has no sub-tags.</p> <p><eg><usage></eg> tag will encapsulate the syntax for a command or verb. In HTML rendering, it also applies an HTML <eg><tt></eg> tag. It also adds <eg>Usage:</eg> before your syntax line. It has no sub-tags.</p> <p><eg><text></eg> encapsulates generic xml-help text. Its has many sub-tags, <eg><pre></eg>, <eg><eg></eg>, <eg><list></eg>, <eg><topics></eg> and <eg><p></eg>.</p> <p><eg><pre></eg> is just like the HTML <eg><pre></eg>, it takes the encapsulated text and prints it character by character, including spaces. It has no sub-tags.</p> <p><eg><eg></eg> will add a starting <eg>`</eg> and ending <eg>'</eg> to the encapsulated data. Use it for examples. It has no sub-tags.</p> <p><eg><list></eg> encapsulates a bulleted list. It has one sub-tag, <eg><li></eg>.</p> <p><eg><li></eg> encapsulates one item in a bulleted list. Its sub-tags are <eg><link></eg> and <eg><eg></eg>.</p> <p><eg><link></eg> will turn an encapsulated url into a clickable link, based on the 'target' parameter. If there is no text to encapsulate, then the 'target' text is used and displayed instead.. Like in this example <eg><link target="http://moo.ca">click here</link></eg>. It has no sub-tags.</p> <p><eg><topics></eg> encapsulates a list of topics. It has two sub-tags, <eg><break></eg> and <eg><topic></eg>.</p> <p><eg><break /></eg> puts a space in a topic list. It has no sub-tags.</p> <p><eg><topic></eg> encapsulates one topic item in a topics list. Its 'name' element appears as a link to another help file, and its encapsulated data as the explanation of the linked help file. An Example would read <eg><topic name="intro">will give you a detailed introduction</topic></eg>. It has one sub-tag, <eg><link></eg>.</p> <p><eg><p></eg> is one of the most used tags, and encapsulates a paragraph (more or less). It inserts a space above and bellow the paragraph. It has many sub-tags, <eg><link></eg>, <eg><b></eg>, <eg><i></eg> and <eg><eg></eg>.</p> <p><eg><b></eg> encapsulates text which you want to bold. It has no sub-tags.</p> <p><eg><i></eg> encapsulates text which you want to italicise. It has no sub-tags.</p> <p>A list of all the tags properly indented to show sub-tags follows:</p> <pre>* help</pre> <pre> - redirect</pre> <pre> - usage</pre> <pre> - text</pre> <pre> - p</pre> <pre> - b</pre> <pre> - i</pre> <pre> - eg</pre> <pre> - link</pre> <pre> - list</pre> <pre> - li</pre> <pre> - link</pre> <pre> - eg</pre> <pre> - topics</pre> <pre> - break</pre> <pre> - topic</pre> <pre> -link</pre> <pre> - pre</pre> <pre> - eg</pre> </text></help>
[home | help | who | search | setup | code]