Difference between revisions of "Template:Infobox rock"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
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]]
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.
| Igneous rock | |
| File:BasaltUSGOV.jpg | |
| Composition | |
|---|---|
| Mafic: amphibole and pyroxene, sometimes plagioclase, feldspathoids, and/or olivine. |
{{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=
}}
| The above documentation is transcluded from Template:Infobox rock/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |