模板:汇率卡片:修订间差异
来自Blockland Wiki
更多操作
创建页面,内容为“<includeonly><div style="background-color: #f0f9ff; border: 1px solid #e0f2fe; padding: 16px; border-radius: 6px; width: fit-content; min-width: 280px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); font-family: sans-serif;"> <h3 style="margin: 0 0 10px 0; font-size: 1.1em; color: #0369a1; border-bottom: none;">{{{1}}} 汇率</h3> {{#get_db_data: |db=wp_db |from=wp_owmc_currency_rates |where=currency_code='{{{1}}}' |order by=year DESC, month DESC |limit=1 |data=rate_…” |
无编辑摘要 |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly>{{#get_db_data:|db=wp_db|from=wp_owmc_currency_rates|where=currency_code='{{{1}}}'|order by=year DESC, month DESC|limit=1|data=rate_tgt=rate, year_tgt=year, month_tgt=month}}{{#get_db_data:|db=wp_db|from=wp_owmc_currency_rates|where=currency_code='WMC'|order by=year DESC, month DESC|limit=1|data=rate_wmc=rate}}{{#get_db_data:|db=wp_db|from=wp_owmc_currency_rates|where=currency_code='KCK'|order by=year DESC, month DESC|limit=1|data=rate_kck=rate}}{{#get_db_data:|db=wp_db|from=wp_owmc_currency_rates|where=currency_code='SKV'|order by=year DESC, month DESC|limit=1|data=rate_skv=rate}}{{#get_db_data:|db=wp_db|from=wp_owmc_currency_rates|where=currency_code='COS'|order by=year DESC, month DESC|limit=1|data=rate_cos=rate}}{{Infobox | ||
| title = {{{1}}} 兑换基准 | |||
| headerstyle = background-color: #e0f2fe; color: #0369a1; border-bottom: 1px solid #e2e8f0; | |||
| header1 = 清算期: Y{{#external_value:year_tgt}} P{{#external_value:month_tgt}} | |||
| label2 = 1 WMC | |||
| | | data2 = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_wmc}} round 4 }} {{{1}}} | ||
| | |||
}} | |||
| label3 = 1 KCK | |||
{{# | | data3 = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_kck}} round 4 }} {{{1}}} | ||
{{# | |||
{{ | |||
| label4 = 1 SKV | |||
| data4 = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}} | |||
| label5 = 1 COS | |||
| data5 = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_cos}} round 4 }} {{{1}}} | |||
| belowstyle = border-top: 1px solid #e2e8f0; font-size: 85%; color: #64748b; line-height: 1.5; | |||
| below = 汇率会波动。您可以在<br>[https://blkl.fun/omoo OWMO 官方大盘]<br>查询这些货币及其他货币的当前汇率。 | |||
< | }}</includeonly> | ||