FANDOM


(Input for galaxy)
(Infobox updated using the portable infobox migration tool)
Line 1: Line 1:
{| class="infobox galaxy-details" cellspacing="2" cellpadding="0"
+
<infobox theme="Theme1">
|-
+
<title source="name"><default>{{PAGENAME}}</default></title>
! class="col-header" colspan="2" | <div style="font-size: 1.2em;">{{{name}}}</div><div style="font-size: 0.9em; line-height:1.5em; margin:2px 10px;">[[{{{galaxy|Milky Way}}}]] / [[{{{cluster}}}]]</div>
+
<data source="cluster">
|-
+
<label><noinclude>Cluster</noinclude></label>
{{#if: {{{image|}}} |<nowiki/>
+
<format>[[Milky Way]] / [[{{{cluster}}}]]</format>
{{!}} align="center" colspan="2" {{!}}[[Image:{{#if:{{#explode:{{#explode:{{{image}}}|{{!}}|0}}|:|1}}|{{#explode:{{#explode:{{{image}}}|{{!}}|0}}|:|1}}|{{{image}}}}}|260px]] <!-- The code above filters out any instances of [[File:]] and [[Image:]] from the value as it is unneeded in the parameter. Also checks if the resulting string is blank and directly use the image value instead. -->
+
</data>
{{!}}- }}
+
<image source="image">
{{#if: {{{image2|}}} |<nowiki/>
+
<label>Image</label>
{{!}} align="center" colspan="2" {{!}}[[Image:{{#if:{{#explode:{{#explode:{{{image2}}}|{{!}}|0}}|:|1}}|{{#explode:{{#explode:{{{image2}}}|{{!}}|0}}|:|1}}|{{{image2}}}}}|260px]]
+
<caption source="caption">
{{!}}- }}
+
<label><noinclude>Caption</noinclude></label>
{{#if: {{{image3|}}} |<nowiki/>
+
</caption>
{{!}} align="center" colspan="2" {{!}}[[Image:{{#if:{{#explode:{{#explode:{{{image3}}}|{{!}}|0}}|:|1}}|{{#explode:{{#explode:{{{image3}}}|{{!}}|0}}|:|1}}|{{{image3}}}}}|260px]]
+
</image>
{{!}}- }}
+
<image source="image2"><label>Image 2</label></image>
| class="col-caption" colspan="2" |{{{caption}}}
+
<image source="image3"><label>Image 3</label></image>
|-
+
<data source="mass">
| class="col-left" |Stellar Mass
+
<label>Stellar Mass</label>
| class="col-right" |{{formatnum: {{{mass|N/A}}} }} {{#ifeq: {{{mass|N/A}}} | N/A | | {{{massunits|Sol {{plural:{{{mass}}}|Mass|Masses}} }}} }}
+
<format>{{formatnum: {{{mass|N/A}}} }} {{#ifeq: {{{mass|N/A}}} | N/A | | {{{massunits|Sol {{plural:{{{mass}}}|Mass|Masses}} }}} }}</format>
|-
+
<default>N/A</default>
| class="col-left" |Stellar Class
+
</data>
| class="col-right" |{{{class|N/A}}}
+
<data source="class">
|-
+
<label>Stellar Class</label>
| class="col-left" |Luminosity
+
<default>N/A</default>
| class="col-right" |{{formatnum: {{{luminosity|N/A}}} }} {{#ifeq: {{{luminosity|N/A}}} | N/A | | Sol}}
+
</data>
|-
+
<data source="luminosity">
| class="col-left" |Planets
+
<label>Luminosity</label>
| class="col-right" |{{{planets}}}
+
<format>{{formatnum: {{{luminosity|N/A}}} }} {{#ifeq: {{{luminosity|N/A}}} | N/A | | Sol}}</format>
|-
+
<default>N/A</default>
| class="col-left" |Moons
+
</data>
| class="col-right" |{{{moons|0}}}
+
<data source="planets">
|-
+
<label>Planets</label>
| class="col-left" |Asteroid Belts
+
</data>
| class="col-right" |{{{asteroidbelts|0}}}
+
<data source="moons">
|-
+
<label>Moons</label>
| class="col-left" |Asteroids
+
<default>0</default>
| class="col-right" |{{{asteroids|0}}}
+
</data>
|-
+
<data source="asteroidbelts">
| class="col-left" |Objects
+
<label>Asteroid Belts</label>
| class="col-right" |{{{objects|0}}}
+
<default>0</default>
|-
+
</data>
|}
+
<data source="asteroids">
+
<label>Asteroids</label>
  +
<default>0</default>
  +
</data>
  +
<data source="objects">
  +
<label>Objects</label>
  +
<default>0</default>
  +
</data>
  +
</infobox>
 
<noinclude>
 
<noinclude>
 
{{-}}
 
{{-}}

Revision as of 15:17, March 21, 2017


Usage

{{System
| name               = Name of the system.
| cluster            = Cluster containing the system.
| image              = Image of the system.
| image2             = Image of the system in Mass Effect 2 (optional).
| image3             = Image of the system in Mass Effect 3 (optional).
                       (Do not use [[File:]] or [[Image:]], just file name)
| caption            = Caption for the image.
| mass               = Stellar mass.  (optional)
| massunits          = Units of the solar mass. (default: Sol Masses)
| class              = Stellar class.  (optional)
| luminosity         = Luminosity relative to Sol.  (optional)
| planets            = Number of planets in the system.
| moons              = Number of moons in the system.  (default: 0)
| asteroidbelts      = Number of asteroid belts in the system.  (default: 0)
| asteroids          = Number of asteroids which can be surveyed.  (default: 0)
| objects            = Number of artificial objects.  (default: 0)
}}

Blank Values

{{System
| name               = 
| cluster            = 
| image              = 
| image2             = 
| image3             = 
| caption            = 
| mass               = 
| massunits          = 
| class              = 
| luminosity         = 
| planets            = 
| moons              = 
| asteroidbelts      = 
| asteroids          = 
| objects            = 
}}
Community content is available under CC-BY-SA unless otherwise noted.