模板:Infobox earthquake/testcases

Template:Testcases Using sandbox revision of 錯誤:時間格式不正確

Bringing in new time parameters 'timestamp', 'local-date', and 'local-time', which will replace 'origintime', 'time', and 'date'. Also 'pre-1900', which categorizess but does not display. Phased introduction: initially not displayed, then displayed but no error if not used, then error. Eventually 'timestamp' to be required.

  • Note: "UTC time" should be displayed in all cases (unless 'pre-1900=yes').
  • 01.01 Old parameters: date, time (w/o timestamp)
左右對比
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
日期1989年10月17日 (1989-10-17)
發生時間1:01:15 p.m. PDT
Infobox earthquake/testcases
UTC時間??
日期*1989年10月17日 (1989-10-17)
發生時間*1:01:15 p.m. PDT
  •  棄用
 見文檔。
  • 01.02 Old parameters: date, origintime
  • 左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    日期1989年10月17日 (1989-10-17)
    發生時間1:02:15 p.m. PDT
    Infobox earthquake/testcases
    UTC時間??
    日期*1989年10月17日 (1989-10-17)
    發生時間*1:02:15 p.m. PDT
    •  棄用
     見文檔。
    • 01.11 Valid yyyy-mm-dd hh:mm:ss :
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989-10-18 01:10:14
    • 01.11 Valid yyyy-mm-dd hh:mm :
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989-10-18 01:11
    • 01.12 Lacking hh:mm
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989-10-18
    Needs 'yyyy-mm-dd hh:mm'
    • 01.13 "UTC"
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989-10-18 01:13 UTC
    Needs 'yyyy-mm-dd hh:mm'
    • 01.14 Wrong format:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間October 18, 1989
    Needs 'yyyy-mm-dd hh:mm'
    • 01.15 {Start-date}:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989年10月18日 (1989-10-18)
    Needs 'yyyy-mm-dd hh:mm'

    • 02.01 yyyy-mm-dd w/ pre-1900:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1700-01-26
    • 02.02 Mixed use: timestamp, local-date, local-time, date, time.
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    日期1989年10月17日 (1989-10-17)
    發生時間5:0:15 p.m. PDT
    Infobox earthquake/testcases
    UTC時間1989-10-18 02:02:14
    日期*1989年10月17日 (1989-10-17)
    發生時間*5:0:15 p.m. PDT
    當地日期1989年10月17日 (1989-10-17)
    當地時間5:04:15 p.m. PDT
    •  棄用
     見文檔。
    • 02.03 Mixed use: timestamp, local-date, local-time, date, origintime.
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    日期1989年10月17日 (1989-10-17)
    發生時間5:04:15 p.m. PDT
    Infobox earthquake/testcases
    UTC時間1989-10-18 02:03:14
    日期*1989年10月17日 (1989-10-17)
    發生時間*5:04:15 p.m. PDT
    當地日期1989年10月17日 (1989-10-17)
    當地時間5:04:15 p.m. PDT
    •  棄用
     見文檔。
    • 02.04 New parameters only: timestamp, local-date, local-time.
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1989-10-18 02:04:14
    當地日期1989年10月17日 (1989-10-17)
    當地時間5:04:15 p.m. PDT
    • 02.05 New: local-date, local-time, but no UTC time. Error? Yes, unless 'pre-1900=yes'.
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    當地日期1989年10月17日 (1989-10-17)
    當地時間5:04:15 p.m. PDT

    Multiple values

    編輯

    For listing multiple values (like for doublet earthquakes).

    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    USGS-ANSS 
     ComCat
     ComCat
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    規模hmmm
    Infobox earthquake/testcases
    UTC時間??
    規模hmmm
     6.0 MW
     5.9 MW
    • 04.01 'timestamp-A' present, but not 'timestamp':
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間 
     2011-02-21 04:01
     2011-02-22 04:02
    ISC事件 
     16168897
     16461282
    當地日期February 21, 2011
    當地時間 
     13:54 a.m
     14:05 p.m.
    規模 
     6.0 MW
     5.9 MW
    • 04.03 ditto:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間 
     2011-02-21 04:03
     2011-02-22 04:04
    • 04.05 timestamp = doublet/triplet/multplet:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間雙地震    
     2011-02-21 04:05
     2011-02-22 04:05
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間三重地震    
     2011-02-21 04:06
     2011-02-22 04:06
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間多重地震  
     2011-02-21 04:07
     2011-02-22 04:08
    • 05.00 pre-1900:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1899-02-21 05:00
    • 05.01 pre-1900 + "A":
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間 
     1899-02-21 05:01
    • 05.02 pre-1900 + doublet:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間雙地震    
     1899-02-21 05:02
     1899-02-22 05:02
    ISC事件 
     16168897
     16461282
    • 05.10 'timestamp' with valid time:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    規模7.1 Ms
    Infobox earthquake/testcases
    UTC時間1989-10-18 00:05:10
     A: 1989-10-18 10:05:11
     B: 1989-10-19 09:05:12
     C: 1989-10-19 10:05:13
     D: 1989-10-25 01:05:14
    ISC事件389808
     A: 389923
     B: 390047
     C: 390049
     D: 390606
    USGS-ANSSComCat
     A: ComCat
     B: ComCat
     C: ComCat
     D: ComCat
    當地日期October 17/18/19, 1989
    當地時間5:05 p.m.
     A: 3:22 a.m.
    規模7.1 Ms
     A: 4.2 mb
     B: 4.2 mb
     C: 4.5 mb
     D: 4.6 mb
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    規模 
     A: 6.0 MW
     B: 5.9 MW


    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    規模 
     A: 6.0 MW
     B: 5.9 MW

    Adding isc-event and anss-url parameters. The latter to eventually accept a url fragment and supply the remainder. Possibly require anss-url?

    • isc-event:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    ISC事件389808
    • isc-event and anss-url:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    ISC事件389808
    USGS-ANSSComCat
    • Same, but |pre-1900=yes:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    ISC事件389808
    USGS-ANSSComCat
    • anss-url fragment:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    ISC事件389808
    USGS-ANSSComCat
    • Check "n/a" options:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間??
    ISC事件n/a
     A: n/a
     B: n/a
     C: n/a
     D: n/a
     E: n/a
    USGS-ANSSn/a
     A: n/a
     B: n/a
     C: n/a
     D: n/a
     E: n/a


    • Pre-1900=yes, nothing else: any defaults?
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    • Pre-1900=yes: should suppress UTC label if no data.
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    Infobox earthquake/testcases
    UTC時間1382?


    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    1382 Dover Straits
    日期1382年5月21日 (1382-05-21)
    規模6.0 Ms
    震源深度25–30 km
    震央51°20′N 2°00′E / 51.34°N 2.00°E / 51.34; 2.00
    1382 Dover Straits
    UTC時間??
    日期*1382年5月21日 (1382-05-21)
    規模6.0 Ms
    震源深度25–30 km
    震央51°20′N 2°00′E / 51.34°N 2.00°E / 51.34; 2.00
    •  棄用
     見文檔。
    • With pre-1900=yes:
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    1382 Dover Straits
    日期1382年5月21日 (1382-05-21)
    規模6.0 Ms
    震源深度25–30 km
    震央51°20′N 2°00′E / 51.34°N 2.00°E / 51.34; 2.00
    1382 Dover Straits
    日期*1382年5月21日 (1382-05-21)
    規模6.0 Ms
    震源深度25–30 km
    震央51°20′N 2°00′E / 51.34°N 2.00°E / 51.34; 2.00
    •  棄用
     見文檔。

    Engvar

    編輯
    1382 Dover Straits earthquake
    Infobox earthquake/testcases在英國的位置
    London
    London
    Canterbury
    Canterbury
    Infobox earthquake/testcases
    日期1382年5月21日 (1382-05-21)
    規模6.0 Ms[1]
    震源深度25–30 km
    震央51°20′N 2°00′E / 51.34°N 2.00°E / 51.34; 2.00[2]
    影響地區Kent, England
    最大烈度VII-VIII - Very strong to severe

    The 1382 Dover Straits earthquake occurred at 15:00 on 21 May. It had an estimated magnitude of 6.0 Ms and a maximum felt intensity of VII-VIII on the Mercalli intensity scale.[3] Based on contemporary reports of damage, the epicentre is thought to have been in the Straits of Dover. The earthquake caused widespread damage in southeastern England and in the Low Countries. The earthquake interrupted a synod convened in part to examine the religious writings of John Wycliffe, which became known as the Earthquake Synod.


    no engvar (default)
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    震央locABC
    Infobox earthquake/testcases
    UTC時間??
    震央locABC
    engvar=
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    震央locABC
    Infobox earthquake/testcases
    UTC時間??
    震央locABC


    engvar=en-UK
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Infobox earthquake/testcases
    震央locABC
    Infobox earthquake/testcases
    UTC時間??
    震央locABC

    image and map

    編輯
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    1964 Alaska earthquake
    Fourth Avenue in Anchorage, Alaska, looking east from near Barrow Street. The southern edge of one of several landslides in Anchorage, this one covered an area of over a dozen blocks, including 5 blocks along the north side of Fourth Avenue. Most of the area was razed and made an urban renewal district.
    日期1964年3月27日 (1964-03-27) (AKST)
    規模9.2 Mw[4]
    震源深度14英里(23公里)
    震央61°3′0″N 147°28′48″W / 61.05000°N 147.48000°W / 61.05000; -147.48000
    影響地區United States
    損失$311 million
    最大烈度XI: Extreme
    最大加速度0.18 g
    傷亡139 killed
    1964 Alaska earthquake
    Fourth Avenue in Anchorage, Alaska, looking east from near Barrow Street. The southern edge of one of several landslides in Anchorage, this one covered an area of over a dozen blocks, including 5 blocks along the north side of Fourth Avenue. Most of the area was razed and made an urban renewal district.
    UTC時間??
    日期*1964年3月27日 (1964-03-27) (AKST)
    規模9.2 Mw[4]
    震源深度14英里(23公里)
    震央61°3′0″N 147°28′48″W / 61.05000°N 147.48000°W / 61.05000; -147.48000
    影響地區United States
    總損失$311 million
    最大烈度XI: Extreme
    峰值加速度0.18 g
    傷亡139 killed
    •  棄用
     見文檔。

    map and map2 (manual)

    編輯
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    2007 Peru earthquake
    Map of the Peru coastline, showing location and strength of quake.unicorns eat rainows :0 Star marks epicenter.
    Map of the Peru coastline, showing location and strength of quake. Star marks epicenter.
    日期2007年8月15日 (2007-08-15)
    發生時間23:40:57 UTC
    規模8.0 Mw
    震源深度39 km(24 mi)
    震央13°21′14″S 76°30′32″W / 13.354°S 76.509°W / -13.354; -76.509
    影響地區 秘魯
    海嘯flooded part of Lima's Costa Verde highway, and much of Pisco's shore
    傷亡519 confirmed dead[5]
    1,366 injured[5]
    2007 Peru earthquake
    Map of the Peru coastline, showing location and strength of quake.unicorns eat rainows :0 Star marks epicenter.
    Map of the Peru coastline, showing location and strength of quake. Star marks epicenter.
    UTC時間??
    日期*2007年8月15日 (2007-08-15)
    發生時間*23:40:57 UTC
    規模8.0 Mw
    震源深度39 km(24 mi)
    震央13°21′14″S 76°30′32″W / 13.354°S 76.509°W / -13.354; -76.509
    影響地區 秘魯
    海嘯flooded part of Lima's Costa Verde highway, and much of Pisco's shore
    傷亡519 confirmed dead[5]
    1,366 injured[5]
    •  棄用
     見文檔。

    image and map2

    編輯
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    Great Hanshin Earthquake
    Damage from the Great Hanshin Earthquake is kept intact at the Earthquake Memorial Park near the port of Kobe. The elevated Hanshin Expressway, in the background, was partially toppled by the earthquake.
    Infobox earthquake/testcases在日本的位置
    Infobox earthquake/testcases
    Tokyo
    Tokyo
    Kobe
    Kobe
    Map showing the epicenter of the earthquake
    日期1995年1月17日 (1995-01-17)
    規模Mw 6.8 (USGS) Mj 7.3 (adjusted from 7.2; JMA scale)
    震源深度16 km(9.9 mi)
    震央Awaji Island, Japan
    影響地區Japan
    最大加速度0.8 g
    傷亡6,434 killed around 300,000 left homeless
    Great Hanshin Earthquake
    Damage from the Great Hanshin Earthquake is kept intact at the Earthquake Memorial Park near the port of Kobe. The elevated Hanshin Expressway, in the background, was partially toppled by the earthquake.
    Infobox earthquake/testcases在日本的位置
    Infobox earthquake/testcases
    Tokyo
    Tokyo
    Kobe
    Kobe
    Map showing the epicenter of the earthquake
    UTC時間??
    日期*1995年1月17日 (1995-01-17)
    規模Mw 6.8 (USGS) Mj 7.3 (adjusted from 7.2; JMA scale)
    震源深度16 km(9.9 mi)
    震央Awaji Island, Japan
    影響地區Japan
    峰值加速度0.8 g
    傷亡6,434 killed around 300,000 left homeless
    •  棄用
     見文檔。

    map2 (Location map template)

    編輯
    左右對比
    {{Infobox earthquake}}{{Infobox earthquake/sandbox}}
    1848 Marlborough New Zealand
    1848 Marlborough earthquake在紐西蘭的位置
    1848 Marlborough earthquake
    1848 Marlborough earthquake
    日期1848年10月16日 (1848-10-16)
    規模Mw 7.5
    震源深度shallow
    震央41°48′S 173°42′E / 41.800°S 173.700°E / -41.800; 173.700
    影響地區New Zealand, Marlborough, South Island
    傷亡3 deaths
    1848 Marlborough New Zealand
    1848 Marlborough earthquake在紐西蘭的位置
    1848 Marlborough earthquake
    1848 Marlborough earthquake
    UTC時間??
    日期*1848年10月16日 (1848-10-16)
    規模Mw 7.5
    震源深度shallow
    震央41°48′S 173°42′E / 41.800°S 173.700°E / -41.800; 173.700
    影響地區New Zealand, Marlborough, South Island
    傷亡3 deaths
    •  棄用
     見文檔。

    References

    編輯
    1. ^ Camelbeek T.; Vanneste K.; Alexandre P.; Verbeeck K.; Petermans T.; Rosset P.; Everaerts M.; Warnant R.; van Camp M. Relevance of active faulting and seismicity studies to assessments of long-term earthquake activity and maximum magnitude in intraplate northwest Europe, between the Lower Rhine Embayment and the North Sea (PDF). The Geological Society of America Special Paper. 2007, 425. doi:10.1130/2007.2425(14). 
    2. ^ British Geological Survey. 1382 Dover Straits. Historic British Earthquakes. [2018-03-17]. 
    3. ^ Varley, P.M., Seismic risk assessment and analysis, Harris, Colin S. (編), Engineering geology of the Channel Tunnel, Thomas Telford: 195–8, 1996, ISBN 978-0-7277-2045-0 
    4. ^ U.S. Geological Survey (7 March 2006). Historic Earthquakes - Alaska - 1964 March 28 03:36 UTC - Magnitude 8.5: The Largest Earthquake in the World. Retrieved on 2009-09-02
    5. ^ 5.0 5.1 Peru Civil Defense Updates Damages. 2007-09-14 [2007-09-14]. (原始內容存檔於16 October 2007).