Template:M/testcases
外观
| 这是Template:M及其沙盒的测试样例。刷新本页以更新内容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同皮肤下的效果: |
Reflecting the state of the template as of 2/09/2018. Purge to re-evaluate.
Error cases, should have red error message:
{{m}}→ [Template:M未使用有效代码,见文档。]{{m|crazy}}→ [Template:M使用了无效代码'crazy',见文档。]
- Test: ML, ML 6.2级; Ms7,
- Special case: M
- Special case: Mag.
- Special case: magnitude
- Special case: magnitude (with unused parameter)
Blue indicates a wikilink; but red if target not there (yet).
- Test: Mx;
"Local"/"Richter" scales: M M M ML ML M Mj
Moment mag. scales: M0 MW Mww Mwp Mwpd Mwb Mwc Mwr Mwp
Surface wave scales: Ms Ms20 Ms(BB) Mz Ms7
Body-wave scales: mb mB mBBB mBc mbLg mN
Misc. scales: Mc Md Me M(K) Mt Mm
Some special cases: Mx 5.1级(USGS), Mx 5.2级(NEIC), Mx 5.9级(xxxx).
sandbox
[编辑]- regular "m"
{{M|m}}→ Mm{{M/sandbox|m}}→ Mm
{{M|t}}→ Mt{{M/sandbox|t}}→ Mt
- special cases
- main codes ML and Mw
| {{M}} | {{M/sandbox}} |
|---|---|
| ML | ML |
| {{M}} | {{M/sandbox}} |
|---|---|
| ML 6.2级 | ML 6.2 |
| {{M}} | {{M/sandbox}} |
|---|---|
| ML(USGS) | ML (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| ML 6.2级(USGS) | ML (USGS) 6.2 |
| {{M}} | {{M/sandbox}} |
|---|---|
| MW | MW |
| {{M}} | {{M/sandbox}} |
|---|---|
| MW 6.2级 | MW 6.2 |
| {{M}} | {{M/sandbox}} |
|---|---|
| MW(USGS) | MW (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| MW 6.2级(USGS) | MW (USGS) 6.2 |
- ?-codes
| {{M}} | {{M/sandbox}} |
|---|---|
| M(USGS) | M (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| M(USGS) | M (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| M(USGS) | M (USGS) |
- "Local"/"Richter" scales
| {{M}} | {{M/sandbox}} |
|---|---|
| ML(USGS) | ML (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| ML | ML |
| {{M}} | {{M/sandbox}} |
|---|---|
| M(USGS) | M (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mj(USGS) | Mj (USGS) |
- Moment mag. scales
| {{M}} | {{M/sandbox}} |
|---|---|
| M0(USGS) | M0 (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| MW(USGS) | MW (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mww(USGS) | Mww (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mwp(USGS) | Mwp (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mwb(USGS) | Mwb (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mwc(USGS) | Mwc (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mwr(USGS) | Mwr (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mwp(USGS) | Mwp (USGS) |
- Surface wave scales
| {{M}} | {{M/sandbox}} |
|---|---|
| Ms(USGS) | Ms (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Ms20(USGS) | Ms20 (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Ms(BB)(USGS) | Ms(BB) (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mz(USGS) | Mz (USGS) |
- Body-wave scales
| {{M}} | {{M/sandbox}} |
|---|---|
| mb(USGS) | mb (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| mB(USGS) | mB (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| mBBB(USGS) | mBBB (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| mbLg(USGS) | mbLg (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| mN(USGS) | mN (USGS) |
- Misc. scales
| {{M}} | {{M/sandbox}} |
|---|---|
| Mc(USGS) | Mc (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Md(USGS) | Md (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Me(USGS) | Me (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| M(K)(USGS) | M(K) (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mt(USGS) | Mt (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mm(USGS) | Mm (USGS) |
- Macroseismic scales
| {{M}} | {{M/sandbox}} |
|---|---|
| Mms(USGS) | Mms (USGS) |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mfa(USGS) | Mfa (USGS) |
- test (x)
| {{M}} | {{M/sandbox}} |
|---|---|
| Mx 5.1级(USGS) | Mx (USGS) 5.1 |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mx 5.2级(NEIC) | Mx (NEIC) 5.2 |
| {{M}} | {{M/sandbox}} |
|---|---|
| Mx 5.9级(xxxx) | Mx 5.9 |
- wrong input
{{M||5.1|src=USGS|link=y}}→ [Template:M未使用有效代码,见文档。]{{M/sandbox||5.1|src=USGS|link=y}}→ [Template:M未使用有效代码,见文档。]
{{M||5.2|src=NEIC}}→ [Template:M未使用有效代码,见文档。]{{M/sandbox||5.2|src=NEIC}}→ [Template:M未使用有效代码,见文档。]
{{M||5.9|xxxx}}→ [Template:M未使用有效代码,见文档。]{{M/sandbox||5.9|xxxx}}→ [Template:M未使用有效代码,见文档。]
Categories
[编辑]- Category:M_?
- Category:M_??
- Category:M_R?
- Category:M_L
- Category:M_j
- Category:M_w
- Category:M_w
- Category:M_wp
- Category:M_wb
- Category:M_wc
- Category:M_wr
- Category:M_ww
- Category:M_s
- Category:M_20
- Category:M_sbb
- Category:M_z
- Category:M_V
- Category:M_B
- Category:M_b
- Category:M_B
- Category:M_Bbb
- Category:M_bLg
- Category:M_N
- Category:M_c
- Category:M_d
- Category:M_0
- Category:M_e
- Category:M_K
- Category:M_t
- Category:M_m
- Category:M_ms
- Category:M_fa