Difference between revisions of "Template:Geological epoch"

From blackwiki
Jump to navigation Jump to search
imported>Benniboi01
m (changed 'era' to 'epoch')
imported>Benniboi01
m (technical stuff)
Line 2: Line 2:
 
| colspan=2 style="text-align:center;background-color:{{period color|{{{1|{{PAGENAME}}}}}}}" |'''{{{1|{{PAGENAME}}}}} Epoch'''<br />''{{period start|{{{1|{{PAGENAME}}}}}}}–{{Period end|{{{1|{{PAGENAME}}}}}}}&nbsp;million years ago''<br/>{{Time scale}}
 
| colspan=2 style="text-align:center;background-color:{{period color|{{{1|{{PAGENAME}}}}}}}" |'''{{{1|{{PAGENAME}}}}} Epoch'''<br />''{{period start|{{{1|{{PAGENAME}}}}}}}–{{Period end|{{{1|{{PAGENAME}}}}}}}&nbsp;million years ago''<br/>{{Time scale}}
 
|-
 
|-
| style="text-align:center;" colspan=2 | {{{{{timeline|{{{1|{{PAGENAME}}}}}}}} graphical timeline|embedded=yes}}[[Category:Geological period templates]]}}
+
{{#ifeq:{{{timeline}}}|off||
|}</includeonly><noinclude>{{template doc}}</noinclude><noinclude>[[Category:Geological period templates]]</noinclude>
+
{{!}}-
 +
{{!}} colspan=2{{!}} {{{{{timeline|{{{period|{{PAGENAME}}}}}}}} graphical timeline|embedded=yes}}[[Category:Periods with timeline in infobox]]}}
 +
|}</includeonly><noinclude>
 +
{{template doc}}
 +
</noinclude><noinclude>[[Category:Geological period templates]]</noinclude>

Revision as of 17:47, 5 March 2020

Template documentation[view] [edit] [history] [purge]

This template is used on each of the geological epochs' wiki pages.

Usage

By default, this template uses the {{PAGENAME}} magic word to detect which period to display. Period can be overridden using parameter |period=.

Different periods use different titles, colors, a start and stop dates, and a special timeline displays. By default, these values are derived from the chosen period, and they can be changed using parameters |color=, |title=, |start=, |stop=, and |timeline=, respectively.

Parameters

|period=
Which geological period to display.
|title=
Customize title.
|color=
Customize color. For available values see documentation of template {{period color}}.
|timeline=Foobar
Choose which of the graphical timeline templates to display. Only templates named Template:Foobar graphical timeline are supported. For example, use |timeline=Late Devonian to display Template:Late Devonian graphical timeline. To disable the timeline set |timeline=off.
|start= and |stop=
Start and end dates. The unit is a million years. By default, templates {{period start}} and {{period end}} are used to show the start and end of the period.

Examples

Markup Renders as
{{Geological epoch|timeline=off|title=Example title|period=late devonian}}
colspan=2 style="text-align:center;background-color:Template:Period color" |Geological epoch Epoch
Template:Period startTemplate:Period end million years ago
Template:Time scale
{{Geological epoch|timeline=off|title=Example title|color=late devonian|start=382.7|stop=358.9}}
colspan=2 style="text-align:center;background-color:Template:Period color" |Geological epoch Epoch
Template:Period startTemplate:Period end million years ago
Template:Time scale
{{Geological epoch
|period=mississippian
|timeline=Mississippian (geology)
}}
colspan=2 style="text-align:center;background-color:Template:Period color" |Geological epoch Epoch
Template:Period startTemplate:Period end million years ago
Template:Time scale
Template:Mississippian (geology) graphical timeline

See also

Template:Period infoboxes