模板:Currency
出自Meshal Lite
第1行: | 第1行: | ||
<!--定义币制-->{{#vardefine:unit|{{#ifeq:{{{2|{{{unit|gsc}}}}}}||gsc|{{lc:{{{2|{{{unit|gsc}}}}}}}}}}}}<!--加载汇率-->{{currency/exchangeRate}}<!--开始输出内容--><includeonly>{{#ifeq:{{{value|{{{1|}}}}}}| | <!--定义币制-->{{#vardefine:unit|{{#ifeq:{{{2|{{{unit|gsc}}}}}}||gsc|{{lc:{{{2|{{{unit|gsc}}}}}}}}}}}}<!--加载汇率-->{{currency/exchangeRate}}<!--开始输出内容--><includeonly>{{#ifeq:{{{value|{{{1|}}}}}}| | ||
|<span class="textSymbol">{{img|symbol_infinity.png}}</span>无价 | |<span class="textSymbol">{{img|symbol_infinity.png}}</span>无价 | ||
− | |<span class="currencyInfo">{{#vardefine:value|{{#ifeq:{{{1|{{{value|}}}}}}|||{{{1|{{{value|}}}}}}}}}}<!--决定显示的货币文本-->{{#ifexist:template:currency/ex_{{#var:callCurrencyUnit}} | + | |<span class="currencyInfo">{{#vardefine:value|{{#ifeq:{{{1|{{{value|}}}}}}|||{{{1|{{{value|}}}}}}}}}}<!--决定显示的货币文本-->{{#ifexist:template:currency/ex_{{#var:callCurrencyUnit}}|{{currency/ex_{{#var:callCurrencyUnit}}|{{#expr:{{#var:value}}*{{#var:currencyExchangeRate_{{#var:unit}}~{{#var:callCurrencyUnit}}}}}}}}|{{currency/ex_{{#var:unit}}|{{{1|{{{value|}}}}}}}}}}{{#ifeq:{{{exchange|y}}}|y| |
− | + | ||
− | + | ||
− | }}{{#ifeq:{{{exchange|y}}}|y| | + | |
<!--决定浮层的货币文本--><div class="bg-blur"> | <!--决定浮层的货币文本--><div class="bg-blur"> | ||
;货币换算 | ;货币换算 |