跳转到内容
打开/关闭菜单
  • 451 条目
  • 808 文件
  • 22 用户
  • 9259 编辑
Blockland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:汇率卡片:修订间差异

来自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><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;">
<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
<h3 style="margin: 0 0 10px 0; font-size: 1.1em; color: #0369a1; border-bottom: none;">{{{1}}} 汇率</h3>
| title      = {{{1}}} 兑换基准
| headerstyle = background-color: #e0f2fe; color: #0369a1; border-bottom: 1px solid #e2e8f0;
| header1    = 清算期: Y{{#external_value:year_tgt}} P{{#external_value:month_tgt}}


{{#get_db_data:
| label2      = 1 WMC
|db=wp_db
| data2      = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_wmc}} round 4 }} {{{1}}}
|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}}
| label3      = 1 KCK
{{#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}}
| data3      = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_kck}} round 4 }} {{{1}}}
{{#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}}


<div style="font-size: 0.9em; color: #475569; margin-bottom: 12px;">截至系统 Y{{#external_value:year_tgt}} P{{#external_value:month_tgt}}:</div>
| label4      = 1 SKV
| data4      = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}}


<ul style="margin: 0 0 16px 0; padding-left: 20px; color: #0f172a; line-height: 1.8; font-size: 0.95em;">
| label5      = 1 COS
  <li>1 WMC ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_wmc}} round 4 }} {{{1}}}</li>
| data5      = ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_cos}} round 4 }} {{{1}}}
  <li>1 KCK ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_kck}} round 4 }} {{{1}}}</li>
  <li>1 SKV ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}}</li>
  <li>1 COS ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_cos}} round 4 }} {{{1}}}</li>
</ul>


<div style="font-size: 0.85em; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 12px;">
| belowstyle  = border-top: 1px solid #e2e8f0; font-size: 85%; color: #64748b; line-height: 1.5;
  汇率会波动。您可以在 <a href="https://blkl.fun/omoo" target="_blank" style="color: #0ea5e9; text-decoration: none;">blkl.fun/omoo</a> 上查询这些货币及其他货币的当前汇率。
| below      = 汇率会波动。您可以在<br>[https://blkl.fun/omoo OWMO 官方大盘]<br>查询这些货币及其他货币的当前汇率。
</div>
}}</includeonly>
</div></includeonly>

2026年5月8日 (五) 17:41的最新版本