Difference between revisions of "Template:Geological epoch"
Jump to navigation
Jump to search
imported>Benniboi01 m (edited the template so that the first character in the title near the top of the template is always capitalized, even when you enter a custom name in.) |
imported>Benniboi01 m (added a way to add any template you want to the bottom. might have to revise later.) |
||
| Line 4: | Line 4: | ||
''{{#if:{{{start|}}} | {{{start}}} | {{period start|{{{period|{{PAGENAME}}}}}}}}}–{{#if:{{{stop|}}} | {{{stop}}} | {{Period end|{{{period|{{PAGENAME}}}}}}}}} million years ago''<br />{{Time scale}} | ''{{#if:{{{start|}}} | {{{start}}} | {{period start|{{{period|{{PAGENAME}}}}}}}}}–{{#if:{{{stop|}}} | {{{stop}}} | {{Period end|{{{period|{{PAGENAME}}}}}}}}} million years ago''<br />{{Time scale}} | ||
<!-- Including this template in the documentation results in two "Expression error: Unexpected round operator" messages in the above line. --> | <!-- Including this template in the documentation results in two "Expression error: Unexpected round operator" messages in the above line. --> | ||
| − | {{#ifeq:{{{timeline}}}|off|| | + | {{#ifeq:{{{timeline}}}|off||{{#if:{{{timelinenograph|}}}| |
{{!}}- | {{!}}- | ||
| − | {{!}} colspan=2{{!}} {{{{{timeline|{{{period|{{PAGENAME}}}}}}}} graphical timeline|embedded=yes}}[[Category:Periods with timeline in infobox]]}} | + | {{!}} colspan=2{{!}} {{{{{timeline|{{{period|{{{timelinenograph}}} }}}}}}|embedded=yes}}[[Category:Periods with timeline in infobox]]| |
| + | {{!}}- | ||
| + | {{!}} colspan=2{{!}} {{{{{timeline|{{{period|{{PAGENAME}} }}}}}} graphical timeline|embedded=yes}}[[Category:Periods with timeline in infobox]]}}}} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
{{template doc}} | {{template doc}} | ||
</noinclude><noinclude>[[Category:Geological period templates]]</noinclude> | </noinclude><noinclude>[[Category:Geological period templates]]</noinclude> | ||
Revision as of 23:49, 23 March 2020
This template is used on each of the geological epochs' wiki pages.
Contents
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 timelineare supported. For example, use|timeline=Late Devonianto 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}}
|
| |||
{{Geological epoch|timeline=off|title=Example title|color=late devonian|start=382.7|stop=358.9}}
|
| |||
{{Geological epoch
|period=mississippian
|timeline=Mississippian (geology)
}}
|
| |||
See also
| The above documentation is transcluded from Template:Geological epoch/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |