Difference between revisions of "Template:Infobox nebula"

From blackwiki
Jump to navigation Jump to search
Line 3: Line 3:
 
|above={{{name}}}
 
|above={{{name}}}
  
{{#switch:{{{type|}}}
+
|abovestyle=background: {{#switch:{{{type|}}}
 
| dark  
 
| dark  
 
| DARK
 
| DARK
| Dark =  
+
| Dark = #c0c0c0;
{{!}}abovestyle=background: #c0c0c0;
 
{{!}}headerstyle=background: #c0c0c0;
 
{{!}}belowstyle=background: #c0c0c0;
 
{{!}}labelstyle=background: inherit;
 
 
| diffuse
 
| diffuse
 
| DIFFUSE
 
| DIFFUSE
| Diffuse =  
+
| Diffuse = #FFb8b0;
{{!}}abovestyle=background: #FFb8b0;
+
| indianred;
{{!}}headerstyle=background: #FFb8b0;
+
}}
{{!}}belowstyle=background: #FFb8b0;
+
 
{{!}}labelstyle=background: inherit;
+
|headerstyle=background: {{#switch:{{{type|}}}
|  
+
| dark
{{!}}abovestyle=background: indianred;
+
| DARK
{{!}}headerstyle=background: indianred;
+
| Dark = #c0c0c0;
{{!}}belowstyle=background: indianred;
+
| diffuse
{{!}}labelstyle=background: inherit;
+
| DIFFUSE
}} <!-- end: switch -->
+
| Diffuse = #FFb8b0;
 +
| indianred;
 +
}}
 +
 
 +
|belowstyle=background: {{#switch:{{{type|}}}
 +
| dark
 +
| DARK
 +
| Dark = #c0c0c0;
 +
| diffuse
 +
| DIFFUSE
 +
| Diffuse = #FFb8b0;
 +
| indianred;
 +
}}
 +
 
 +
|labelstyle=background: {{#switch:{{{type|}}}
 +
| inherit;
 +
}}
  
 
|below={{hide in print
 
|below={{hide in print

Revision as of 07:35, 13 March 2014

{{{name}}}
Observation data
Physical characteristics
See also: Lists of nebulae

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

Template documentation

Syntax

{{Infobox nebula
|type          = 
|name          = 
|image         = 
|caption       = 
|epoch         = 
|subtype       = 
|class         = 
|ra            = 
|dec           = 
|dist_ly       = 
|dist_oc       = 
|appmag_v      = 
|size_v        = 
|constellation = 
|radius_ly     = 
|radius_pc     = 
|absmag_v      = 
|notes         = 
|names         = 
}}

Parameters

  • type - the general type of nebula
    supported types: "nebula", "dark", "diffuse", "emission", "reflection"
  • name – the name of the nebula.
  • image (optional) – an image, specified in the form [[File:imagename]]
  • caption (optional) – a caption for the image
  • subtype - the subtype of this type of nebula
  • class - the class of the subtype of nebula
  • epoch – the epoch when the coordinate measurements were taken
  • ra – the right ascension of the nebula
  • dec – the declination of the nebula
  • dist_ly – the distance of the nebula, in light years
  • dist_pc – the distance of the nebula, in parsecs
  • appmag_v (optional) – the apparent magnitude of the nebula
  • size_v – the apparent dimensions of the nebula
  • constellation – the constellation containing the nebula. Should be wikilinked.
  • radius_ly (optional) – the radius of the nebula, in light years
  • radius_pc (optional) – the radius of the nebula, in parsecs
  • absmag_v (optional) – the absolute magnitude of the nebula
  • notes (optional) - notes
  • names (optional) – any other names, catalogue designations, etc.