Jump to content

Template:Infobox Galaxy: Difference between revisions

From IdeaWazaWiki
wikademia>Ligulem
if -> qif - qif is the server friendlier variant of if
wikademia>Wikademia
m 106 revisions
 
(84 intermediate revisions by 37 users not shown)
Line 1: Line 1:
{| class="infobox" style="border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px;"
{{Infobox
|+ '''{{{name}}}'''
| above    = {{{name}}}
|-
| image    = {{{image<includeonly>|</includeonly>}}}
! style="background-color: #FFFFC0;" |<small>[[Galaxy]]</small>
| caption  = {{{caption<includeonly>|</includeonly>}}} {{#if:{{{credit<includeonly>|</includeonly>}}}|<br/><span style="font-size:smaller;">Credit: {{{credit}}}</span> }}
| align="center" |<small>[[List of galaxies]]</small>
| abovestyle  = background: #AFC;
|-
| headerstyle = background: #AFC;
| colspan="2" align="center" |{{qif|test={{{image}}}|then={{{image}}}|else=''No image.''}}
| belowstyle  = background: #AFC;
|-
| labelstyle  = background: inherit;
! style="background-color: #FFFFC0;" colspan="2" | Observation data<br/><small>([[Epoch (astronomy)|Epoch]] {{{epoch}}})</small>
| header1  = Observation data {{#if:{{{epoch<includeonly>|</includeonly>}}}|({{{epoch}}} [[Epoch (astronomy)|epoch]]) }}
|-
| label2  = [[Constellation]]
| '''[[Hubble sequence|Type]]'''
| data2    = {{{constellation name<includeonly>|</includeonly>}}}
| {{{type}}}
| label3  = [[Right ascension]]
|-
| data3    = {{{ra<includeonly>|</includeonly>}}}
| '''[[Right ascension]]'''
| label4  = [[Declination]]
| {{{ra}}}
| data4    = {{{dec<includeonly>|</includeonly>}}}
|-
| label5  = [[Redshift]]
| '''[[Declination]]'''
| data5    = {{{z<includeonly>|</includeonly>}}}
| {{{dec}}}
| label6  = Distance
|-
| data6    = {{{dist_ly<includeonly>|</includeonly>}}}
| '''[[Red shift]]'''
| label7  = [[Galaxy morphological classification|Type]]
| {{qif|test={{{z}}}|then={{{z}}}|else=''?''}}
| data7    = {{{type<includeonly>|</includeonly>}}}
|-
| label8  = [[Angular diameter|Apparent dimensions]]&nbsp;<small title="in visual light">(V)</small>
| '''Distance'''
| data8    = {{{size_v<includeonly>|</includeonly>}}}
| {{{dist_ly}}}
| label9  = [[Apparent magnitude]]&nbsp;<small title="in visual light">(V)</small>
|-
| data9    = {{{appmag_v<includeonly>|</includeonly>}}}
| '''[[Apparent magnitude]] <small>(V)</small>'''
| label10  = Notable features
| {{{appmag_v}}}
| data10  = {{{notes<includeonly>|</includeonly>}}}
|-
| header11 = {{#if:{{{names|}}} | Other designations }}
| '''Apparent dimensions <small>(V)</small>'''
| data12  = {{{names<includeonly>|</includeonly>}}}
| {{{size_v}}}
| below    = See also: [[Galaxy]], [[List of galaxies]]
|-
}}<noinclude>
| '''[[Constellation]]'''
{{documentation}}
| {{{constellation name}}}
</noinclude>
|-
! style="background-color: #FFFFC0;" colspan="2" | Physical characteristics
|-
| '''Radius'''
| {{{radius_ly}}}
|-
| '''[[Absolute magnitude]] <small>(V)</small>'''
| {{{absmag_v}}}
|-
| '''Notable features'''
| {{{notes}}}
|-
| '''Other designations'''
| {{{names}}}
|}

Latest revision as of 05:24, 4 April 2009

{{{name}}}
{{{image}}}
{{{caption}}}
Credit: {{{credit}}}
Observation data ({{{epoch}}} epoch)
Constellation{{{constellation name}}}
Right ascension{{{ra}}}
Declination{{{dec}}}
Redshift{{{z}}}
Distance{{{dist_ly}}}
Type{{{type}}}
Apparent dimensions (V){{{size_v}}}
Apparent magnitude (V){{{appmag_v}}}
Notable features{{{notes}}}
{{{names}}}
See also: Galaxy, List of galaxies
[create] File:Template-info.svg Template documentation