Jump to content

Teamplaid:Geological epoch

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

Ùsaid - Usage

[deasaich]

Used on each of the geological epochs' wiki pages.

To disable the timeline (and/or use it elsewhere on the page) set |timeline=off

This template uses the PAGENAME function to obtain a color for the top cell, a title found at the top of the first cell, a start and stop date that goes beneath the title, and a special timeline templatethat goes in a second cell. These values can all be changed using |color=VALID PERIOD NAME STRING, |title=, |start=, |stop=, and |timeline=, respectively. |color= and |timeline= require strings to function correctly, while the other three parameters can use strings or integer/decimal values. The |timeline= parameter will only work if a graphical timeline template is pre-made for the period in question. also, when using |timeline=, the timeline used MUST HAVE "graphical timeline" in lowercase at the end of the template's title, with a whitespace character separating the "graphical timeline" phrase from the rest of the title. When using a custom-made timeline, including the "graphical timeline" phrase will prevent it from working properly, so simply enter the title of the template into the |timeline= parameter up to the 'graphical timeline' portion of the title (for instance, |timeline=Late Devonian graphical timeline won't work, but |timeline=Late Devonian will, as long as capitalization and spelling is correct).

Eisimpleirean - Examples

[deasaich]
{{Geological epoch}}
Geological epoch Ceann-aimsire
Mearachd eas-preisein: Gnìomharaiche round ris nach robh dùil.–{{{stop}}} millean bliadhna air ais
Teamplaid:Geological epoch graphical timeline

In this example, the Geological epoch template is grabbing the title of the page it is in (in this case, the documentation page) to set the color, title text, and start and stop time of the epoch. Since this page's title is not a valid time period, its color is grey and it returns errors for the start and stop time. The template is also trying to display a 'Geological epoch/doc graphical timeline', which also does not exist. Because of this, it is displaying red text in the lower cell, which indicates it is broken.







{{Geological epoch|timeline=off}}
Geological epoch Ceann-aimsire
Mearachd eas-preisein: Gnìomharaiche round ris nach robh dùil.–{{{stop}}} millean bliadhna air ais

In this example, the timeline is off. This is useful when a timeline hasn't been created/won't be created for a page.







{{Geological epoch|timeline=off|title=Cool Beans}}
Cool Beans Ceann-aimsire
Mearachd eas-preisein: Gnìomharaiche round ris nach robh dùil.–{{{stop}}} millean bliadhna air ais

In this example, the title has been changed to "Cool Beans", and the timeline is off again. This could be useful when you want to give a special title to the epoch that isn't the title of the page.







{{Geological epoch|timeline=off|title=Cooler Beans|color=late devonian}}
Cooler Beans Ceann-aimsire
Mearachd eas-preisein: Gnìomharaiche round ris nach robh dùil.–{{{stop}}} millean bliadhna air ais

In this example, we added a color to the top cell by using a 'color' parameter and entering a valid period of time. rgb values and hex values do not work currently. again, this is useful if a page's title is not exactly the same as a valid period.






{{Geological epoch|timeline=off|title=Coolest Beans|color=late devonian|start=382.7|stop=358.9}}
Coolest Beans Ceann-aimsire
382.7–358.9 millean bliadhna air ais

In this final example, a start and stop date have been assigned. Timeline is still off (for compaction purposes).




Faic cuideachd - Also see