Difference between revisions of "Template:Government"

Template page
(Created page with "<div class="infobox"> {| width="275" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom: 0; {{#if: {{{image|}}}| {{!}} colspan="2" bgcolor={...")
 
m (Bringing template up to scratch with the infobox way of doing things)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly>
{| width="275" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom: 0;
<infobox theme="bravo">
{{#if: {{{image|}}}|
<title source="name">
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size:smaller; text-align: center;padding: 10px;"}}} {{!}} {{{image}}} }}
    <default>{{pagename}}</default><format>{{{name|}}}</format>
|-
</title>
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; font-size:larger; background-color:#4979b5; text-align:center; font-variant:small-caps;" | '''{{{name}}}'''
<image source="image"/>
|-
<header>Basic Information</header>
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#2862a8; text-align:center; font-size:8pt;" | '''Basic information'''
<data source="species"><label>Major Species</label><format>{{{species}}}</format></data>
|-
<data source="homeworld"><label>Homeworld(s)</label><format>{{{homeworld}}}</format></data>
{{#if: {{{species|}}}|
<data source="founded"><label>Founded</label><format>{{{founded}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Major Species:
<data source="warp"><label>Warp Capable</label><format>{{{warp}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
<data source="language"><label>Official Language(s)</label><format>{{{language}}}</format></data>
{{{species}}}}}
<data source="currency"><label>Official Currency</label><format>{{{currency}}}</format></data>
|-
<header>Political Information</header>
{{#if: {{{homeworld|}}}|
<data source="government"><label>Governance Type</label><format>{{{government}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Homeworld(s):
<data source="leader"><label>Leader</label><format>{{{leader}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
<data source="advancement"><label>Degree of Advancement</label><format>{{{advancement}}}</format></data>
{{{homeworld}}}}}
<data source="military"><label>Military Branches</label><format>{{{military}}}</format></data>
|-
<header name="footer">[[Template:Government]]</header>
{{#if: {{{founded|}}}|
</infobox>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Founded:
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Governments]]
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
}}
{{{founded}}}}}
</includeonly>
|-
<noinclude>
{{#if: {{{warp|}}}|
==Government==
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Warp Capable:
This template is to be used for governments in order to give a brief overview of the organisational entity. Can be used for smaller entities, just omit values not needed and the infobox will simply not display those rows.
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{warp}}}}}
|-
{{#if: {{{language|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Official Language:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{language}}}}}
|-
{{#if: {{{currency|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Official Currency:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}  
{{{currency}}}}}
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#2862a8; text-align:center; font-size:8pt;" | '''Political Information'''


|-
It must be entered at the top of the article, or directly after any clear commands, and entered in via the Source Editor in order to ensure it works.
{{#if: {{{government|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Government:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{government}}}}}
|-
{{#if: {{{leader|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Leader:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{leader}}}}}
|-
{{#if: {{{advancement|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Degree of Advancement:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{advancement}}}}}
|-
{{#if: {{{military|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller;"}}} {{!}} Military Branches:
{{!}} bgcolor={{{bgcolor_value|#2B2B2B style="background: #ececec; padding:8px 10px; color: #696969;; font-size:smaller;"}}} {{!}}
{{{military}}}}}
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#4979b5; text-align:center;padding: 6px 0;" | [[Template:Government]]
|}</div>
<includeonly>[[Category:Governments]]
{{DEFAULTSORT:{{PAGENAME}}}}</includeonly><noinclude>
<br clear=all>
<pre>
<pre>
{{Government
{{Government
|name=
| name =  
|image=
| image =  
|species=
| species =  
|homeworld=
| homeworld =  
|founded=
| founded =  
|warp=
| warp =  
|language=
| language =  
|currency=
| currency =  
|government=
| government =  
|leader=
| leader =  
|advancement=
| advancement =  
|military=
| military =  
}}</pre>
}}
[[Category:Infobox Templates|{{PAGENAME}}]]
</pre>
 
==Example==
{{Government
| name = People's Collective Union of Democratic Socialist Republics
| image =
| species = The Proletariat
| homeworld = Worker's Paradise
| founded = 1917
| warp = Whatever the needs of the People require
| language = The will of the Masses
| currency = The Needs of the People
| government = Socialist Republic
| leader = Secretary General Elmo
| advancement = Better then yours bucko
| military = People's Liberation and Defensive Organisation
| templatemode = nocats
}}
The following code block produces the infobox to the right.
<pre>
{{Government
| name = People's Collective Union of Democratic Socialist Republics
| image =
| species = The Proletariat
| homeworld = Worker's Paradise
| founded = 1917
| warp = Whatever the needs of the People require
| language = The will of the Masses
| currency = The Needs of the People
| government = Socialist Republic
| leader = Secretary General Elmo
| advancement = Better then yours bucko
| military = People's Liberation and Defensive Organisation
}}
</pre>
[[Category:Infobox Templates]]
{{clear}}
</noinclude>
</noinclude>

Latest revision as of 02:01, 18 August 2024


Government

This template is to be used for governments in order to give a brief overview of the organisational entity. Can be used for smaller entities, just omit values not needed and the infobox will simply not display those rows.

It must be entered at the top of the article, or directly after any clear commands, and entered in via the Source Editor in order to ensure it works.

{{Government
| name = 
| image = 
| species = 
| homeworld = 
| founded = 
| warp = 
| language = 
| currency = 
| government = 
| leader = 
| advancement = 
| military = 
}}

Example


The following code block produces the infobox to the right.

{{Government
| name = People's Collective Union of Democratic Socialist Republics
| image =
| species = The Proletariat 
| homeworld = Worker's Paradise
| founded = 1917
| warp = Whatever the needs of the People require
| language = The will of the Masses
| currency = The Needs of the People
| government = Socialist Republic
| leader = Secretary General Elmo
| advancement = Better then yours bucko
| military = People's Liberation and Defensive Organisation
}}