Difference between revisions of "Template:Infobox rock"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Zyxw
(Use {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title.)
Line 1: Line 1:
 
{{infobox
 
{{infobox
−
| title          = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}{{#if:{{{alternative_name|}}}|<br /><small>{{{alternative_name}}}</small>}}
+
| title          = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}{{#if:{{{alternative_name|}}}|<br /><small>{{{alternative_name}}}</small>}}
 
| subheaderstyle = background-color: #cddeff
 
| subheaderstyle = background-color: #cddeff
 
| subheader      = {{#if:{{{type|}}}|[[{{{type_link|{{{type}}}}}}|{{{type}}} rock]]}}
 
| subheader      = {{#if:{{{type|}}}|[[{{{type_link|{{{type}}}}}}|{{{type}}} rock]]}}

Revision as of 17:47, 27 November 2016

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

This template provides an infobox for rocks (contrast with the infobox for minerals). The default is 220px wide but can be made wider by setting the image_size parameter.

Basalt
Igneous rock
BasaltUSGOV.jpg
Composition
Mafic: amphibole and pyroxene, sometimes plagioclase, feldspathoids, and/or olivine.
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox rock
|name=
|type=
|coordinates=
|image=
|alt=
|caption=
}}
{{Infobox rock
|name=
|alternative_name=
|type=
|type_link=
|image=
|image_size=
|alt=
|caption=
|coordinates=
|composition=
|composition_secondary=
}}