Difference between revisions of "Template:Government"

Template page
m (Updating template to the new standard. Adding in the templatemode tag and putting it in the example to remove the template from the category page.)
m (Bringing template up to scratch with the infobox way of doing things)
 
Line 1: Line 1:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
    {{!}}-
    {{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''|
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}'''
}}
|-
| class="ibheader" colspan="2" | '''Basic Information'''
|-
{{#if: {{{species|}}}|
{{!}} class="ibleft" {{!}} Major Species
{{!}} class="ibright" {{!}}
{{{species}}} }}
|-
{{#if: {{{homeworld|}}}|
{{!}} class="ibleft" {{!}} Homeworld(s)
{{!}} class="ibright" {{!}}
{{{homeworld}}} }}
|-
{{#if: {{{founded|}}}|
{{!}} class="ibleft" {{!}} Founded
{{!}} class="ibright" {{!}}
{{{founded}}} }}
|-
{{#if: {{{warp|}}}|
{{!}} class="ibleft" {{!}} Warp Capable
{{!}} class="ibright" {{!}}
{{{warp}}} }}
|-
{{#if: {{{language|}}}|
{{!}} class="ibleft" {{!}} Official Language
{{!}} class="ibright" {{!}}
{{{language}}} }}
|-
{{#if: {{{currency|}}}|
{{!}} class="ibleft" {{!}} Official Currency
{{!}} class="ibright" {{!}}
{{{currency}}} }}
|-
| class="ibheader" colspan="2" | '''Political Information'''
|-
{{#if: {{{government|}}}|
{{!}} class="ibleft" {{!}} Governance Type
{{!}} class="ibright" {{!}}
{{{government}}}}}
|-
{{#if: {{{leader|}}}|
{{!}} class="ibleft" {{!}} Leader
{{!}} class="ibright" {{!}}
{{{leader}}} }}
|-
{{#if: {{{advancement|}}}|
{{!}} class="ibleft" {{!}} Degree of Advancement
{{!}} class="ibright" {{!}}
{{{advancement}}} }}
|-
{{#if: {{{military|}}}|
{{!}} class="ibleft" {{!}} Military Branches
{{!}} class="ibright" {{!}}
{{{military}}} }}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Government]]
|}
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Governments]]{{DEFAULTSORT:{{{name}}}}}
<infobox theme="bravo">
<title source="name">
    <default>{{pagename}}</default><format>{{{name|}}}</format>
</title>
<image source="image"/>
<header>Basic Information</header>
<data source="species"><label>Major Species</label><format>{{{species}}}</format></data>
<data source="homeworld"><label>Homeworld(s)</label><format>{{{homeworld}}}</format></data>
<data source="founded"><label>Founded</label><format>{{{founded}}}</format></data>
<data source="warp"><label>Warp Capable</label><format>{{{warp}}}</format></data>
<data source="language"><label>Official Language(s)</label><format>{{{language}}}</format></data>
<data source="currency"><label>Official Currency</label><format>{{{currency}}}</format></data>
<header>Political Information</header>
<data source="government"><label>Governance Type</label><format>{{{government}}}</format></data>
<data source="leader"><label>Leader</label><format>{{{leader}}}</format></data>
<data source="advancement"><label>Degree of Advancement</label><format>{{{advancement}}}</format></data>
<data source="military"><label>Military Branches</label><format>{{{military}}}</format></data>
<header name="footer">[[Template:Government]]</header>
</infobox>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Governments]]
}}
}}
</includeonly><noinclude>
</includeonly>
<noinclude>
==Government==
==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.
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.

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
}}