Template:Species: Difference between revisions

From Distant Sands 11
Jump to navigationJump to search
Created page with "<infobox theme="Species"> <image source="imagefallback"> <default>{{InfoboxGallery|image={{{image|}}}|caption1={{{option1|}}}|image2={{{image2|}}}|caption2={{{option2|}}}|image3={{{image3|}}}|caption3={{{option3|}}}}}</default> </image> <title source="name"></title> <navigation name="mobile-eras"><center>{{Top-mobile}}</center></navigation> <group collapse="open"> <header>Biological classification</header> <data source="designation"><label>De..."
 
No edit summary
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<infobox theme="Species">
<includeonly><table class="infobox" style="width: 22em; background: #eaecf0; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; border-collapse: collapse; clear: right; float: right; margin: 0.5em 0 1em 1em;">
<image source="imagefallback">
  <tr style="background: #d9e5f0; text-align: center;">
<default>{{InfoboxGallery|image={{{image|}}}|caption1={{{option1|}}}|image2={{{image2|}}}|caption2={{{option2|}}}|image3={{{image3|}}}|caption3={{{option3|}}}}}</default>
    <th colspan="2" style="font-size: 125%; font-weight: bold; padding: 0.2em;">{{{name|{{PAGENAME}}}}}</th>
</image>
  </tr>
    <title source="name"></title>
  {{#if:{{{image|}}}
    <navigation name="mobile-eras"><center>{{Top-mobile}}</center></navigation>
  | <tr>
    <group collapse="open">
      <td colspan="2" style="text-align: center; padding: 0.2em;">[[File:{{{image}}}|frameless|upright=1.1|center]]{{#if:{{{image_caption|}}}|<br />{{{image_caption}}}}}</td>
    <header>Biological classification</header>
    </tr>
        <data source="designation"><label>Designation</label></data>
  }}
        <data source="class"><label>Classification</label></data>
  {{#if:{{{species|}}}
        <data source="subspecies"><label>Subspecies</label></data>
  | <tr>
        <data source="races"><label>Races</label></data>
      <th style="vertical-align: top;">Species</th>
     </group>
      <td style="vertical-align: top;">{{{species}}}</td>
    <group collapse="open">
    </tr>
    <header>Physical characteristics</header>
  }}
        <data source="height"><label>Average height</label></data>
  {{#if:{{{classification|}}}
        <data source="length"><label>Average length</label></data>
  | <tr>
        <data source="wingspan"><label>Average wingspan</label></data>
      <th style="vertical-align: top;">[[Biological classification]]s</th>
        <data source="mass"><label>Average mass</label></data>
      <td style="vertical-align: top;">{{{classification}}}</td>
        <data source="skincolor"><label>Skin color</label></data>      
    </tr>
        <data source="haircolor"><label>Hair color</label></data>
  }}
        <data source="feathers"><label>Feather color</label></data>
  {{#if:{{{designation|}}}
        <data source="eyecolor"><label>Eye color</label></data>
  | <tr>
        <data source="distinctions"><label>Distinctions</label></data>
      <th style="vertical-align: top;">Designation</th>
        <data source="lifespan"><label>Average lifespan</label></data>
      <td style="vertical-align: top;">{{{designation}}}</td>
    </group>
     </tr>
    <group collapse="open">
  }}
    <header>Sociocultural characteristics</header>
  {{#if:{{{subspecies|}}}
        <data source="origin"><label>Point of origin</label></data>
  | <tr>
        <data source="habitat"><label>Habitat</label></data>
      <th style="vertical-align: top;">Subspecies</th>
        <data source="diet"><label>Diet</label></data>
      <td style="vertical-align: top;">{{{subspecies}}}</td>
        <data source="language"><label>Language</label></data>
    </tr>
     </group>
  }}
<navigation><small>{{PlainLink|//starwars.fandom.com/wiki/Template:Species|name=<nowiki>[</nowiki>Source<nowiki>]</nowiki>}}</small></navigation>
  {{#if:{{{height|}}}{{{mass|}}}{{{distinctive_traits|}}}{{{lifespan|}}}
</infobox>{{PreloadCat}}<!-- TEMPLATE ENDS HERE.
  | <tr>
The following code flags infoboxes that do not have parameters defined.
      <th colspan="2" style="background: #a9a9a9; text-align: center;">Physical characteristics</th>
-->{{#invoke:InfoboxParamCheck|main|image|name|designation|class|subspecies|races|height|length|wingspan|mass|skincolor|haircolor|feathers|eyecolor|distinctions|lifespan|origin|habitat|diet|language|optional=option1,image2,option2,image3,option3|ignore=name}}{{#if:{{{origin|}}}||{{#if:{{#pos:{{{designation|}}}|Sentien}}|{{#if:{{#pos:{{{designation|}}}|Semi-sentient}}||{{#if:{{#pos:{{{designation|}}}|Non-sentient}}||[[Category:Species without origin]]}}}}}}}}{{#if:{{#pos:{{{class|}}}|Sentien}}|[[Category:Species with improper designation]]|}}<noinclude>
    </tr>
[[Category:Infobox templates]]
  }}
 
  {{#if:{{{height|}}}
===Usage Instructions:===
  | <tr>
This template should be used for both sentient and other species, the old {{Tl|Sentient}} is not available anymore.
      <th style="vertical-align: top;">Height</th>
 
      <td style="vertical-align: top;">{{{height}}}</td>
Use this template by pasting the following code into the top of the article, filling all relevant fields:
    </tr>
<pre><nowiki>{{Species
  }}
|image=
  {{#if:{{{mass|}}}
|name=
  | <tr>
|designation=
      <th style="vertical-align: top;">Mass</th>
|class=
      <td style="vertical-align: top;">{{{mass}}}</td>
|subspecies=
    </tr>
|races=
  }}
|height=
  {{#if:{{{distinctive_traits|}}}
|length=
  | <tr>
|wingspan=
      <th style="vertical-align: top;">Distinctive traits</th>
|mass=
      <td style="vertical-align: top;">{{{distinctive_traits}}}</td>
|skincolor=
    </tr>
|haircolor=
  }}
|feathers=
  {{#if:{{{lifespan|}}}
|eyecolor=
  | <tr>
|distinctions=
      <th style="vertical-align: top;">Lifespan</th>
|lifespan=
      <td style="vertical-align: top;">{{{lifespan}}}</td>
|origin=
    </tr>
|habitat=
  }}
|diet=
  {{#if:{{{homeworld|}}}{{{habitat|}}}{{{diet|}}}{{{language|}}}
|language=
  | <tr>
}}</nowiki></pre>
      <th colspan="2" style="background: #a9a9a9; text-align: center;">Socio‑cultural characteristics</th>
 
     </tr>
===Field list===
  }}
For unknown or non-pertinent values, leave the field blank.
  {{#if:{{{homeworld|}}}
<pre><nowiki>{{Species
  | <tr>
 
      <th style="vertical-align: top;">Homeworld</th>
|image= Image in [[File:Imagename.jpg]] format
      <td style="vertical-align: top;">{{{homeworld}}}</td>
 
    </tr>
|name= Name of the species (singular)
  }}
 
  {{#if:{{{habitat|}}}
|designation= Sentient, Semi-sentient, or Non-sentient (This should be pipelinked to [[Sentience/Legends|Sentience]])
  | <tr>
 
      <th style="vertical-align: top;">Habitat</th>
|class= The biological group to which the species belongs (Mollusk, Reptomammal, Canine, Feline, etc.)
      <td style="vertical-align: top;">{{{habitat}}}</td>
 
    </tr>
|subspecies= Names or descriptions of subspecies of the species.
  }}
 
  {{#if:{{{diet|}}}
|races= Names or descriptions of races of the species.
  | <tr>
 
      <th style="vertical-align: top;">Diet</th>
|height= The average height of an adult member of the species.
      <td style="vertical-align: top;">{{{diet}}}</td>
 
    </tr>
|length= The average length of an adult member of the species. This is generally only pertinent to species with horizontal orientations.
  }}
 
  {{#if:{{{language|}}}
|wingspan= The average wingspan of an adult member of the species.
  | <tr>
 
      <th style="vertical-align: top;">Language</th>
|mass= The average mass of an adult member of the species.
      <td style="vertical-align: top;">{{{language}}}</td>
 
    </tr>
|skincolor= All known skin pigmentations exhibited by the species. This includes scales, hides, membranes, etc.
  }}
 
</table></includeonly><noinclude>
|haircolor= All known hair or fur colors exhibited by the species.
{{Documentation}}
 
<templatedata>
|feathers= All known feather colors exhibited by the species.
{
 
"params": {
|eyecolor= All known eye colors exhibited by the species.
"name": {},
 
"image": {},
|distinctions= Any features that set the species apart.
"image_caption": {},
 
"species": {},
|lifespan= The average lifespan of a healthy member of the species.
"classification": {},
 
"designation": {},
|origin= The planet of origin for the species (or system if the planet is not known)
"subspecies": {},
 
"height": {},
|habitat= The general environment in which the species lives. For sentient species who live in settlements, this field is non-pertinent.
"mass": {},
 
"distinctive_traits": {},
|diet= The type of food the species eats. If specifics are unknown, values such as Carnivorous, Herbivorous, Omnivorous, etc. may be used.
"lifespan": {},
 
"homeworld": {},
|language=  The native language of most members of the species. For non-sentient species and some semi-sentient species this is non-pertinent.
"habitat": {},
}}</nowiki></pre></noinclude>
"diet": {},
"language": {}
}
}
</templatedata></noinclude>

Latest revision as of 13:34, 29 May 2026

Template:Documentation

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
imageimage

no description

Unknownoptional
image_captionimage_caption

no description

Unknownoptional
speciesspecies

no description

Unknownoptional
classificationclassification

no description

Unknownoptional
designationdesignation

no description

Unknownoptional
subspeciessubspecies

no description

Unknownoptional
heightheight

no description

Unknownoptional
massmass

no description

Unknownoptional
distinctive_traitsdistinctive_traits

no description

Unknownoptional
lifespanlifespan

no description

Unknownoptional
homeworldhomeworld

no description

Unknownoptional
habitathabitat

no description

Unknownoptional
dietdiet

no description

Unknownoptional
languagelanguage

no description

Unknownoptional