模板:Infobox earthquake/testcases

Template:Testcases Using sandbox revision of 错误:时间格式不正确

Time

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).