模板:R
出自Meshal Lite
第1行: | 第1行: | ||
− | <includeonly><font | + | <includeonly><!--注册有效的前导运算符-->{{#vardefine: leadOp|{{#switch:{{#sub:{{{roll|{{{1|3}}}}}}|0|1}} |
− | + | |+=+ | |
− | + | |-=- | |
− | + | |*=* | |
− | + | |/=/ | |
− | + | |×=× | |
− | + | |÷=÷ | |
− | + | |+=+ | |
− | + | |-=- | |
− | + | |*=* | |
− | + | |/=/ | |
− | + | |#default=}}}}<!--渲染掷骰算式--><b><font class="rolldice {{#ifeq:{{#var:leadOp}}||rolldiceDeco|}}">{{{roll|{{{1|3}}}}}}{{#ifeq: {{#switch: {{{sum|{{{2|}}}}}}|sum = 1| true = 1| 1 = 1| y = 1| yes = 1| s = 1| + = 1| #default=0}}|1|[[骰面|<font style="text-shadow:1px 1px 1px #999999;">🎲<sup style="color:#ff0000; font-weight:900; margin-left:.5em;">+</sup></font>]]|[[点数|<font style="text-shadow:1px 1px 1px #999999; margin-right:.5em;">🎲</font>]]}}</font><font class="rollmod">{{{mod|{{{3|}}}}}}</font></b></includeonly><noinclude>{{tpl_helpdoc}}</noinclude> | |
− | + | ||
− | + | ||
− | < | + | |
− | {{ | + | |
− | + | ||
− | </noinclude> | + |