跳转到内容
打开/关闭菜单
  • 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行:
<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}}<table class="infobox" style="width: 22em; float: right; clear: right; margin: 0 0 1em 1em; background: #f8fafc; border: 1px solid #e2e8f0; border-collapse: collapse; font-size: 90%; box-shadow: 0 1px 3px rgba(0,0,0,0.04);">
<h3 style="margin: 0 0 10px 0; font-size: 1.1em; color: #0369a1; border-bottom: none;">{{{1}}} 汇率</h3>
<tr>
 
    <th colspan="2" style="background: #0ea5e9; color: white; text-align: center; font-size: 1.2em; padding: 0.4em; border-bottom: 2px solid #0369a1;">
{{#get_db_data:
        {{{1}}} 兑换基准
|db=wp_db
    </th>
|from=wp_owmc_currency_rates
</tr>
|where=currency_code='{{{1}}}'
<tr>
|order by=year DESC, month DESC
    <td colspan="2" style="background: #e0f2fe; color: #0369a1; text-align: center; padding: 0.3em; font-weight: bold; font-size: 0.9em; border-bottom: 1px solid #e2e8f0;">
|limit=1
        清算期: Y{{#external_value:year_tgt}} P{{#external_value:month_tgt}}
|data=rate_tgt=rate, year_tgt=year, month_tgt=month
    </td>
}}
</tr>
 
<tr>
{{#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}}
    <th style="text-align: left; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; color: #475569; width: 35%;">1 WMC</th>
{{#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}}
    <td style="text-align: right; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; font-family: 'Courier New', monospace; font-size: 1.1em; font-weight: bold;">
{{#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}}
        ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_wmc}} round 4 }} {{{1}}}
{{#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}}
    </td>
 
</tr>
<div style="font-size: 0.9em; color: #475569; margin-bottom: 12px;">截至系统 Y{{#external_value:year_tgt}} P{{#external_value:month_tgt}}:</div>
<tr>
 
    <th style="text-align: left; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; color: #475569;">1 KCK</th>
<ul style="margin: 0 0 16px 0; padding-left: 20px; color: #0f172a; line-height: 1.8; font-size: 0.95em;">
    <td style="text-align: right; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; font-family: 'Courier New', monospace; font-size: 1.1em; font-weight: bold;">
  <li>1 WMC ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_wmc}} round 4 }} {{{1}}}</li>
        ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_kck}} round 4 }} {{{1}}}
  <li>1 KCK ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_kck}} round 4 }} {{{1}}}</li>
    </td>
  <li>1 SKV ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}}</li>
</tr>
  <li>1 COS ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_cos}} round 4 }} {{{1}}}</li>
<tr>
</ul>
    <th style="text-align: left; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; color: #475569;">1 SKV</th>
 
    <td style="text-align: right; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; font-family: 'Courier New', monospace; font-size: 1.1em; font-weight: bold;">
<div style="font-size: 0.85em; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 12px;">
        ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}}
  汇率会波动。您可以在 <a href="https://blkl.fun/omoo" target="_blank" style="color: #0ea5e9; text-decoration: none;">blkl.fun/omoo</a> 上查询这些货币及其他货币的当前汇率。
    </td>
</div>
</tr>
</div></includeonly>
<tr>
    <th style="text-align: left; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; color: #475569;">1 COS</th>
    <td style="text-align: right; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; font-family: 'Courier New', monospace; font-size: 1.1em; font-weight: bold;">
        ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_cos}} round 4 }} {{{1}}}
    </td>
</tr>
<tr>
    <td colspan="2" style="text-align: center; padding: 0.8em; font-size: 0.85em; color: #64748b; line-height: 1.5;">
        汇率会波动。您可以在<br>[https://blkl.fun/omoo OWMO 官方大盘]<br>查询这些货币及其他货币的当前汇率。
    </td>
</tr>
</table></includeonly>

2026年5月8日 (五) 17:39的版本