用户:30175732/沙盒2
#ifexpr
{{#ifexpr: 1+1=2 | true | false }} -->> true
{{#ifeq: !true | true | true | false }} -->> false
{{#ifeq: {{#ifexpr: 2 > 1 | true }} | true | true | false}} -->> true
#iferror
{{#iferror: {{#expr: hhh and hhh}} | <font color=red>字符</font> | 数字 }} -->> 字符
{{#iferror: {{#expr: hhh and 555}} | <font color=red>字符</font> | 数字 }} -->> 字符
{{#iferror: {{#expr: 555 and 555}} | <font color=red>字符</font> | 数字 }} -->> 数字
{{#iferror: {{#expr: 555 and hhh}} | <font color=red>字符</font> | 数字 }} -->> 字符
{{#iferror: {{#expr: 000 and 555}} | <font color=red>字符</font> | 数字 }} -->> 数字
{{#iferror: {{#expr: hhh and ggg}} | <font color=red>字符</font> | 数字 }} -->> 字符
#iferror (EX.)
NUM = 10
number -> $num | 0 < number < NUM | number
number -> $str | 0 < number < NUM | NUM
{{#iferror: {{#expr: 4 and 4}} | 10 | {{#ifexpr: 0 < 4 and 4 < 10 | 4 | 10}} }} -->> 4
{{#iferror: {{#expr: 4 and 4}} | 10 | {{#expr: 0 < 4 and 4 < 10 | 4 | 10}} }} -->> 1
{{#iferror: {{#expr: 12 and 12}} | 10 | {{#expr: 0 < 12 and 12 < 10 | 12 | 10}} }} -->> 0
一种背景的用法
{{#tag:bstyle|
.card {width: 100%;height: auto;min-height: 200px; background: url({{filepath:Stamp.png}}), url({{filepath:{{{1|{{{bgIMG|200000.jpg}}}}}}}}) no-repeat fixed;}
}}
图片改色的方法
{{#tag:bstyle|
.imgcolor {filter: brightness(0) saturate(100%) invert(87%) sepia(50%) saturate(344%) hue-rotate(28deg) brightness(103%) contrast(98%);} <!-- #D3FC96 -->
}}


沪公网安备 31011002002714 号