Module:Geological time
![]() | This Lua module is used on approximately 3,900 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
![]() | This module depends on the following other modules: |
![]() | This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
Automatically produce see also hatnote for geological categories that links to categories for adjacent time spans.
For test cases, see {{Geological category see also/testcases}}
Usage
{{#invoke:Geological time|seeAlso}}
is the standard usage.
{{#invoke:Geological time|seeAlso|article_title}}
performs a test for any article title. For example:
{{#invoke:Geological time|seeAlso|Category:Jurassic animals}}
→ Script error: The module returned a nil value. It is supposed to return an export table.
Two specialized entry points for finding time spans before and after the argument:
{{#invoke:Geological time|before|Jurassic}}
→ Script error: The module returned a nil value. It is supposed to return an export table.
{{#invoke:Geological time|after|Triassic}}
→ Script error: The module returned a nil value. It is supposed to return an export table.
local p = {}
p.eon = {'Hadean', 'Archean', 'Proterozoic', 'Phanerozoic'}
p.era = {'Eoarchean', 'Paleoarchean', 'Mesoarchean', 'Neoarchean',
'Paleoproterozoic', 'Mesoproterozoic', 'Neoproterozoic',
'Paleozoic', 'Mesozoic', 'Cenozoic'}
p.period = {'Siderian', 'Rhyacian', 'Orosirian', 'Statherian',
'Calymmian', 'Ectasian', 'Stenian',
'Tonian', 'Cryogenian', 'Ediacaran',
'Cambrian', 'Ordovician', 'Silurian', 'Devonian', 'Carboniferous', 'Permian',
'Triassic', 'Jurassic', 'Cretaceous', 'Paleogene', 'Neogene', 'Quaternary'}
p.epoch = {'Terraneuvian', 'Cambrian Series 2', 'Miaolingian', 'Furongian',
'Early Ordovician', 'Middle Ordovician', 'Late Ordovician',
'Llandovery', 'Wenlock', 'Ludlow', 'Pridoli',
'Early Devonian', 'Middle Devonian', 'Late Devonian',
'Mississippian', 'Pennsylvanian',
'Cisuralian', 'Guadalupian', 'Lopingian',
'Early Triassic', 'Middle Triassic', 'Late Triassic',
'Early Jurassic', 'Middle Jurassic', 'Late Jurassic',
'Early Cretaceous', 'Late Cretaceous',
'Paleocene', 'Eocene', 'Oligocene',
'Miocene', 'Pliocene', 'Pleistocene', 'Holocene'}
p.age = {'Fortunian', 'Cambrian Stage 2', 'Cambrian Stage 3', 'Cambrian Stage 4',
'Wuliuan', 'Drumian', 'Guzhangian', 'Paibian', 'Jiangshanian', 'Cambrian Stage 10',
'Tremadocian', 'Floian', 'Dapingian', 'Darriwilian', 'Sandbian', 'Katian', 'Hirnantian',
'Rhuddanian', 'Aeronian', 'Telychian', 'Sheinwoodian', 'Homerian', 'Gortian', 'Ludfordian', 'Pridoli',
'Lochkovian', 'Pragian', 'Emsian', 'Eifelian', 'Givetian', 'Frasnian', 'Famennian',
'Tournaisian', 'Viséan', 'Serpukhovian', 'Bashkirian', 'Moscovian', 'Kasimovian', 'Gzhelian',
'Asselian', 'Sakmarian', 'Artinskian', 'Kungurian', 'Roadian', 'Wordian', 'Capitanian', 'Wuchiapingian', 'Changhsingian',
'Induan', 'Olenekian', 'Anisian', 'Ladinian', 'Carnian', 'Norian', 'Rhaetian',
'Hettangian', 'Sinemurian', 'Pliensbachian', 'Toarcian', 'Aalenian', 'Bajocian',
'Bathonian', 'Callovian', 'Oxfordian', 'Kimmeridgian', 'Tithonian'
}