模板:M/testcases
Template:Testcases 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