Difference between revisions of "Template:Species"

Template page
(Updating the template to the new standard. Adding in switch values for categories based on quadrant and affiliation.)
m (Protected "Template:Species" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
{{#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" | '''Information'''
|-
{{#if: {{{star system|}}}|
{{!}} class="ibleft" {{!}} Star System
{{!}} class="ibright" {{!}}
{{{star system}}} }}
|-
{{#if: {{{sector|}}}|
{{!}} class="ibleft" {{!}} Sector
{{!}} class="ibright" {{!}}
{{{sector}}} }}
|-
{{#if: {{{region|}}}|
{{!}} class="ibleft" {{!}} Region
{{!}} class="ibright" {{!}}
{{{region}}} }}
|-
{{#if: {{{quadrant|}}}|
{{!}} class="ibleft" {{!}} Quadrant
{{!}} class="ibright" {{!}}
{{{quadrant}}} }}
|-
{{#if: {{{class|}}}|
{{!}} class="ibleft" {{!}} Classification
{{!}} class="ibright" {{!}}
{{{class}}} }}
|-
{{#if: {{{discovery date|}}}|
{{!}} class="ibleft" {{!}} First Contact
{{!}} class="ibright" {{!}}
{{{discovery date}}} }}
|-
{{#if: {{{extinction date|}}}{{{affiliation|}}}{{{political system|}}}{{{population|}}}{{{type|}}}{{{atmosphere type|}}}{{{development stage|}}}{{{character|}}}|
{{!}} class="ibheader" colspan="2" {{!}} '''Political Information'''
}}
|-
{{#if: {{{extinction date|}}}|
{{!}} class="ibleft" {{!}} Extinction Date
{{!}} class="ibright" {{!}}
{{{extinction date}}} }}
|-
{{#if: {{{affiliation|}}}|
{{!}} class="ibleft" {{!}} Affiliation
{{!}} class="ibright" {{!}}
{{{affiliation}}} }}
|-
{{#if: {{{political system|}}}|
{{!}} class="ibleft" {{!}} Political System
{{!}} class="ibright" {{!}}
{{{political system}}} }}
|-
{{#if: {{{population|}}}|
{{!}} class="ibleft" {{!}} Total Population
{{!}} class="ibright" {{!}}
{{{population}}} }}
|-
{{#if: {{{type|}}}|
{{!}} class="ibleft" {{!}} Type
{{!}} class="ibright" {{!}}
{{{type}}} }}
|-
{{#if: {{{atmosphere type|}}}|
{{!}} class="ibleft" {{!}} Atmospheric Requirements
{{!}} class="ibright" {{!}}
{{{atmosphere type}}} }}
|-
{{#if: {{{development stage|}}}|
{{!}} class="ibleft" {{!}} Development Stage
{{!}} class="ibright" {{!}}
{{{development stage}}} }}
|-
{{#if: {{{character|}}}|
{{!}} class="ibleft" {{!}} Personality
{{!}} class="ibright" {{!}}
{{{character}}} }}
|-
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Species]]
|}</div>
<includeonly>
<includeonly>
<infobox theme="bravo">
<title source="name">
<default>{{PAGENAME}}</default><format>'''{{{name|}}}'''</format>
</title>
<image source="image"/>
<header>Stellar Information</header>
<data source="homeworld"><label>Mandate</label></data>
<data source="star system"><label>Mandate</label></data>
<data source="sector"><label>Mandate</label></data>
<data source="region"><label>Mandate</label></data>
<data source="quadrant"><label>Mandate</label></data>
<header>Political Information</header>
<data source="discovery date"><label>First Contact</label></data>
<data source="extinction date"><label>Extinction Date</label></data>
<data source="affiliation"><label>Affiliation</label></data>
<data source="political system"><label>Political System</label></data>
<data source="population"><label>Total Population</label></data>
<data source="type"><label>Species Type</label></data>
<data source="atmosphere type"><label>Atmospheric Requirements</label></data>
<data source="development stage"><label>Development Stage</label></data>
<data source="character"><label>Personality</label></data>
<data source="discovery date"><label>Commander</label></data>
<data source="discovery date"><label>Commander</label></data>
<header name="footer">[[Template:Species]]</header>
</infobox>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Species]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Species]]{{DEFAULTSORT:{{{name}}}}}
{{#switch:{{{quadrant|}}}   
{{#switch:{{{quadrant|}}}   
Line 92: Line 30:
   |Alpha
   |Alpha
   |[[Alpha Quadrant]]
   |[[Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant Astrometrics Database]][[Category:Alpha Quadrant]]
   |Alpha Quadrant      = [[Category:Alpha Quadrant]]
   |beta
   |beta
   |Beta
   |Beta
   |[[Beta Quadrant]]
   |[[Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant Astrometrics Database]][[Category:Beta Quadrant]]
   |Beta Quadrant      = [[Category:Beta Quadrant]]
   |gamma
   |gamma
   |Gamma
   |Gamma
   |[[Gamma Quadrant]]
   |[[Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant Astrometrics Database]][[Category:Gamma Quadrant]]
   |Gamma Quadrant      = [[Category:Gamma Quadrant]]
   |delta
   |delta
   |Delta
   |Delta
   |[[Delta Quadrant]]
   |[[Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant Astrometrics Database]][[Category:Delta Quadrant]]
   |Delta Quadrant      = [[Category:Delta Quadrant]]
}}
}}
{{#switch:{{{affiliation|}}}   
{{#switch:{{{affiliation|}}}   
Line 168: Line 106:
| image =
| image =
| name =
| name =
| homeworld =
| star system =
| star system =
| sector =
| sector =
| region =
| quadrant =
| quadrant =
| class =
| discovery date =
| discovery date =
| extinction date =
| extinction date =
| affiliation =
| affiliation =
| capital =
| political system =
| political system =
| population =
| population =
Line 183: Line 121:
| character = Aggressive/Peaceful/.etc
| character = Aggressive/Peaceful/.etc
}}</pre>  
}}</pre>  
{{clear}}
{{clear}}
[[Category:Infobox Templates]]
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Latest revision as of 07:46, 6 June 2024


Species

Infobox for species
{{Species
| image =
| name =
| homeworld = 
| star system =
| sector =
| region = 
| quadrant =
| discovery date =
| extinction date =
| affiliation =
| political system =
| population =
| type = Humanoid .etc
| atmosphere type = Oxygen/Chlorine/Methane/.etc
| development stage = Medieval/Warp capable/.etc
| character = Aggressive/Peaceful/.etc
}}