Subversion Repositories wimsdev

Rev

Rev 13044 | Go to most recent revision | 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
 
13291 obado 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
 
6
```
13044 bpr 7
!if $wims_read_parm!=slib_header
8
  !goto proc
9
!endif
10
 
13291 obado 11
slib_author=Firstname, Lastname
13044 bpr 12
slib_parms=3\
13
default, explanation\
14
default, explanation\
15
default, explanation
16
 
17
slib_example=example1\
18
example2
19
 
20
slib_require=
21
slib_out= result of the slib
22
slib_comment= more explanation
23
 
24
!exit
25
 
13291 obado 26
:proc
13044 bpr 27
 
28
!distribute items $wims_read_parm into slib_xx, slib_yy, slib_zz, and so on
29
 
30
...
31
 
32
calculation
33
 
34
slib_out=
13291 obado 35
```
13044 bpr 36
 
13291 obado 37
The result must be in the variable `slib_out`.
13044 bpr 38
 
13291 obado 39
Please prefix all the variables names by `slib_`.
13044 bpr 40
 
13291 obado 41