Difference between revisions of "Template:Geological period/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>A garbage person
(Added use case and tried to see if changing the citations worked.)
imported>Johnuniq
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right;margin-left:1em; width:{{{width|20}}}em"
+
<includeonly>{| class="wikitable" style="float:right; margin-left:1em; width: {{{width|20}}}em; text-align: center;"
| colspan=2 style="text-align:center;background-color:{{period color|{{{period|{{PAGENAME}}}}}}}" |'''{{{period|{{PAGENAME}}}}} Period'''<br />''{{period start|{{{period|{{PAGENAME}}}}}}}–{{Period end|{{{period|{{PAGENAME}}}}}}}&nbsp;million years ago''<br /><span style="text-align:center">{{Time scale}}</span>
+
|-
 +
| colspan="2" style="background-color: {{period color|{{{period|{{PAGENAME}}}}}}}" |'''{{{period|{{PAGENAME}}}}} Period'''<br />''{{period start|{{{period|{{PAGENAME}}}}}}}–{{Period end|{{{period|{{PAGENAME}}}}}}}&nbsp;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.  -->
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
 
{{!}}-
 
{{!}}-
{{!}} style="text-align:center;" colspan=2 {{!}} [[{{{image}}}|{{#expr:{{{width|20}}}*12}}px]]
+
{{!}} colspan="2" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{#expr:{{{width|20}}}*12}}|alt={{{alt|}}}}}
 
{{#if:{{{caption|}}}|{{{caption}}}}}
 
{{#if:{{{caption|}}}|{{{caption}}}}}
 
}}
 
}}
 
{{#if:{{{o2|}}}|
 
{{#if:{{{o2|}}}|
{{!}}-
+
{{!}}- style="font-size :0.8em"
{{!}} <span style="font-size:0.8em; text-align:center">Mean atmospheric [[Oxygen|{{chem|O|2}}]] content over period duration</span>
+
{{!}} Mean atmospheric [[Oxygen|{{chem|O|2}}]] content over period duration
{{!}} <span style="font-size:0.8em; text-align:center">c. {{{o2}}} vol %{{citation needed|date=April 2019}}<br>({{#expr:{{{o2}}}/.2 round 0}} % of modern level)</span>
+
{{!}} c. {{{o2}}} vol %<br>({{#expr:{{{o2}}}/.2 round 0}} % of modern level)
 
}}
 
}}
 
{{#if:{{{co2|}}}|
 
{{#if:{{{co2|}}}|
{{!}}-
+
{{!}}- style="font-size: 0.8em"
{{!}} <span style="font-size:0.8em; text-align:center">Mean atmospheric [[Carbon dioxide|{{chem|CO|2}}]] content over period duration</span>
+
{{!}} Mean atmospheric [[Carbon dioxide|{{chem|CO|2}}]] content over period duration
{{!}} <span style="font-size:0.8em; text-align:center">c. {{{co2}}} [[Parts per million|ppm]]{{citation needed|date=April 2019}}<br />({{#expr:{{{co2}}}/280 round 0}} times pre-industrial level)</span>
+
{{!}} c. {{{co2}}} [[Parts per million|ppm]]<br />({{#expr:{{{co2}}}/280 round 0}} times pre-industrial level)
 
}}
 
}}
 
{{#if:{{{temp|}}}|
 
{{#if:{{{temp|}}}|
{{!}}-
+
{{!}}- style="font-size: 0.8em"
{{!}} <span style="font-size:0.8em; text-align:center">Mean surface temperature over period duration</span>
+
{{!}} Mean surface temperature over period duration
{{!}} <span style="font-size:0.8em; text-align:center">c. {{{temp}}}&nbsp;°C{{citation needed|date=April 2019}}<br />({{#expr:{{{temp}}}-14 round 0}}&nbsp;°C above modern level)</span>}}
+
{{!}} c. {{{temp}}}&nbsp;°C<br />({{#expr:{{{temp}}}-14 round 0}}&nbsp;°C above modern level)}}
 
{{#if:{{{sea level|}}}|
 
{{#if:{{{sea level|}}}|
{{!}}-
+
{{!}}- style="font-size: 0.8em;"
{{!}} <span style="font-size:0.8em; text-align:center">Sea level (above present day)</span>
+
{{!}} Sea level (above present day)
{{!}} <span style="font-size:0.8em; text-align:center">{{{sea level}}}}}
+
{{!}} {{{sea level}}}}}
 
{{#ifeq:{{{timeline}}}|off||
 
{{#ifeq:{{{timeline}}}|off||
 
{{!}}-
 
{{!}}-
{{!}} style="text-align:center;" colspan=2{{!}} {{{{{timeline|{{{period|{{PAGENAME}}}}}}}} graphical timeline|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>
{{documentation}}
+
{{Documentation}}
 
</noinclude>
 
</noinclude>
 
{{Geological period |o2=5 |co2=6 |temp=7 |sea level=8 |timeline=off}}
 

Revision as of 02:22, 18 October 2019

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

Usage

Used on each of the Geological periods' pages.

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

See also

Template:Period infoboxes