Difference between revisions of "Template:Government"
(Updated sidebar template coding; added more information to template page to facilitate usage) |
|||
Line 7: | Line 7: | ||
{{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; border-top: 1px solid #444; color: #444; font-size:smaller; text-align: center;"}}} {{!}} {{{image}}}}} | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; border-top: 1px solid #444; color: #444; font-size:smaller; text-align: center;"}}} {{!}} {{{image}}}}} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{caption|}}}| |
− | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; color: #444; font-size:smaller; text-align: center;"}}} {{!}} <font size="1">{{{ | + | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; color: #444; font-size:smaller; text-align: center;"}}} {{!}} <font size="1">{{{caption}}}</font>}} |
|- | |- | ||
− | | | + | {{#if: {{{founded|}}}| |
+ | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Founded: | ||
+ | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
+ | {{{founded}}}}} | ||
|- | |- | ||
{{#if: {{{location|}}}| | {{#if: {{{location|}}}| | ||
Line 16: | Line 19: | ||
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
{{{location}}}}} | {{{location}}}}} | ||
+ | |- | ||
+ | {{#if: {{{affiliation|}}}| | ||
+ | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Affiliation: | ||
+ | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
+ | {{{affiliation}}}}} | ||
|- | |- | ||
{{#if: {{{capital|}}}| | {{#if: {{{capital|}}}| | ||
Line 22: | Line 30: | ||
{{{capital}}}}} | {{{capital}}}}} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{head of state|}}}| |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Head of State: | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Head of State: | ||
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
− | {{{ | + | {{{head of state}}}}} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{head of government|}}}| |
{{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Head of Government: | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Head of Government: | ||
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
− | {{{ | + | {{{head of government}}}}} |
|- | |- | ||
{{#if: {{{legislature|}}}| | {{#if: {{{legislature|}}}| | ||
Line 79: | Line 49: | ||
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
{{{judiciary}}}}} | {{{judiciary}}}}} | ||
+ | |- | ||
+ | {{#if: {{{major species|}}}| | ||
+ | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Major Species: | ||
+ | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
+ | {{{major species}}}}} | ||
|- | |- | ||
{{#if: {{{military|}}}| | {{#if: {{{military|}}}| | ||
− | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Military | + | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Military: |
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
{{{military}}}}} | {{{military}}}}} | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{intelligence|}}}| |
− | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Intelligence | + | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Intelligence: |
+ | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
+ | {{{intelligence}}}}} | ||
+ | |- | ||
+ | {{#if: {{{language|}}}| | ||
+ | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Language: | ||
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
− | {{{ | + | {{{language}}}}} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{currency|}}}| |
− | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} | + | {{!}} bgcolor={{{bgcolor_value|#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;"}}} {{!}} Currency: |
{{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | {{!}} bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;"}}} {{!}} | ||
− | {{{ | + | {{{currency}}}}} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{image2|}}}| |
− | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; border-top: 1px solid #444; color: #444; font-size:smaller; text-align: center;"}}} {{!}} {{{ | + | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; border-top: 1px solid #444; color: #444; font-size:smaller; text-align: center;"}}} {{!}} {{{image2}}}}} |
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{caption2|}}}| |
− | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; color: #444; font-size:smaller; text-align: center;"}}} {{!}} <font size="1">{{{ | + | {{!}} colspan="2" bgcolor={{{bgcolor_value|#bbb; style="background: #bbb; color: #444; font-size:smaller; text-align: center;"}}} {{!}} <font size="1">{{{caption2}}}</font>}} |
|- | |- | ||
|colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#313645; text-align:center; border-top: 1px solid #444;" | [[Template:Government|[Source]]] | |colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#313645; text-align:center; border-top: 1px solid #444;" | [[Template:Government|[Source]]] | ||
Line 107: | Line 87: | ||
[[Category:Governments]] | [[Category:Governments]] | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
− | < | + | |
− | + | This template is used to create standardized sidebars for all government articles. All parameters are optional except "Name"; not all will be known for each government. | |
− | + | ||
− | : | + | ==Usage== |
+ | The following code can be copied directly into the article. | ||
+ | |||
+ | <pre> | ||
+ | {{Government | ||
+ | |name = | ||
+ | |image = | ||
+ | |caption = | ||
+ | |founded = | ||
+ | |location = | ||
+ | |affiliation = | ||
+ | |capital = | ||
+ | |head of state = | ||
+ | |head of government = | ||
+ | |legislature = | ||
+ | |judiciary = | ||
+ | |major species = | ||
+ | |military = | ||
+ | |intelligence = | ||
+ | |language = | ||
+ | |currency = | ||
+ | |image2 = | ||
+ | |caption2 = | ||
+ | }}</pre> | ||
+ | |||
+ | ===Variables=== | ||
+ | ;'''Name''' : Name of the government | ||
+ | ;'''Image''' : Filename of an image. | ||
+ | ;'''Caption''' : Caption for an image. | ||
+ | ;'''Affiliation''' : Name of another government/organization over this one. | ||
+ | |||
+ | ==Example== | ||
+ | {{Government | ||
+ | |name = United Federation of Planets | ||
+ | |image = [[Image:Federation.png]] | ||
+ | |caption = Great Seal of the United Federation of Planets | ||
+ | |founded = 2161 CE ([[memoryalpha:United Earth|United Earth]], [[memoryalpha:Vulcan High Command|Vulcan High Command]], [[memoryalpha:Andorian Empire|Andorian Empire]], [[memoryalpha:Tellar Prime|Tellar]]) | ||
+ | |location = [[Alpha Quadrant]], [[Beta Quadrant]] | ||
+ | |capital = [[memoryalpha:Earth|Earth]] | ||
+ | |head of state = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] | ||
+ | |head of government = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] | ||
+ | |legislature = [[memoryalpha:Federation Council|Federation Council]] | ||
+ | |judiciary = [[memoryalpha:Federation Supreme Court|Federation Supreme Court]] | ||
+ | |major species = See [[memoryalpha:Federation members|Federation members]] | ||
+ | |military = [[Starfleet]] | ||
+ | |intelligence = [[memoryalpha:Starfleet Intelligence|Starfleet Intelligence]] | ||
+ | |currency = [[memoryalpha:Federation credit|Federation credit]] | ||
+ | |image2 = [[Image:FederationFlag.png|250px]] | ||
+ | |caption2 = The Flag of the United Federation of Planets | ||
+ | }} | ||
<pre> | <pre> | ||
{{Government | {{Government | ||
− | |name | + | |name = United Federation of Planets |
− | |image | + | |image = [[Image:Federation.png]] |
− | | | + | |caption = Great Seal of the United Federation of Planets |
− | | | + | |founded = 2161 CE ([[memoryalpha:United Earth|United Earth]], [[memoryalpha:Vulcan High Command|Vulcan High Command]], |
− | | | + | [[memoryalpha:Andorian Empire|Andorian Empire]], [[memoryalpha:Tellar Prime|Tellar]]) |
− | | | + | |location = [[Alpha Quadrant]], [[Beta Quadrant]] |
− | | | + | |capital = [[memoryalpha:Earth|Earth]] |
− | | | + | |head of state = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] |
− | | | + | |head of government = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] |
− | | | + | |legislature = [[memoryalpha:Federation Council|Federation Council]] |
− | | | + | |judiciary = [[memoryalpha:Federation Supreme Court|Federation Supreme Court]] |
− | | | + | |major species = See [[memoryalpha:Federation members|Federation members]] |
− | | | + | |military = [[Starfleet]] |
− | | | + | |intelligence = [[memoryalpha:Starfleet Intelligence|Starfleet Intelligence]] |
− | | | + | |currency = [[memoryalpha:Federation credit|Federation Credit]] |
− | | | + | |image2 = [[Image:FederationFlag.png|250px]] |
− | | | + | |caption2 = The Flag of the United Federation of Planets |
− | | | ||
− | | | ||
}}</pre> | }}</pre> | ||
+ | |||
[[Category:Infobox Templates|G]]</noinclude> | [[Category:Infobox Templates|G]]</noinclude> |
Revision as of 00:00, 20 October 2021
{{{name}}} | |
[Source] |
This template is used to create standardized sidebars for all government articles. All parameters are optional except "Name"; not all will be known for each government.
Usage
The following code can be copied directly into the article.
{{Government |name = |image = |caption = |founded = |location = |affiliation = |capital = |head of state = |head of government = |legislature = |judiciary = |major species = |military = |intelligence = |language = |currency = |image2 = |caption2 = }}
Variables
- Name
- Name of the government
- Image
- Filename of an image.
- Caption
- Caption for an image.
- Affiliation
- Name of another government/organization over this one.
Example
United Federation of Planets | |
Basic information | |
Capital(s) | |
Founded |
2161 CE (United Earth, Vulcan High Command, Andorian Empire, Tellar) |
Official Currency | |
Political Information | |
Military Branches | |
Template:Government |
{{Government |name = United Federation of Planets |image = [[Image:Federation.png]] |caption = Great Seal of the United Federation of Planets |founded = 2161 CE ([[memoryalpha:United Earth|United Earth]], [[memoryalpha:Vulcan High Command|Vulcan High Command]], [[memoryalpha:Andorian Empire|Andorian Empire]], [[memoryalpha:Tellar Prime|Tellar]]) |location = [[Alpha Quadrant]], [[Beta Quadrant]] |capital = [[memoryalpha:Earth|Earth]] |head of state = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] |head of government = [[memoryalpha:President of the United Federation of Planets|President of the United Federation of Planets]] |legislature = [[memoryalpha:Federation Council|Federation Council]] |judiciary = [[memoryalpha:Federation Supreme Court|Federation Supreme Court]] |major species = See [[memoryalpha:Federation members|Federation members]] |military = [[Starfleet]] |intelligence = [[memoryalpha:Starfleet Intelligence|Starfleet Intelligence]] |currency = [[memoryalpha:Federation credit|Federation Credit]] |image2 = [[Image:FederationFlag.png|250px]] |caption2 = The Flag of the United Federation of Planets }}