Template:Species: Difference between revisions

From Distant Sands 11
Jump to navigationJump to search
No edit summary
No edit summary
 
(5 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|}}}
    
  | <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>
 
  }}
</infobox>{{PreloadCat}}<!-- TEMPLATE ENDS HERE.
  {{#if:{{{height|}}}{{{mass|}}}{{{distinctive_traits|}}}{{{lifespan|}}}
The following code flags infoboxes that do not have parameters defined.
  | <tr>
-->{{#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>
      <th colspan="2" style="background: #a9a9a9; text-align: center;">Physical characteristics</th>
[[Category:Infobox templates]]
    </tr>
 
  }}
===Usage Instructions:===
  {{#if:{{{height|}}}
This template should be used for both sentient and other species, the old {{Tl|Sentient}} is not available anymore.
  | <tr>
 
      <th style="vertical-align: top;">Height</th>
Use this template by pasting the following code into the top of the article, filling all relevant fields:
      <td style="vertical-align: top;">{{{height}}}</td>
<pre><nowiki>{{Species
    </tr>
|image=
  }}
|name=
  {{#if:{{{mass|}}}
|designation=
  | <tr>
|class=
      <th style="vertical-align: top;">Mass</th>
|subspecies=
      <td style="vertical-align: top;">{{{mass}}}</td>
|races=
     </tr>
|height=
  }}
|length=
  {{#if:{{{distinctive_traits|}}}
|wingspan=
  | <tr>
|mass=
      <th style="vertical-align: top;">Distinctive traits</th>
|skincolor=
      <td style="vertical-align: top;">{{{distinctive_traits}}}</td>
|haircolor=
    </tr>
|feathers=
  }}
|eyecolor=
  {{#if:{{{lifespan|}}}
|distinctions=
  | <tr>
|lifespan=
      <th style="vertical-align: top;">Lifespan</th>
|origin=
      <td style="vertical-align: top;">{{{lifespan}}}</td>
|habitat=
    </tr>
|diet=
  }}
|language=
  {{#if:{{{homeworld|}}}{{{habitat|}}}{{{diet|}}}{{{language|}}}
}}</nowiki></pre>
  | <tr>
 
      <th colspan="2" style="background: #a9a9a9; text-align: center;">Socio‑cultural characteristics</th>
===Field list===
    </tr>
For unknown or non-pertinent values, leave the field blank.
  }}
<pre><nowiki>{{Species
  {{#if:{{{homeworld|}}}
 
  | <tr>
|image= Image in [[File:Imagename.jpg]] format
      <th style="vertical-align: top;">Homeworld</th>
 
      <td style="vertical-align: top;">{{{homeworld}}}</td>
|name= Name of the species (singular)
    </tr>
 
  }}
|designation= Sentient, Semi-sentient, or Non-sentient (This should be pipelinked to [[Sentience/Legends|Sentience]])
  {{#if:{{{habitat|}}}
 
  | <tr>
|class= The biological group to which the species belongs (Mollusk, Reptomammal, Canine, Feline, etc.)
      <th style="vertical-align: top;">Habitat</th>
 
      <td style="vertical-align: top;">{{{habitat}}}</td>
|subspecies= Names or descriptions of subspecies of the species.
    </tr>
 
  }}
|races= Names or descriptions of races of the species.
  {{#if:{{{diet|}}}
 
  | <tr>
|height= The average height of an adult member of the species.
      <th style="vertical-align: top;">Diet</th>
 
      <td style="vertical-align: top;">{{{diet}}}</td>
|length= The average length of an adult member of the species. This is generally only pertinent to species with horizontal orientations.
    </tr>
 
  }}
|wingspan= The average wingspan of an adult member of the species.
  {{#if:{{{language|}}}
 
  | <tr>
|mass= The average mass of an adult member of the species.
      <th style="vertical-align: top;">Language</th>
 
      <td style="vertical-align: top;">{{{language}}}</td>
|skincolor= All known skin pigmentations exhibited by the species. This includes scales, hides, membranes, etc.
    </tr>
 
  }}
|haircolor= All known hair or fur colors exhibited by the species.
</table></includeonly><noinclude>
 
{{Documentation}}
|feathers= All known feather colors exhibited by the species.
<templatedata>
 
{
|eyecolor= All known eye colors exhibited by the species.
"params": {
 
"name": {},
|distinctions= Any features that set the species apart.
"image": {},
 
"image_caption": {},
|lifespan= The average lifespan of a healthy member of the species.
"species": {},
 
"classification": {},
|origin= The planet of origin for the species (or system if the planet is not known)
"designation": {},
 
"subspecies": {},
|habitat= The general environment in which the species lives. For sentient species who live in settlements, this field is non-pertinent.
"height": {},
 
"mass": {},
|diet= The type of food the species eats. If specifics are unknown, values such as Carnivorous, Herbivorous, Omnivorous, etc. may be used.
"distinctive_traits": {},
 
"lifespan": {},
|language=  The native language of most members of the species. For non-sentient species and some semi-sentient species this is non-pertinent.
"homeworld": {},
}}</nowiki></pre></noinclude>
"habitat": {},
"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