Difference between revisions of "Template:Infobox rock"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Use {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title.)
imported>Jmcgnh
(Add decat=yes for cases where infobox has image)
 
Line 6: Line 6:
 
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|{{{image_alt|}}}}}}}}
 
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|{{{image_alt|}}}}}}}}
 
| caption        = {{{caption|{{{image_caption|}}}}}}
 
| caption        = {{{caption|{{{image_caption|}}}}}}
 +
| decat          = {{#if:{{{image|}}}|yes|no}} <!-- do not populate "no data rows" if at least has an image -->
  
 
| label1        = Coordinates
 
| label1        = Coordinates
Line 17: Line 18:
 
| label4        = Secondary
 
| label4        = Secondary
 
| data4          = {{{composition_secondary|}}}
 
| data4          = {{{composition_secondary|}}}
 +
  
 
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc page, not here --></noinclude>
 
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc page, not here --></noinclude>

Latest revision as of 22:11, 1 September 2018

[[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
File: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=
}}