Rev 13291 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13291 | obado | 1 | # Model for an slib |
2 | The first part (before :proc) is for the documentation. |
||
13044 | bpr | 3 | |
14166 | bpr | 4 | You can also put the documentation part (everything except ``slib_author'') |
5 | in multiple files, one per ``lang'' in ``scripts/help/lang/slib/...'' |
||
6 | if you want it to be translated. |
||
13291 | obado | 7 | |
14166 | bpr | 8 | : |
13044 | bpr | 9 | !if $wims_read_parm!=slib_header |
10 | !goto proc |
||
11 | !endif |
||
12 | |||
13291 | obado | 13 | slib_author=Firstname, Lastname |
13044 | bpr | 14 | slib_parms=3\ |
15 | default, explanation\ |
||
16 | default, explanation\ |
||
17 | default, explanation |
||
18 | |||
19 | slib_example=example1\ |
||
20 | example2 |
||
21 | |||
22 | slib_require= |
||
23 | slib_out= result of the slib |
||
24 | slib_comment= more explanation |
||
25 | |||
26 | !exit |
||
27 | |||
13291 | obado | 28 | :proc |
13044 | bpr | 29 | |
30 | !distribute items $wims_read_parm into slib_xx, slib_yy, slib_zz, and so on |
||
31 | |||
32 | ... |
||
33 | |||
34 | calculation |
||
35 | |||
36 | slib_out= |
||
37 | |||
38 | |||
14166 | bpr | 39 | :The result must be in the variable ``slib_out''. |
13044 | bpr | 40 | |
14166 | bpr | 41 | Please prefix all the variables names by ``slib_''. |