Difference between revisions of "Template:Infobox earthquakes in date/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Pithon314
(decade doesn't have "in")
imported>Pithon314
(right decade arrow)
 
Line 57: Line 57:
 
-->{{#if:{{{year|}}}|{{#ifexpr:{{{year}}}<{{#time:Y|+2 weeks}}|{{#ifexist:List of earthquakes in {{{prev|{{#expr:{{{year}}}+1}}}}}|{{align|right|[[List of earthquakes in {{{prev|{{#expr:{{{year}}}+1}}}}}|{{{prev|{{#expr:{{{year}}}+1}}}}}]]&nbsp;&rarr;}}}}}}}}<!--
 
-->{{#if:{{{year|}}}|{{#ifexpr:{{{year}}}<{{#time:Y|+2 weeks}}|{{#ifexist:List of earthquakes in {{{prev|{{#expr:{{{year}}}+1}}}}}|{{align|right|[[List of earthquakes in {{{prev|{{#expr:{{{year}}}+1}}}}}|{{{prev|{{#expr:{{{year}}}+1}}}}}]]&nbsp;&rarr;}}}}}}}}<!--
  
-->{{#if:{{{decade|}}}|{{#ifexist:List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}|{{align|left|&larr;&nbsp;[[List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}|{{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}]]}}}}}}
+
-->{{#if:{{{decade|}}}|{{#ifexist:List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}|{{align|left|&larr;&nbsp;[[List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}|{{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}-10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}-10}}}}}]]}}}}}}<!--
 +
-->{{#if:{{{decade|}}}|{{#ifexist:List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}+10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}+10}}}}}|{{align|right|[[List of earthquakes {{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}+10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}+10}}}}}|{{{prev|{{#expr:{{str sub new|{{{decade}}}|1|4}}+10}}}}}–{{{prev|{{#expr:{{str sub new|{{{decade}}}|6}}+10}}}}}]]&nbsp;&rarr;}}}}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 17:12, 15 January 2021

Earthquakes in Script error: No such module "If empty".
Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox earthquakes in month
| month = <!-- REQUIRED -->
| largest =
| deadliest =
| fatalities = 
| 9.0+    = 
| 8.0−8.9 = 
| 7.0−7.9 = 
| 6.0−6.9 = 
| 5.0−5.9 = 
| 4.0−4.9 =
}}

or

{{Infobox earthquakes in year
| year = <!-- REQUIRED -->
| location_map = <!-- Earth -->
| location_map_places = 
<!--
{{Location map~|Earth|mark = Green pog.svg|lat_deg = 27.261|lon_deg = 54.428}}
{{Location map~|Earth|mark = Yellow pog.svg|lat_deg = -13.873|lon_deg = 167.202}}
{{Location map~|Earth|mark = Orange pog.svg|lat_deg = -20.400|lon_deg = -70.135}}
{{Location map~|Earth|mark = Red pog.svg|lat_deg = -19.642|lon_deg = -70.87}}
-->
| largest =
| deadliest =
| fatalities = 
| 9.0+    = 
| 8.0−8.9 = 
| 7.0−7.9 = 
| 6.0−6.9 = 
| 5.0−5.9 = 
}}

or

{{Infobox earthquakes in decade
| decade = <!-- In the format "2001–2010"-->
| location_map = <!-- Earth -->
| location_map_places = 
<!--
{{Location map~|Earth|mark = Green pog.svg|lat_deg = 27.261|lon_deg = 54.428}}
{{Location map~|Earth|mark = Yellow pog.svg|lat_deg = -13.873|lon_deg = 167.202}}
{{Location map~|Earth|mark = Orange pog.svg|lat_deg = -20.400|lon_deg = -70.135}}
{{Location map~|Earth|mark = Red pog.svg|lat_deg = -19.642|lon_deg = -70.87}}
-->
| largest =
| deadliest =
| fatalities = 
| 9.0+    = 
| 8.0−8.9 = 
| 7.0−7.9 = 
| 6.0−6.9 = 
| 5.0−5.9 = 
}}

Microformat

Template:UF-hcal