source: trunk/FACT++/www/smartfact/struct/help-syntax.page@ 18406

Last change on this file since 18406 was 14623, checked in by tbretz, 12 years ago
File size: 2.1 KB
Line 
1Syntax
2|
3To write your own page you need to understand the syntax of the files.
4The first line in the file is the title. It is just the title
5displayed. If the first character is an asterix (*) then the page is
6considered a page which is intented for script submission (<I>control
7page</I>). If the page name starts with <B>help-</B>, the page is
8considered a help page and the help symbol is inactive. If the page is
9a control page, the submitted script with have the name of the page
10without extension, with the extension <B>.dim</B>, <I>e.g.</I>
11if the page name is <I>mypage.page</I> the submitted scripts
12name is <I>mypage.dim</I>.
13
14Each following line of the file describes a row in the table and is
15split by pipes (&#124;). To use a pipe in a line you have to
16write &#38;#124;. Lines which containes less than two pipes are
17concatenated until the number of pipes in one line is at least two. So
18the description of one row can look like
19
20<pre>
21leftlink&#124;Description&#124;format&#124;rightlink
22</pre>
23
24but also
25
26<pre>
27leftlink&#124;<br/>
28Description<br/>
29&#124;format&#124;rightlink
30</pre>
31
32If <I>leftlink</I> is available, a left arrow is displayed on the left
33and the row will link to page called <I>leftlink.page</I>. The same for
34<I>rightlink</i>, just that a right arrow is displayed on the right instead.
35Both are mutually exclusive, and can also be omotted.
36
37The <I>Description</I> is just a text which appears on the left side of
38the row in bold-face. if the format is omitted, it will fill the full
39width of the table and be displayed in normal-face. Consequently, a
40simple text entry could look like:
41
42<pre>
43&#124;<br/>
44This is my simple text entry.&lt;br/&gt;<br/>
45We can have more lines...
46
47...and even a paragraph-break.&lt;br/&gt;<br/>
48&#124;
49</pre>
50
51Every line starting with a # is ignored.
52
53The description can also have special contents (see below).
54
55If the help is not a help-page, a data file is loaded and its data is
56displayed on the right of each row according the format given.
57|
58|Special tag descriptions||help-description
59|Data file and data file format||help-datafile
60|Binary file format||help-binaryfile
Note: See TracBrowser for help on using the repository browser.