Wikia

Memory Alpha

Changes: Template:Sidebar government

edit this page

Back to page

m (update)
(CSS update; using sidebar image)
Line 4: Line 4:
 
|-
 
|-
 
{{#if:{{{image-top|}}}|
 
{{#if:{{{image-top|}}}|
{{!}} class="sb-both" colspan="2" {{!}} [[File:{{{image-top}}}|thumb|{{{caption-top}}}]]{{{caption-top}}}
+
{{!}} class="sb-both" colspan="2" {{!}} {{sidebar image|{{{image-top}}}|{{{caption-top}}}}}{{{caption-top}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{founded|}}}|
 
{{#if:{{{founded|}}}|
{{!}}class=odd{{!}}'''Founded:'''
+
{{!}}class="sb-left"{{!}}'''Founded:'''
{{!}}class=even{{!}}{{{founded}}}
+
{{!}}class="sb-right"{{!}}{{{founded}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{dissolved|}}}|
 
{{#if:{{{dissolved|}}}|
{{!}}class=odd{{!}}'''Dissolved:'''
+
{{!}}class="sb-left"{{!}}'''Dissolved:'''
{{!}}class=even{{!}}{{{dissolved}}}
+
{{!}}class="sb-right"{{!}}{{{dissolved}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{location|}}}|
 
{{#if:{{{location|}}}|
{{!}}class=odd{{!}}'''Location:'''
+
{{!}}class="sb-left"{{!}}'''Location:'''
{{!}}class=even{{!}}{{{location}}}
+
{{!}}class="sb-right"{{!}}{{{location}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{affiliation|}}}|
 
{{#if:{{{affiliation|}}}|
{{!}}class=odd{{!}}'''Affiliation:'''
+
{{!}}class="sb-left"{{!}}'''Affiliation:'''
{{!}}class=even{{!}}{{{affiliation}}}
+
{{!}}class="sb-right"{{!}}{{{affiliation}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{capital|}}}|
 
{{#if:{{{capital|}}}|
{{!}}class=odd{{!}}'''Capital:'''
+
{{!}}class="sb-left"{{!}}'''Capital:'''
{{!}}class=even{{!}}{{{capital}}}
+
{{!}}class="sb-right"{{!}}{{{capital}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{head of state|}}}|
 
{{#if:{{{head of state|}}}|
{{!}}class=odd{{!}}'''Head of State:'''
+
{{!}}class="sb-left"{{!}}'''Head of State:'''
{{!}}class=even{{!}}{{{head of state}}}
+
{{!}}class="sb-right"{{!}}{{{head of state}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{head of government|}}}|
 
{{#if:{{{head of government|}}}|
{{!}}class=odd{{!}}'''Head of Government:'''
+
{{!}}class="sb-left"{{!}}'''Head of Government:'''
{{!}}class=even{{!}}{{{head of government}}}
+
{{!}}class="sb-right"{{!}}{{{head of government}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{legislature|}}}|
 
{{#if:{{{legislature|}}}|
{{!}}class=odd{{!}}'''Legislature:'''
+
{{!}}class="sb-left"{{!}}'''Legislature:'''
{{!}}class=even{{!}}{{{legislature}}}
+
{{!}}class="sb-right"{{!}}{{{legislature}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{judiciary|}}}|
 
{{#if:{{{judiciary|}}}|
{{!}}class=odd{{!}}'''Judiciary:'''
+
{{!}}class="sb-left"{{!}}'''Judiciary:'''
{{!}}class=even{{!}}{{{judiciary}}}
+
{{!}}class="sb-right"{{!}}{{{judiciary}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{major species|}}}|
 
{{#if:{{{major species|}}}|
{{!}}class=odd{{!}}'''Major Species:'''
+
{{!}}class="sb-left"{{!}}'''Major Species:'''
{{!}}class=even{{!}}{{{major species}}}
+
{{!}}class="sb-right"{{!}}{{{major species}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{military|}}}|
 
{{#if:{{{military|}}}|
{{!}}class=odd{{!}}'''Military:'''
+
{{!}}class="sb-left"{{!}}'''Military:'''
{{!}}class=even{{!}}{{{military}}}
+
{{!}}class="sb-right"{{!}}{{{military}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{intelligence service|}}}|
 
{{#if:{{{intelligence service|}}}|
{{!}}class=odd{{!}}'''Intelligence Service:'''
+
{{!}}class="sb-left"{{!}}'''Intelligence Service:'''
{{!}}class=even{{!}}{{{intelligence service}}}
+
{{!}}class="sb-right"{{!}}{{{intelligence service}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{language|}}}|
 
{{#if:{{{language|}}}|
{{!}}class=odd{{!}}'''Language:'''
+
{{!}}class="sb-left"{{!}}'''Language:'''
{{!}}class=even{{!}}{{{language}}}
+
{{!}}class="sb-right"{{!}}{{{language}}}
 
}}
 
}}
|- valign=top
+
|-
 
{{#if:{{{currency|}}}|
 
{{#if:{{{currency|}}}|
{{!}}class=odd{{!}}'''Currency:'''
+
{{!}}class="sb-left"{{!}}'''Currency:'''
{{!}}class=even{{!}}{{{currency}}}
+
{{!}}class="sb-right"{{!}}{{{currency}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{image-bottom|}}}|
 
{{#if:{{{image-bottom|}}}|
{{!}} class="sb-both" colspan="2" {{!}} [[File:{{{image-bottom}}}|thumb|{{{caption-bottom}}}]]{{{caption-bottom}}}
+
{{!}} class="sb-both" colspan="2" {{!}} {{sidebar image|{{{image-bottom}}}|{{{caption-bottom}}}}}{{{caption-bottom}}}
 
}}
 
}}
 
|}</includeonly><noinclude>{{doc}}</noinclude>
 
|}</includeonly><noinclude>{{doc}}</noinclude>

Revision as of 11:55, February 3, 2010

The following documentation is transcluded from Template:Sidebar government/doc:

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.

{{Sidebar government
|name                 = 
|image                = 
|imagecap             = 
|format-top           = 
|image2               = 
|imagecap2            = 
|format-bottom        = 
|founded              = 
|location             = 
|affiliation          = 
|capital              = 
|head of state        = 
|head of government   = 
|legislature          = 
|judiciary            = 
|major species        = 
|military             = 
|intelligence service = 
|language             = 
|currency             = 
}}

Variables

Name 
Name of the government
Image-... 
Filename of an image, without the "File:/File:" namespace prefix.
Caption-... 
Caption for an image.
Format-... 
For size adjustments, the default is set to 'halfwidth', for full sized images add "F".
Affiliation 
Name of another government/organization over this one.

Example

United Federation of Planets

Great Seal of the United Federation of Planets

Great Seal of the United Federation of Planets
Founded: 2161 (United Earth, Vulcan, Andorian Empire, Tellar)
Location: Alpha Quadrant, Beta Quadrant
Capital: Earth
Head of State: President of the United Federation of Planets
Head of Government: President of the United Federation of Planets
Legislature: Federation Council
Judiciary: Federation Supreme Court
Major Species: See Federation members
Military: Starfleet
Intelligence Service: Starfleet Intelligence
Currency: Federation credit

The Flag of the United Federation of Planets

The Flag of the United Federation of Planets
{{Sidebar government
|name                 = United Federation of Planets
|image                = United Federation of Planets logo.svg
|imagecap             = Great Seal of the United Federation of Planets
|image2               = United Federation of Planets flag.svg
|imagecap2            = The [[Flag of the United Federation of Planets]]
|format-bottom        = F
|founded              = [[2161]] 
([[United Earth]], [[Vulcan (planet)|Vulcan]], [[Andorian Empire]], [[Tellar]])
|location             = [[Alpha Quadrant]], [[Beta Quadrant]]
|affiliation          = 
|capital              = [[Earth]]
|head of state        = [[President of the United Federation of Planets]]
|head of government   = [[President of the United Federation of Planets]]
|legislature          = [[Federation Council]]
|judiciary            = [[Federation Supreme Court]]
|major species        = See [[Federation members]]
|military             = [[Federation Starfleet]]
|intelligence service = [[Starfleet Intelligence]]
|language             = 
|currency             = [[Federation credit]]
}}

Around Wikia's network

Random Wiki