Difference between revisions of "Template:Infobox meteorite subdivision"

From blackwiki
Jump to navigation Jump to search
imported>Basilicofresco
m (wrong spacing)
imported>Frietjes
(use template:infobox and simplify switch statements by converting the input to lowercase first before checking ...)
Line 1: Line 1:
<includeonly>{| class="infobox" style="text-align:left; font-size:88%; width:280px; line-height:1.5em"
+
<includeonly>{{infobox
! colspan=2 style="font-size: 125%; background-color: #ddc; text-align: center" | {{{Name}}}
+
| bodystyle = width:280px; line-height:1.5em
|-
+
| abovestyle = font-size: 125%; background-color: #ddc
 +
| above = {{{Name}}}
 +
 
 
<!----------------Subdivision Switch-------------------------->
 
<!----------------Subdivision Switch-------------------------->
! colspan=2 style="font-size: 125%; text-align: center" | &mdash;&nbsp;{{#switch: {{{Subdivision}}}
+
| subheaderstyle = font-size: 125%; font-weight:bold;
|Type = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite types|{{{Name}}}]]|}}
+
| subheader = &mdash;&nbsp;{{#switch: {{lc:{{{Subdivision}}}}}
|Class = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite classes|{{{Name}}}]]|}}
+
|type = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|Clan = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite clans|{{{Name}}}]]|}}
+
|class = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|Group = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite groups|{{{Name}}}]]|}}
+
|clan = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|Subgroup = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite subgroups|{{{Name}}}]]|}}
+
|group = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|Grouplet = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite grouplets|{{{Name}}}]]|}}
+
|subgroup = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|Structural class = [[Meteorite classification#Terminology|{{{Subdivision}}}]]&nbsp;&mdash;{{#ifeq:{{NAMESPACE}}||[[Category:Meteorite structural classes|{{{Name}}}]]|}}
+
|grouplet = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
|{{{Subdivision}}}&nbsp;&mdash;
+
|structural class = [[Meteorite classification#Terminology|{{{Subdivision}}}]]
}}
+
|{{{Subdivision}}}
|-
+
}}&nbsp;&mdash;
| colspan=2 style="text-align:center" | {{#if:{{{Image|}}}|[[File:{{{Image}}}|280x250px|alt={{{Image_alt_text}}}|{{{Name|}}}}}]]|[[File:Rock schema.jpg|80px|alt=A small rock with a question mark superimposed on its centre|no image]]}}
+
 
|-
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size=280x250px|alt={{{Image_alt_text|}}}}}
| colspan=2 style="text-align: center; font-style: italic" | {{#if:{{{Image_caption|}}}|{{{Image_caption}}}|{{#if:{{{Image|}}}|{{{Name}}}|}}}}
+
| captionstyle = font-style: italic
|-
+
| caption = {{{Image_caption|}}}
 +
 
 
<!----------------Compositional_type Switch-------------------------->
 
<!----------------Compositional_type Switch-------------------------->
{{#if:{{{Compositional_type|}}}|
+
| label1 = [[Meteorite classification#Terminology|Compositional type]]
! [[Meteorite classification#Terminology|Compositional type]]
+
| data1 =
{{!}} {{#switch: {{{Compositional_type}}}
+
{{#switch: {{lc:{{{Compositional_type|}}}}}
|Stony-Iron
+
|=
|Siderolite
+
|siderolite|[[siderolite]]
|Stony-iron
+
|stony-iron|[[stony-Iron]]
|[[Siderolite]]
+
|[[stony-iron meteorite|stony-iron]] = [[Stony-iron meteorite|Stony-iron]]
|[[Stony-iron]]
+
|aerolites|[[aerolites]]
|[[Stony-Iron]]
+
|iron|[[iron meteorite|iron]] = [[Iron meteorite|Iron]]
|stony-Iron
+
|stony|[[stony]]
|siderolite
+
|[[stony meteorite|stony]] = [[Stony meteorite|Stony]]
|stony-iron
+
|{{{Compositional_type|}}}
|[[siderolite]]
 
|[[stony-iron]]
 
|[[stony-Iron]]
 
|[[Stony-iron meteorite|Stony-iron]] = [[Stony-iron meteorite|Stony-iron]]|Iron
 
|iron
 
|[[Iron meteorite|iron]]
 
|[[Iron meteorite|Iron]] = [[Iron meteorite|Iron]]
 
|stony
 
|aerolites
 
|Stony
 
|Aerolites
 
|[[stony]]
 
|[[aerolites]]
 
|[[Stony]]
 
|[[Aerolites]]
 
|[[Stony meteorite|Stony]] = [[Stony meteorite|Stony]]
 
|{{{Compositional_type}}}}}
 
{{!}}-
 
 
}}
 
}}
 
<!----------------Type Switch-------------------------->
 
<!----------------Type Switch-------------------------->
{{#if:{{{Type|}}}|
+
| label2 = [[Meteorite classification#Terminology|Type]]
! [[Meteorite classification#Terminology|Type]]
+
| data2 =
{{!}} {{#switch: {{{Type}}}
+
{{#switch: {{lc:{{{Type|}}}}}
|Stony-Iron
+
|=
|Siderolite
+
|siderolite|[[siderolite]]
|Stony-iron
+
|stony-iron|[[stony-iron]]
|[[Siderolite]]
+
|[[stony-iron meteorite|stony-iron]] = [[Stony-iron meteorite|Stony-iron]]
|[[Stony-iron]]
+
|iron|[[iron meteorite|iron]] = [[Iron meteorite|Iron]]
|[[Stony-Iron]]
+
|aerolites|[[aerolites]]
|stony-Iron
+
|stony|[[stony]]
|siderolite
+
|[[stony meteorite|stony]] = [[Stony meteorite|Stony]]
|stony-iron
+
|{{{Type|}}}
|[[siderolite]]
 
|[[stony-iron]]
 
|[[stony-Iron]]
 
|[[Stony-iron meteorite|Stony-iron]] = [[Stony-iron meteorite|Stony-iron]]|Iron
 
|iron
 
|[[Iron meteorite|iron]]
 
|[[Iron meteorite|Iron]] = [[Iron meteorite|Iron]]
 
|stony
 
|aerolites
 
|Stony
 
|Aerolites
 
|[[stony]]
 
|[[aerolites]]
 
|[[Stony]]
 
|[[Aerolites]]
 
|[[Stony meteorite|Stony]] = [[Stony meteorite|Stony]]
 
|{{{Type}}}}}
 
{{!}}-
 
 
}}
 
}}
 +
 
<!----------------Type2 Switch-------------------------->
 
<!----------------Type2 Switch-------------------------->
{{#if:{{{Type2|}}}|
+
| label3 = [[Meteorite classification#Terminology|Type]]
! [[Meteorite classification#Terminology|Type]]
+
| data3 =
{{!}} {{#switch: {{{Type2}}}
+
{{#switch: {{lc:{{{Type2|}}}}}
|Chondrite
 
 
|chondrite
 
|chondrite
 
|[[chondrite]]
 
|[[chondrite]]
|[[Chondrite]]
+
|[[chondrite meteorite|chondrite]] = [[Chondrite]]
|[[Chondrite meteorite|Chondrite]] = [[Chondrite]]
 
 
|achondrite
 
|achondrite
|Achondrite
 
 
|[[achondrite]]
 
|[[achondrite]]
|[[Achondrite]]
+
|[[achondrite meteorite|achondrite]] = [[Achondrite]]
|[[Achondrite meteorite|Achondrite]] = [[Achondrite]]
 
|Primitive achondrite
 
 
|primitive achondrite
 
|primitive achondrite
|Primitive Achondrite
+
|[[primitive achondrite]] = [[Primitive achondrite]]
|primitive Achondrite
+
|{{{Type2|}}}
|[[primitive achondrite]]
 
|[[Primitive achondrite]]
 
|[[Primitive Achondrite]]
 
|[[primitive Achondrite]]
 
|[[Primitive achondrite]] = [[Primitive achondrite]]
 
|{{{Type2}}}}}
 
{{!}}-
 
}}
 
{{#if:{{{Structural_classification|}}}|
 
! [[Iron meteorite#Structural classification|Structural classification]]
 
{{!}} {{{Structural_classification}}}
 
{{!}}-
 
}}
 
{{#if:{{{Class|}}}|
 
! [[Meteorite classification#Terminology|Class]]
 
{{!}} {{{Class}}}
 
{{!}}-
 
}}
 
{{#if:{{{Clan|}}}|
 
! [[Meteorite classification#Terminology|Clan]]
 
{{!}} {{{Clan}}}
 
{{!}}-
 
}}
 
{{#if:{{{Group|}}}|
 
! [[Meteorite classification#Terminology|Group]]
 
{{!}} {{{Group}}}
 
{{!}}-
 
}}
 
{{#if:{{{Grouplet|}}}|
 
! [[Meteorite classification#Terminology|Grouplet]]
 
{{!}} {{{Grouplet}}}
 
{{!}}-
 
}}
 
{{#if:{{{Subgroups|}}}|
 
! [[Meteorite classification#Terminology|Subgroups]]
 
{{!}} {{{Subgroups}}}
 
{{!}}-
 
}}
 
{{#if:{{{Parent_body|}}}|
 
! [[Meteorite classification#Terminology|Parent body]]
 
{{!}} {{{Parent_body}}}
 
{{!}}-
 
}}
 
{{#if:{{{Composition|}}}|
 
! Composition
 
{{!}} {{{Composition}}}
 
{{!}}-
 
}}
 
{{#if:{{{Petrologic_type|}}}|
 
!  [[Petrologic type]]
 
{{!}} {{{Petrologic_type}}}
 
{{!}}-
 
}}
 
{{#if:{{{Number_of_specimens|}}}|
 
! Total known specimens
 
{{!}} {{{Number_of_specimens}}}
 
{{!}}-
 
}}
 
{{#if:{{{TKW|}}}|
 
! [[Total known weight|TKW]]
 
{{!}} {{{TKW}}}
 
{{!}}-
 
}}
 
{{#if:{{{Alternative_names|}}}{{{Aka|}}}{{{AKA|}}}|
 
! Alternative names
 
{{!}} {{{Alternative_names|}}}{{{Aka|}}}{{{AKA|}}}
 
{{!}}-
 
}}
 
{{#if:{{{Image2|}}}|
 
{{!}} colspan=2 style="text-align:center; font-style: italic" {{!}} [[File:{{{Image2}}}{{!}}240x240px{{!}}alt={{{Image2_alt_text}}}<!--{{!}}{{#if:{{{Image2_caption|}}}|{{{Image2_caption}}}|Additional image}}-->]]
 
{{!}}-
 
{{!}} colspan=2 style="text-align: center; font-style: italic" {{!}} {{#if:{{{Image2_caption|}}}|{{{Image2_caption}}}|Additional image}}
 
 
}}
 
}}
|}{{ns0|{{#if:{{{Image|}}}||{{#if:{{{Image2|}}}||[[Category:Wikipedia infobox meteorite articles without images]]}}}}}}</includeonly><noinclude>
+
 
{{doc}}<!-- place category and language links on the /doc page, not here --></noinclude>
+
| label4 = [[Iron meteorite#Structural classification|Structural classification]]
 +
| data4 = {{{Structural_classification|}}}
 +
 
 +
| label5 = [[Meteorite classification#Terminology|Class]]
 +
| data5 = {{{Class|}}}
 +
 
 +
| label6 = [[Meteorite classification#Terminology|Clan]]
 +
| data6 = {{{Clan|}}}
 +
 
 +
| label7 = [[Meteorite classification#Terminology|Group]]
 +
| data7 = {{{Group|}}}
 +
 
 +
| label8 = [[Meteorite classification#Terminology|Grouplet]]
 +
| data8 = {{{Grouplet|}}}
 +
 
 +
| label9 = [[Meteorite classification#Terminology|Subgroups]]
 +
| data9 = {{{Subgroups|}}}
 +
 
 +
| label10 = [[Meteorite classification#Terminology|Parent body]]
 +
| data10 = {{{Parent_body|}}}
 +
 
 +
| label11 = Composition
 +
| data11 = {{{Composition|}}}
 +
 
 +
| label12 = [[Petrologic type]]
 +
| data12 = {{{Petrologic_type|}}}
 +
 
 +
| label13 = Total known specimens
 +
| data13 = {{{Number_of_specimens|}}}
 +
 
 +
| label14 = [[Total known weight|TKW]]
 +
| data14 = {{{TKW|}}}
 +
 
 +
| label15 = Alternative names
 +
| data15 = {{{Alternative_names|}}}{{{Aka|}}}{{{AKA|}}}
 +
 
 +
| data20 = {{#if:{{{Image2|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{Image2|}}}|size=240x240px|alt={{{Image2_alt_text|}}}}}{{#if:{{{Image2_caption|}}}|<br /><span style="font-style:italic">{{{Image2_caption}}}</span>}} }}
 +
}}{{main other|
 +
{{#switch: {{lc:{{{Subdivision}}}}}
 +
|type = [[Category:Meteorite types|{{{Name}}}]]
 +
|class = [[Category:Meteorite classes|{{{Name}}}]]
 +
|clan = [[Category:Meteorite clans|{{{Name}}}]]
 +
|group = [[Category:Meteorite groups|{{{Name}}}]]
 +
|subgroup = [[Category:Meteorite subgroups|{{{Name}}}]]
 +
|grouplet = [[Category:Meteorite grouplets|{{{Name}}}]]
 +
|structural class = [[Category:Meteorite structural classes|{{{Name}}}]]
 +
}}{{#if:{{{Image|}}}{{{Image2|}}}||[[Category:Wikipedia infobox meteorite articles without images]]}}
 +
}}</includeonly><noinclude>
 +
{{documentation}}<!-- place category and language links on the /doc page, not here -->
 +
</noinclude>

Revision as of 22:22, 24 June 2013

Template documentation[view] [edit] [history] [purge]
IAB
— Group —
Goose Lake meteorite.jpg
The Goose Lake Meteorite is an IAB meteorite in the sLL subgroup (low-Au, low-Ni).
Compositional typeIron
Structural classificationHexahedrites, fine to coarse octahedrites, or even ataxites
ClassMagmatic
Subgroups
  • sLL
  • sLM
  • sLH
  • sHL
  • sHH
Parent bodyUnknown
CompositionMeteoric iron (kamacite and taenite) and silicate inclusions
[[Category:Infobox templates|Template:Remove first word]]

This template can be used to provide comparative, at-a-glance information on meteorite subdivisions.

Meteorite classification is a complex, ever evolving field with inconsistent use of terminology. This template sidesteps the complexity by providing fields for both the name of the subdivision being described and the technical term from meteorite classification that best fits it.

Subdivision is an unofficial term used here to avoid the ambiguity inherent to "Group", "Type", etc. and to "Classification" in this context.

Usage

Cut and paste the following lines at the beginning of the document and then fill with data. Do not edit the first line or field names.

{{Infobox meteorite subdivision
|Subdivision               = <!-- One of Type/Class/Clan/Group/Sub-group/Grouplet/Duo/... -->
|Name                      = 
|Alternative_names         = 
|Image                     = 
|Image_caption             = 
|Image_alt_text            = 
|Compositional_type        = <!-- Stony/Iron/etc -->
|Type                      = 
|Class                     = 
|Clan                      = 
|Group                     = 
<!-- list/link all subgroups of this group as a {{flatlist}} -->
|Subgroups                 = {{flatlist|
*
}}
|Structural_classification = <!-- One of [[Hexahedrite]]/[[Coarsestoctahedrite]]/[[Coarseoctahedrite]]/[[Mediumoctahedrite]]/[[Fineoctahedrite]]/[[Finestoctahedrite]]/[[Plessiticoctahedrite]]/[[Ataxite]]. -->
|Parent_body               = 
|Composition               = 
|Petrologic_type           = 
|Number_of_specimens       = 
|TKW                       = <!-- {{Convert||kg}} -->
|Image2                    = 
|Image2_caption            = 
|Image2_alt_text           = 
}}

Parameters

Bold fields are mandatory.

Field Description
Subdivision The meteorite classification term that applies, most likely one of Type/Class/Clan/Group/Subgroup/Grouplet/Duo/... Note that this must be entered as a proper noun for the template to work; initial capital letter followed by lower case.

In addition to appearing at the top of the Infobox, this field places the article into Category:Meteorite <subdivision>s.

Name The official name of the meteorite subdivision without any abbreviation; likely to be in Table 1 below.
Alternative_names Comma separated alternative names.
Image Name of an example image of the subdivision without "File:" or any other wikitext (e.g. Willamette Meteorite AMNH.jpg).
Image_caption Most captions draw attention to something in the image that is not obvious, such as its relevance to the text. See Wikipedia:Manual of Style/Captions.
Image_alt_text Description of the image for visually impaired readers. See Wikipedia:Alternative text for images.
Compositional_type Set to Iron if describing a subdivision of the Iron meteorites or Stony if describing a subdivision of the Iron meteorites.
Type Choose from the first column of Table 1 below.
Class Choose from the middle column of Table 1 below.
Clan A clan name from a referenced source.
Group Likely to be in the last column of Table 1 below.
Table 1
Type Class Other subdivision
Chondrite [[Carbonaceous chondrite]] CI, CV, CM, CR, CH, CB, CK, CO, C ungrouped
[[Ordinary chondrite]] H3, H4, H5, L3, LL6, etc...
[[Enstatite chondrite]] EH, EL
[[Rumuruti chondrite]]
[[Kakangari chondrite]]
Achondrite [[Primitive achondrite]] Acapulcoite, Lodranite, Winonaite
[[Asteroidal achondrite]] [[Howardite]], [[Eucrite]], [[Diogenite]], [[Aubrite]], [[Angrite]], [[Ureilite]], Brachinite
[[Lunar meteorite]] Mare basalts, Impact breccia
[[Martian meteorite]] [[Shergottite]], [[Nakhlite]], [[Chassignite]], OPX
Iron Nonmagmatic IAB, IIE, Udei Station grouplet, Pitts grouplet, sLL, sLM, sLH, sHL, sHH
Magmatic IC, IIAB, IIC, IID, IIF, IIG, IIIAB, IIIE, IIIF, IVA, IVB
Stony-iron [[Pallasite]] Main group, Eagle Station group, Pyroxene grouplet
[[Mesosiderite]]
[1][2]
Field Description
Structural_classification Only for irons and, if applicable, stony-irons. Choose from:
  • [[Hexahedrite]]
  • [[Coarsest octahedrite]]
  • [[Coarse octahedrite]]
  • [[Medium octahedrite]]
  • [[Fine octahedrite]]
  • [[Finest octahedrite]]
  • [[Plessitic octahedrite]]
  • [[Ataxite]].
Parent_body Best referenced guess or subdivision name (by convention).
Composition Chemical (irons) or mineral (stony) composition (e.g. 93% Fe, 5.9% Ni, 0.42% Co, 0.46% P).
Petrologic_type See petrologic type; may be more than one.
Number_of_specimens The number of known specimens of this group.
TKW Total known weight, e.g. 300 kg.
Image2 A second image showing additional details.
Image2_caption Most captions draw attention to something in the image that is not obvious, such as its relevance to the text. See Wikipedia:Manual of Style/Captions.
Image2_alt_text Description of the image for visually impaired readers. See Wikipedia:Alternative text for images.

See also

  1. See Meteorite classification
  2. O. Richard Norton. The Cambridge encyclopedia of meteorites. UK, Cambridge University Press, 2002. ISBN 0521621437.