Difference between revisions of "Template:Infobox Sector"

From Holocron - Star Wars Combine
Jump to: navigation, search
(made {{{events}}} conditional)
Line 1: Line 1:
{|  style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;"
+
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;"><tr><td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;"><font color="white"><b>{{{name}}}</b></font></td></tr>
width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;" | <font color=white>'''{{{name}}}'''</font>
+
<tr><td width="100%" colspan="2" style="text-align: center;">{{{image}}}</td></tr>
|-
+
<tr><td width="100%" colspan="2" style="background-color: #21314c;"><font color=white>'''General information'''</font></td></tr>
width="100%" colspan="2" style="text-align: center;" | {{{image}}}
+
<tr><td width="31%" valign="top">Region</td><td width="69%">{{{region}}}</td></tr>
|-
+
<tr><td width="31%" valign="top">Systems</td><td width="69%">{{{systems}}}</td></tr>
width="100%" colspan="2" style="background-color: #21314c;" | <font color=white>'''General information'''</font>
+
<tr><td width="31%" valign="top">Population</td><td width="69%">{{{pop}}}</td></tr>
|-
+
{{#if:{{{events|}}}|<tr><td width="31%" valign="top">Historical Events</td><td width="69%">{{{events}}}</td></tr>}}
width="31%" valign="top" | Region
+
<tr><td width="31%" valign="top">Controlled By</td><td width="69%">{{{controller}}}</td></tr>
width="69%" | {{{region}}}
+
<tr><td width="31%" valign="top">Astrographic Entry</td><td width="69%">{{{entry}}}</td></tr>
|-
+
</table>
width="31%" valign="top" | Systems
+
 
width="69%" | {{{systems}}}
 
|-
 
width="31%" valign="top" | Population
 
width="69%" | {{{pop}}}
 
|-
 
| width="31%" valign="top" | Historical Events
 
width="69%" | {{{events}}}
 
|-
 
width="31%" valign="top" | Controlled By
 
width="69%" | {{{controller}}}
 
|-
 
width="31%" valign="top" | Astrographic Entry
 
width="69%" | {{{entry}}}
 
|}
 
 
<noinclude>
 
<noinclude>
 
===Usage===
 
===Usage===

Revision as of 17:15, 15 September 2012

{{{name}}}
{{{image}}}
General information
Region{{{region}}}
Systems{{{systems}}}
Population{{{pop}}}
Controlled By{{{controller}}}
Astrographic Entry{{{entry}}}


Usage

The Sector Box template is used for Sector pages only, to describe the Sector. Paste the following code into the top of an article, filling all known fields:

{{Infobox Sector
| name = 
| image = 
| region =
| systems = 
| pop = 
| events = 
| controller = 
| entry = 
}}