模板:汇率卡片:修订间差异
来自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 | <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);"> | ||
<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> | |||
< | <tr> | ||
<th style="text-align: left; padding: 0.4em 0.8em; border-bottom: 1px solid #e2e8f0; color: #475569;">1 KCK</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_kck}} round 4 }} {{{1}}} | |||
</td> | |||
</tr> | |||
<tr> | |||
</ | <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;"> | |||
< | ≈ {{#expr: {{#external_value:rate_tgt}} / {{#external_value:rate_skv}} round 4 }} {{{1}}} | ||
</td> | |||
</ | </tr> | ||
</ | <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> | |||