Difference between revisions of "Template:Infobox Government"
Rupert Havok (talk | contribs) |
Rupert Havok (talk | contribs) (Revamped template to use optional, collapsible data fields and to be more flexible.) |
||
Line 1: | Line 1: | ||
− | + | <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;"> '''{{{name}}}''' | |
− | + | </td></tr> | |
− | + | <tr> | |
− | + | <td width="100%" colspan="2" style="text-align: center;"> {{{image}}} | |
− | | | + | </td></tr> |
− | + | <tr> | |
− | + | <td width="100%" colspan="2" style="background-color: #21314c;"> '''Political information''' | |
− | + | </td></tr> | |
− | + | {{#if:{{{motto|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Motto | |
− | | | + | </td><td width="69%"> {{{motto}}} |
− | + | </td></tr>}} | |
− | + | <tr> | |
− | | | + | <td width="31%" valign="top"> Head of State |
− | + | </td><td width="69%"> {{{hos}}} | |
− | + | </td></tr> | |
− | | | + | {{#if:{{{hog|}}}|<tr> |
− | + | <td width="31%" valign="top"> Head-of-Government | |
− | + | </td><td width="69%"> {{{hog}}} | |
− | | | + | </td></tr>}} |
− | + | {{#if:{{{cic|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Commander-in-Chief | |
− | + | </td><td width="69%"> {{{cic}}} | |
− | + | </td></tr>}} | |
− | + | {{#if:{{{execbranch|}}}|<tr> | |
− | | | + | <td width="31%" valign="top"> Executive branch |
− | + | </td><td width="69%"> {{{execbranch}}} | |
− | + | </td></tr>}} | |
− | + | {{#if:{{{legbranch|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Legislative branch | |
− | + | </td><td width="69%"> {{{legbranch}}} | |
− | + | </td></tr>}} | |
− | + | {{#if:{{{judbranch|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Judicial branch | |
− | + | </td><td width="69%"> {{{judbranch}}} | |
− | + | </td></tr>}} | |
− | | | + | <tr> |
− | + | <td width="100%" colspan="2" style="background-color: #21314c;"> '''Societal information''' | |
− | + | </td></tr> | |
− | | | + | <tr> |
− | + | <td width="31%" valign="top"> Territory | |
− | + | </td><td width="69%"> {{{territory}}} | |
− | + | </td></tr> | |
− | + | <tr> | |
− | | | + | <td width="31%" valign="top"> Capital |
− | + | </td><td width="69%"> {{{capital}}} | |
− | + | </td></tr> | |
− | | | + | {{#if:{{{language|}}}|<tr> |
− | + | <td width="31%" valign="top"> Language(s) | |
− | + | </td><td width="69%"> {{{language}}} | |
− | + | </td></tr>}} | |
− | + | {{#if:{{{currency|}}}|<tr> | |
− | + | <td width="31%" valign="top"> Currency | |
− | | | + | </td><td width="69%"> {{{currency}}} |
− | + | </td></tr>}} | |
− | + | <tr> | |
− | + | <td width="100%" colspan="2" style="background-color: #21314c;"> '''Historical Information''' | |
− | + | </td></tr> | |
− | + | <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: | ||
− | |||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
{{Infobox Government | {{Infobox Government | ||
| name = | | name = | ||
| image = | | image = | ||
− | | | + | | motto = |
− | | | + | | status = |
− | | | + | | leader = |
− | | | + | | 2ic = |
− | | | + | | owner = |
− | | | + | | headquarters = |
− | | | + | | from = |
+ | | founded = | ||
+ | | dissolved = | ||
| affiliation = | | affiliation = | ||
− | | | + | | industry = |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| 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 = }}