Template:Infobox earthquake/testcases

From English Wikipedia @ Freddythechick

__EXPECTUNUSEDTEMPLATE__

Using sandbox revision of 2018-11-20 00:02

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)
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Infobox earthquake/testcases
UTC time??
Date *October 17, 1989 (1989-10-17)
Origin time *1:01:15 p.m. PDT
Deprecated See documentation.
  • 01.02 Old parameters: date, origintime
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Infobox earthquake/testcases
UTC time??
Date *October 17, 1989 (1989-10-17)
Origin time *1:02:15 p.m. PDT
Deprecated See documentation.
  • 01.11 Valid yyyy-mm-dd hh:mm:ss :
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 01:10:14
Infobox earthquake/testcases
UTC time1989-10-18 01:10:14
  • 01.11 Valid yyyy-mm-dd hh:mm :
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 01:11
Infobox earthquake/testcases
UTC time1989-10-18 01:11
  • 01.12 Lacking hh:mm
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18
Needs 'yyyy-mm-dd hh:mm'
Infobox earthquake/testcases
UTC time1989-10-18
Needs 'yyyy-mm-dd hh:mm'
  • 01.13 "UTC"
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 01:13 UTC
Needs 'yyyy-mm-dd hh:mm'
Infobox earthquake/testcases
UTC time1989-10-18 01:13 UTC
Needs 'yyyy-mm-dd hh:mm'
  • 01.14 Wrong format:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeOctober 18, 1989
Needs 'yyyy-mm-dd hh:mm'
Infobox earthquake/testcases
UTC timeOctober 18, 1989
Needs 'yyyy-mm-dd hh:mm'
  • 01.15 {Start-date}:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeOctober 18, 1989 (1989-10-18)
Needs 'yyyy-mm-dd hh:mm'
Infobox earthquake/testcases
UTC timeOctober 18, 1989 (1989-10-18)
Needs 'yyyy-mm-dd hh:mm'

  • 02.01 yyyy-mm-dd w/ pre-1900:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1700-01-26
Infobox earthquake/testcases
UTC time1700-01-26
  • 02.02 Mixed use: timestamp, local-date, local-time, date, time.
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 02:02:14
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Infobox earthquake/testcases
UTC time1989-10-18 02:02:14
Date *October 17, 1989 (1989-10-17)
Origin time *5:0:15 p.m. PDT
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Deprecated See documentation.
  • 02.03 Mixed use: timestamp, local-date, local-time, date, origintime.
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 02:03:14
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Infobox earthquake/testcases
UTC time1989-10-18 02:03:14
Date *October 17, 1989 (1989-10-17)
Origin time *5:04:15 p.m. PDT
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Deprecated See documentation.
  • 02.04 New parameters only: timestamp, local-date, local-time.
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-10-18 02:04:14
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Infobox earthquake/testcases
UTC time1989-10-18 02:04:14
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
  • 02.05 New: local-date, local-time, but no UTC time. Error? Yes, unless 'pre-1900=yes'.
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT
Infobox earthquake/testcases
UTC time??
Local dateOctober 17, 1989 (1989-10-17)
Local time5:04:15 p.m. PDT

Multiple values

For listing multiple values (like for doublet earthquakes).

Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
USGS-ANSS 
 ComCat
 ComCat
Infobox earthquake/testcases
UTC time??
USGS-ANSS 
 ComCat
 ComCat
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Magnitudehmmm
 6.0 Mw
 5.9 Mw
Infobox earthquake/testcases
UTC time??
Magnitudehmmm
 6.0 Mw
 5.9 Mw
  • 04.01 'timestamp-A' present, but not 'timestamp':
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time 
 2011-02-21 04:01
 2011-02-22 04:02
ISC event 
 16168897
 16461282
Local dateFebruary 21, 2011
Local time 
 13:54 a.m
 14:05 p.m.
Magnitude 
 6.0 Mw
 5.9 Mw
Infobox earthquake/testcases
UTC time 
 2011-02-21 04:01
 2011-02-22 04:02
ISC event 
 16168897
 16461282
Local dateFebruary 21, 2011
Local time 
 13:54 a.m
 14:05 p.m.
Magnitude 
 6.0 Mw
 5.9 Mw
  • 04.03 ditto:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time 
 2011-02-21 04:03
 2011-02-22 04:04
Infobox earthquake/testcases
UTC time 
 2011-02-21 04:03
 2011-02-22 04:04
  • 04.05 timestamp = doublet/triplet/multplet:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeDoublet earthquake:    
 2011-02-21 04:05
 2011-02-22 04:05
Infobox earthquake/testcases
UTC timeDoublet earthquake:    
 2011-02-21 04:05
 2011-02-22 04:05
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeTriplet earthquake:    
 2011-02-21 04:06
 2011-02-22 04:06
Infobox earthquake/testcases
UTC timeTriplet earthquake:    
 2011-02-21 04:06
 2011-02-22 04:06
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeMultiplet earthquake:  
 2011-02-21 04:07
 2011-02-22 04:08
Infobox earthquake/testcases
UTC timeMultiplet earthquake:  
 2011-02-21 04:07
 2011-02-22 04:08
  • 05.00 pre-1900:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1899-02-21 05:00
Infobox earthquake/testcases
UTC time1899-02-21 05:00
  • 05.01 pre-1900 + "A":
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time 
 1899-02-21 05:01
Infobox earthquake/testcases
UTC time 
 1899-02-21 05:01
  • 05.02 pre-1900 + doublet:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC timeDoublet earthquake:    
 1899-02-21 05:02
 1899-02-22 05:02
ISC event 
 16168897
 16461282
Infobox earthquake/testcases
UTC timeDoublet earthquake:    
 1899-02-21 05:02
 1899-02-22 05:02
ISC event 
 16168897
 16461282
  • 05.10 'timestamp' with valid time:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time1989-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 event389808
 A: 389923
 B: 390047
 C: 390049
 D: 390606
USGS-ANSSComCat
 A: ComCat
 B: ComCat
 C: ComCat
 D: ComCat
Local dateOctober 17/18/19, 1989
Local time5:05 p.m.
 A: 3:22 a.m.
Magnitude7.1 Ms
 A: 4.2 mb
 B: 4.2 mb
 C: 4.5 mb
 D: 4.6 mb
Infobox earthquake/testcases
UTC time1989-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 event389808
 A: 389923
 B: 390047
 C: 390049
 D: 390606
USGS-ANSSComCat
 A: ComCat
 B: ComCat
 C: ComCat
 D: ComCat
Local dateOctober 17/18/19, 1989
Local time5:05 p.m.
 A: 3:22 a.m.
Magnitude7.1 Ms
 A: 4.2 mb
 B: 4.2 mb
 C: 4.5 mb
 D: 4.6 mb
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Magnitude 
 A: 6.0 Mw
 B: 5.9 Mw
Infobox earthquake/testcases
UTC time??
Magnitude 
 A: 6.0 Mw
 B: 5.9 Mw


Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
Magnitude 
 A: 6.0 Mw
 B: 5.9 Mw
Infobox earthquake/testcases
UTC time??
Magnitude 
 A: 6.0 Mw
 B: 5.9 Mw

Links

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:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
ISC event389808
Infobox earthquake/testcases
UTC time??
ISC event389808
  • isc-event and anss-url:
Side by side comparison
{{Infobox earthquake}}{{Infobox earthquake/sandbox}}
Infobox earthquake/testcases
UTC time??
ISC event389808
USGS-ANSSComCat
Infobox earthquake/testcases
UTC time??
ISC event389808
USGS-ANSSComCat
  • Same, but |pre-1900=yes:

The time allocated for running scripts has expired.

  • anss-url fragment:

The time allocated for running scripts has expired.

  • Check "n/a" options:

The time allocated for running scripts has expired.


  • Pre-1900=yes, nothing else: any defaults?

The time allocated for running scripts has expired.

  • Pre-1900=yes: should suppress UTC label if no data.

The time allocated for running scripts has expired.


The time allocated for running scripts has expired.

  • With pre-1900=yes:

The time allocated for running scripts has expired.

Engvar

The time allocated for running scripts has expired. The time allocated for running scripts has expired. The time allocated for running scripts has expired.The time allocated for running scripts has expired.

The 1382 Dover Straits earthquake occurred at 15:00 on 21 May. It had an estimated magnitude of 6.0 The time allocated for running scripts has expired. and a maximum felt intensity of VII-VIII on the Mercalli intensity scale.[1] 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)

The time allocated for running scripts has expired.

engvar=

The time allocated for running scripts has expired.


engvar=en-UK

The time allocated for running scripts has expired.

image and map

The time allocated for running scripts has expired.

map and map2 (manual)

The time allocated for running scripts has expired.

image and map2

The time allocated for running scripts has expired.

map2 (Location map template)

The time allocated for running scripts has expired.

References

  1. ^ The time allocated for running scripts has expired.

The time allocated for running scripts has expired.