Difference between revisions of "Template:Infobox Government"

From Holocron - Star Wars Combine
Jump to: navigation, search
(Revamped template to use optional, collapsible data fields and to be more flexible.)
Line 1: Line 1:
{|table border="0" cellspacing="0" cellpadding="4px" margin: "0" style="border: 1px solid grey; padding: 1px; margin: 4px; width: 25%; float: right; font-size: 10px;"
+
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 25%; float: right; font-size: 11px;">
width="100%" colspan="2" style="background-color: #21314c; color: #FFFFFF; font-size: 13px; text-align: center;" | '''{{{name}}}'''
+
<tr>
|-
+
<td width="100%" colspan="2" style="background-color: #21314c; font-size: 16px; text-align: center;"> '''{{{name}}}'''
| width="100%" colspan="2" style="text-align: center;" | {{{image}}}
+
</td></tr>
|-
+
<tr>
| class="infoboxsubheading" colspan="2" style="background: #21314c" | '''Political information'''
+
<td width="100%" colspan="2" style="text-align: center;"> {{{image}}}
|-
+
</td></tr>
width="31%" | Government System
+
<tr>
width="69%" | {{{government system}}}
+
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Political information'''
|-
+
</td></tr>
width="31%" | Head of State
+
{{#if:{{{motto|}}}|<tr>
width="69%" | {{{hos}}}
+
<td width="31%" valign="top"> Motto
|-
+
</td><td width="69%"> {{{motto}}}
width="31%" | Head of Government
+
</td></tr>}}
width="69%" | {{{hog}}}
+
<tr>
|-
+
<td width="31%" valign="top"> Head of State
width="31%" | Commander-in-Chief
+
</td><td width="69%"> {{{hos}}}
width="69%" | {{{cic}}}
+
</td></tr>
|-
+
{{#if:{{{hog|}}}|<tr>
width="31%" | Executive branch
+
<td width="31%" valign="top"> Head-of-Government
width="69%" | {{{execbranch}}}
+
</td><td width="69%"> {{{hog}}}
|-
+
</td></tr>}}
width="31%" | Legislative branch
+
{{#if:{{{cic|}}}|<tr>
width="69%" | {{{legbranch}}}
+
<td width="31%" valign="top"> Commander-in-Chief
|-
+
</td><td width="69%"> {{{cic}}}
|  width="31%" | Judicial branch
+
</td></tr>}}
|  width="69%" | {{{judbranch}}}
+
{{#if:{{{execbranch|}}}|<tr>
|-
+
<td width="31%" valign="top"> Executive branch
width="31%" | Affiliation
+
</td><td width="69%"> {{{execbranch}}}
width="69%" | {{{affiliation}}}
+
</td></tr>}}
|-
+
{{#if:{{{legbranch|}}}|<tr>
| class="infoboxsubheading" colspan="2" style="background: #21314c" | '''Societal information'''
+
<td width="31%" valign="top"> Legislative branch
|-
+
</td><td width="69%"> {{{legbranch}}}
width="31%" | Territory
+
</td></tr>}}
width="69%" | {{{territory}}}
+
{{#if:{{{judbranch|}}}|<tr>
|-
+
<td width="31%" valign="top"> Judicial branch
width="31%" | Capital
+
</td><td width="69%"> {{{judbranch}}}
width="69%" | {{{capital}}}
+
</td></tr>}}
|-
+
<tr>
width="31%" | Official language
+
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Societal information'''
width="69%" | {{{language }}}
+
</td></tr>
|-
+
<tr>
width="31%" | Currency
+
<td width="31%" valign="top"> Territory
width="69%" | {{{currency }}}
+
</td><td width="69%"> {{{territory}}}
|-
+
</td></tr>
| class="infoboxsubheading" colspan="2" style="background: #21314c" | '''Historical information'''
+
<tr>
|-
+
<td width="31%" valign="top"> Capital
width="31%" | Formed from
+
</td><td width="69%"> {{{capital}}}
width="69%" | {{{from}}}
+
</td></tr>
|-
+
{{#if:{{{language|}}}|<tr>
width="31%" | Date of establishment
+
<td width="31%" valign="top"> Language(s)
width="69%" | {{{DOE}}}
+
</td><td width="69%"> {{{language}}}
|-
+
</td></tr>}}
width="31%" | Date of dissolution
+
{{#if:{{{currency|}}}|<tr>
width="69%" | {{{DOD}}}
+
<td width="31%" valign="top"> Currency
|-
+
</td><td width="69%"> {{{currency}}}
width="31%" | Status
+
</td></tr>}}
width="69%" | {{{status}}}
+
<tr>
|-
+
<td width="100%" colspan="2" style="background-color: #21314c;"> '''Historical Information'''
width="31%" | Holosite
+
</td></tr>
width="69%" | {{{holosite}}}
+
<tr>
|}
+
<td width="31%" valign="top"> Status
 +
</td><td width="69%"> {{{status}}}
 +
</td></tr>
 +
{{#if:{{{from|}}}|<tr>
 +
<td width="31%" valign="top"> Formed from
 +
</td><td width="69%"> {{{from}}}
 +
</td></tr>}}
 +
<tr>
 +
<td width="31%" valign="top"> Founded
 +
</td><td width="69%"> {{{founded}}}
 +
</td></tr>
 +
{{#if:{{{dissolved|}}}|<tr>
 +
<td width="31%" valign="top"> Dissolved
 +
</td><td width="69%"> {{{dissolved}}}
 +
</td></tr>}}
 +
<tr>
 +
<td width="31%" valign="top"> Affiliation
 +
</td><td width="69%"> {{{affiliation}}}
 +
</td></tr>
 +
{{#if:{{{industry|}}}|<tr>
 +
<td width="31%" valign="top"> Industry
 +
</td><td width="69%"> {{{industry}}}
 +
</td></tr>}}
 +
<tr>
 +
<td width="31%" valign="top"> Holosite
 +
</td><td width="69%"> {{{holosite}}}
 +
</td></tr>
 +
</table>
  
 +
<noinclude>
 +
===Usage===
  
 +
The Infobox Government template is used for government articles only, to describe a government. Paste the following code into the top of an article, filling all known fields:
  
<noinclude>
 
==Usage==
 
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Infobox Government
 
{{Infobox Government
 
| name =  
 
| name =  
 
| image =  
 
| image =  
| government system =  
+
| motto =
| hos =  
+
| status =  
| hog =  
+
| leader =  
| cic =  
+
| 2ic =  
| execbranch =  
+
| owner =  
| legbranch =  
+
| headquarters =  
| judbranch =  
+
| from =
 +
| founded =
 +
| dissolved =  
 
| affiliation =  
 
| affiliation =  
| territory =
+
| industry =  
| capital =
 
| language =
 
| currency =
 
| from =
 
| DOE =
 
| DOD =
 
| status =  
 
 
| holosite =
 
| holosite =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
[[Category: Templates|{{PAGENAME}}]]
+
[[Category:Templates|{{PAGENAME}}]]</noinclude>
</noinclude>
 

Revision as of 22:04, 21 June 2012

{{{name}}}
{{{image}}}
Political information
Head of State {{{hos}}}
Societal information
Territory {{{territory}}}
Capital {{{capital}}}
Historical Information
Status {{{status}}}
Founded {{{founded}}}
Affiliation {{{affiliation}}}
Holosite {{{holosite}}}


Usage

The Infobox Government template is used for government articles only, to describe a government. Paste the following code into the top of an article, filling all known fields:

{{Infobox Government
| name = 
| image = 
| motto =
| status = 
| leader = 
| 2ic = 
| owner = 
| headquarters = 
| from = 
| founded = 
| dissolved = 
| affiliation = 
| industry = 
| holosite =
}}