Difference between revisions of "Template:Government"

Template page
m (Colour corrections)
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly>
{| width="315" 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="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665 !important; text-align:center;padding: .3rem 1.25rem;" | '''{{{name}}}'''
<image source="image"/>
|-
<header>Basic Information</header>
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''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; width:40%;"}}} {{!}} 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; width:60%;"}}} {{!}}
<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; width:40%;"}}} {{!}} 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; width:60%;"}}} {{!}}
<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; width:40%;"}}} {{!}} Founded
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Governments]]}}
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
</includeonly>
{{{founded}}} }}
<noinclude>
|-
==Government==
{{#if: {{{warp|}}}|
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|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Warp Capable
 
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
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.
{{{warp}}} }}
|-
{{#if: {{{language|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Official Language
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{language}}} }}
|-
{{#if: {{{currency|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Official Currency
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{currency}}} }}
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Political Information'''
|-
{{#if: {{{government|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Government
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{government}}}}}
|-
{{#if: {{{leader|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Leader
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{leader}}} }}
|-
{{#if: {{{advancement|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Degree of Advancement
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{advancement}}} }}
|-
{{#if: {{{military|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Military Branches
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{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:#2a4667c9; 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:34, 15 November 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
}}