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