Template:Stellar infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
No edit summary
Line 1: Line 1:
{|style="border:solid 1px #999999; -moz-border-radius:10px; float:right;" width="250px"
{| class="infobox" cellspacing="0" style="float:right; clear:right; width:300px; margin:0 0 10px 10px; padding:2px; background:{{{BG|#046}}}; border-radius: 0 0 .7em .7em; color:{{{color1|inherit}}};"
|-
|colspan="2" style="text-align:center; background:#000000; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"|'''<span style="color:white">{{{name}}}</span>'''
|-
|colspan="2" style="text-align:center"|{{{image|}}}
{{#if:{{{distance|}}}|<nowiki/>
{{!}}-
{{!}}-
{{!}} style="background:#F0F8FF;" {{!}}'''Distance from Sol:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{distance|}}}  
! style="background:{{{nameBG|transparent}}}; color:{{{color2|#ffffff}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
}}
|-
{{#if:{{{type|}}}|<nowiki/>
{{!}}-
{{!}}-
{{!}} style="background:#F0F8FF;" {{!}}'''Spectral Type:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{type|}}}  
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#F0F0F0}}}; text-align:center; border-bottom:1px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}}
}}
}}
|-
 
{{#if:{{{magnitude|}}}|<nowiki/>
{{!}}-}}
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#ffffff}}}; text-align:center; background:{{{sectionBG|#4C6680}}}" {{!}} {{{section1-title|Location}}}}}
 
{{!}}-
{{!}}-
{{!}} style="background:#F0F8FF;" {{!}}'''Apparent magnitude:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{magnitude|}}}  
{{#if:{{{sector|}}}|
}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
|-
'''{{{sector-title|Sector}}}''':
{{#if:{{{sector|}}}|<nowiki/>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}}-
{{{sector|}}
{{!}} style="background:#F0F8FF;" {{!}}'''Sector:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{sector|}}}  
 
}}
{{!}}-}}
|-
{{#if:{{{constellation|}}}|
{{#if:{{{constellation|}}}|<nowiki/>
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
{{!}}-
'''{{{constellation-title|Constellation}}}''':
{{!}} style="background:#F0F8FF;" {{!}}'''Constellation:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{constellation|}}}  
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
}}
{{{constellation|}}}
|-
 
{{#if:{{{bodies|}}}|<nowiki/>
{{!}}-}}
{{!}}-
{{#if:{{{distance|}}}|
{{!}} style="background:#F0F8FF;" {{!}}'''Bodies:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{bodies|}}}  
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
}}
'''{{{distance-title|Distance from Sol}}}''':
|-
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{#if:{{{affiliation|}}}|<nowiki/>
{{{distance|}}}
{{!}}-
 
{{!}} style="background:#F0F8FF;" {{!}}'''Affiliation:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{affiliation|}}}  
{{!}}-}}
}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
|-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#ffffff}}}; text-align:center; background:{{{sectionBG|#4C6680}}}" {{!}} {{{section2-title|Stellar}}}}}
{{#if:{{{notable|}}}|<nowiki/>
 
{{!}}-
{{!}}-}}
{{!}} style="background:#F0F8FF;" {{!}}'''Notable facts:'''{{!!}} style="color:#00000; background:#F0F8FF;" {{!}}{{{notable|}}}  
{{#if:{{{type|}}}|
}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{type-title|Spectral type}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{type|}}}
 
{{!}}-}}
{{#if:{{{magnitude|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{magnitude-title|Absolute magnitude:}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{magnitude|}}}
 
{{!}}-}}
{{#if:{{{bodies|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{bodies-title|Orbiting planets}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{bodies|}}}
 
{{!}}-}}
{{#if:{{{asteroids|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{asteroids-title|Orbiting asteroids}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{asteroids|}}}
 
{{!}}-}}
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#ffffff}}}; text-align:center; background:{{{sectionBG|#4C6680}}}" {{!}} {{{section3-title|Societal}}}}}
 
{{!}}-}}
{{#if:{{{events|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{events-title|Notable events}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{events|}}}
 
{{!}}-}}
{{#if:{{{affiliation|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{affiliation-title|Affiliation}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{affiliation|}}}
{{!}}-}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" |&nbsp;
|}<noinclude>
|}<noinclude>


== Usage ==
== Usage ==
{| style="float: left; background: transparent;"
<pre>
|<pre>
{{System infobox
{{Stellar Infobox
|name=
|name         =
|image=
|image         =
|sector=
|distance     =
|constellation=
|type         =
|distance=
|magnitude     =
|type=
|sector        =
|magnitude=
|constellation =
|bodies=
|bodies        =
|asteroids=
|affiliation   =
|events=
|notable      =
|affiliation=
}}
}}
</pre>
</pre>

Revision as of 13:10, August 20, 2014

Stellar infobox
Location
Stellar
Societal
 

Usage

{{System infobox
|name=
|image=
|sector=
|constellation=
|distance=
|type=
|magnitude=
|bodies=
|asteroids=
|events=
|affiliation=
}}