Template:SystemInfobox: Difference between revisions

m Fixed unit and variable
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>{{#infoboxbuilder:
<infobox theme="portInfobox">
| 0:Theme = eInfobox | 0:CustomModule = Module:SystemInfobox
<title><default>{{PAGENAME}}</default></title>
| 1:Type = Title | 1:Label = NULL
<image source="image"><default>Placeholder.png</default></image>
| 1:Value = {{PAGENAME}}
<group>
| 2:Type = MainImage | 2:Label = NULL | 2:ValueMethod = MainImage
    <header>Summary</header>
| 2:Value = {{{image|Placeholder.png}}}
    <data source="controller"><label>Controlling Faction</label></data>
| 3:Type = Line | 3:Label = Controlling Faction
    <data source="government"><label>Government</label></data>
| 3:Value = {{{controller|---}}}
    <data source="allegiance"><label>Allegiance</label><format>{{#switch: {{{allegiance}}}
| 4:Type = Line | 4:Label = Government
| Alliance = [[File:Alliance_vector.svg|27px|link=]] [[Alliance]]
| 4:Value = {{{government|---}}}
| Empire = [[File:Empire_vector.svg|27px|link=]] [[Empire]]
| 5:Type = Line | 5:Label = Allegiance | 5:ValueMethod = Allegiance
| Federation = [[File:Federation_vector.svg|27px|link=]] [[Federation]]
| 5:Value = {{{allegiance|}}}
| Independent = [[File:Independent icon small.png|27px|link=]] [[Independent]]
| 6:Type = Line | 6:Label = Population
| Pilots Federation = [[File:Pilots Federation allegiance icon.png|27px|link=]] [[Pilots Federation]]
| 6:Value = {{{population|---}}}
| None = None
| 7:Type = Line | 7:Label = Security
| #default = [[{{{allegiance}}}]]
| 7:Value = {{{security|}}}
}}</format></data>
 
    <data source="population"><label>Population</label></data>
| 8:Type = Header | 8:Label = NULL | 8:Value = Powerplay
    <data source="security"><label>Security</label></data>
| 9:Type = Line | 9:Label = Power | 9:ValueMethod = Power
    <data source="economy"><label>Economy</label></data>
| 9:Value = {{{power|}}}
</group>
| 10:Type = Line | 10:Label = Type | 10:ValueMethod = Quantify | 10:Unit = system
<group>
| 10:Value = {{{powertype|}}}
    <header>Powerplay</header>
}}<includeonly>
    <data source="power"><label>Power</label><format>{{#switch: {{{power}}}
| Archon Delaine = [[File:Archon_Delaine_vector.svg|27px|link=]]
| Aisling Duval = [[File:Aisling Duval_vector.svg|27px|link=]]
| Arissa Lavigny-Duval = [[File:A Lavigny Duval_vector.svg|27px|link=]]
| Denton Patreus = [[File:Denton Patreus_vector.svg|27px|link=]]
| Edmund Mahon = [[File:Edmund_Mahon_vector.svg|27px|link=]]
| Felicia Winters = [[File:Felicia Winters_vector.svg|27px|link=]]
| Li Yong-Rui = [[File:Li Yong Rui_vector.svg|27px|link=]]
| Pranav Antal = [[File:Pranav Antal_vector.svg|27px|link=]]
| Yuri Grom = [[File:GromLogo.png|27px|link=]]
| Zachary Hudson = [[File:Zachary Hudson_vector.svg|27px|link=]]
| Zemina Torval = [[File:Zemina Torval_vector.svg|27px|link=]]
}} [[{{{power}}}]]</format></data>
    <data source="powertype"><label>Type</label><format>{{{powertype}}} system</format></data>
</group>
<group>
    <header>Engineering</header>
    <data source="engineer"><label>Engineer</label><format>[[{{{engineer}}}]]</format></data>
    <data source="engshop"><label>Workshop</label></data>
    <data source="engloc"><label>Location</label></data>
</group>
</infobox><includeonly>
{{#if: {{NAMESPACE}} ||[[Category:Star systems]]}}
{{#if: {{NAMESPACE}} ||[[Category:Star systems]]}}
</includeonly></onlyinclude>
</includeonly><noinclude>
<noinclude>
<pre style="width: 300px">
<pre style="width: 300px">
{{SystemInfobox
{{SystemInfobox
| image      =
| controller =  
| controller =  
| government =  
| government =  
Line 32: Line 53:
| population =  
| population =  
| security  =  
| security  =  
| economy    =
| power      =  
| power      =  
| powertype  =
| powertype  =
| engineer  =
| engshop    =
| engloc    =  
}}
}}
</pre>
</pre>
 
[[Category:Infobox templates|{{PAGENAME}}]]
;powertype: Can be either Control or Exploited.
</noinclude>
</noinclude>