bugfix250107.1
通过 SULFUR.WIKI 可快速访问本维基!
全站通知:

用户:30175732/沙盒2

来自火湖WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

#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;}
}}

图片改色的方法

filter颜色转换工具
Stamp.png

Stamp.png
{{#tag:bstyle|
.imgcolor {filter: brightness(0) saturate(100%) invert(87%) sepia(50%) saturate(344%) hue-rotate(28deg) brightness(103%) contrast(98%);} <!-- #D3FC96 -->
}}

求闻百科:格式手册