Rev 5766 | Rev 11223 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
11219 | bpr | 1 | !set lstyle=<span class="command_attr"> |
2 | !set lstyle2=<span class="tt"> |
||
3 | !set lstend=</span> |
||
2071 | zjchen | 4 | !set lst_tit=!char 5 to -1 of $tit |
4563 | bpr | 5 | !set lst_titend=$titend |
2071 | zjchen | 6 | !set lst_type=$lstyle 类型$lstend |
11219 | bpr | 7 | !set type_exec=执行命令 |
8 | !set type_pexec=执行命令(只对phtml文件有效) |
||
9 | !set type_var =变量命令 |
||
10 | !set type_both=既是执行命令又是变量命令 |
||
11 | !set lst_syntax=$lstyle 语法$lstend: |
||
12 | !set lst_syntaxend=</span> |
||
13 | !set lst_alias=$lstyle 别名$lstend: |
||
14 | !set lst_mean =$lstyle 意义$lstend: |
||
2071 | zjchen | 15 | |
16 | Wims命令可同时用于变量处理文件以及phtml文件. |
||
11219 | bpr | 17 | 命令就是以 $emph!$emphend 起首的一个词. |
2071 | zjchen | 18 | <p> |
19 | 命令分成两种类型: |
||
20 | <ul> |
||
21 | <li>执行命令, 它应该出现在行首. |
||
22 | <li>变量命令, 它出现在变量定义的起首. |
||
23 | </ul> |
||
24 | 某些命令既是执行命令又是变量命令. |
||
25 | <p> |
||
26 | 命令可以接受参数, 参数就是接在后面的词. 参数间用空格或其它词(由命令决定)分隔. |
||
3102 | zjchen | 27 | <a name="cmdlist_list"></a> |
5766 | bpr | 28 | <hr/><h4>这里是$emph$(choose_$cmd_choose)$emphend命令表.</h4> |
2071 | zjchen | 29 | |
30 | !if $style!=integral |
||
31 | 你可以切换到 |
||
11219 | bpr | 32 | <ul> |
2071 | zjchen | 33 | !for i in $cmd_choose_list |
34 | !if $i != $cmd_choose |
||
11219 | bpr | 35 | <li class="wims_label inline command_list"> |
2071 | zjchen | 36 | !href cmd=resume&cmd_choose=$i#cmdlist_list $(choose_$i) |
11219 | bpr | 37 | 命令表 |
38 | </li> |
||
2071 | zjchen | 39 | !endif |
40 | !next i |
||
11219 | bpr | 41 | </ul> |
2071 | zjchen | 42 | !endif |
43 | <ul> |
||
44 | !for c in $cmdfiles |
||
11219 | bpr | 45 | <li class="wims_command" id="cmdlist_$(c)_"> |
2071 | zjchen | 46 | !if $style != folding |
11219 | bpr | 47 | <ul class="wims_nopuce"> |
48 | !for ff in tit,type,syntax, mean,alias,sample |
||
49 | !set text=!lookup $ff in cmd/$c.phtml |
||
50 | !if $text!=$empty |
||
51 | <li> |
||
52 | $(lst_$ff) |
||
53 | !set text=!replace internal ` by $emph in $text |
||
54 | !if $ff=syntax |
||
55 | !set text=!replace internal $\ |
||
56 | $ by $(lst_$(ff)end) <br/>$lstyle2 in $text |
||
57 | !endif |
||
58 | !set text=!replace internal \' by UUUUU in $text |
||
59 | !set !replace internal ' by $emphend in $text |
||
60 | !replace internal UUUUU by ' in $text |
||
61 | $(lst_$(ff)end) |
||
62 | </li> |
||
63 | !endif |
||
64 | !next |
||
65 | </ul> |
||
66 | !if $c iswordof if |
||
67 | !read help/if.phtml |
||
68 | !endif |
||
69 | !if $c iswordof randfile record recordcnt |
||
70 | <div> |
||
71 | !read cmd/datafile.phtml |
||
72 | </div> |
||
73 | !endif |
||
74 | !if $c iswordof word column char item line record |
||
75 | <div> |
||
76 | !set numlist_type=$c |
||
77 | !read cmd/numlist |
||
78 | </div> |
||
79 | !endif |
||
80 | !set text=!lookup numlist in cmd/$c.phtml |
||
81 | !if $text!=$empty |
||
82 | !set text=!replace internal ` by $emph in $text |
||
83 | !replace internal ' by $emphend in $text |
||
84 | !endif |
||
2071 | zjchen | 85 | !else |
86 | !if cmdlist_$(c)_ isin $expand |
||
3492 | bpr | 87 | <a href="$httpd_SCRIPT_NAME?session=$session&+cmd=resume&+op=close&+subject=cmdlist_$(c)_#cmdlist_$(c)_"></a> |
11219 | bpr | 88 | !!!read cmd/$c.phtml |
2071 | zjchen | 89 | !else |
90 | !href cmd=resume&op=open&subject=cmdlist_$(c)_#cmdlist_$(c)_ $c |
||
91 | !endif |
||
92 | !endif |
||
11219 | bpr | 93 | </li> |
2071 | zjchen | 94 | !next c |
95 | |||
96 | </ul> |