Template:Infobox Species: Difference between revisions

From Errapedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 85: Line 85:
-->{{#if:{{bool|{{{is-sentient|yes}}}}}|[[Category:Sentient Species]]|[[Category:Insentient Species]]}}<!--
-->{{#if:{{bool|{{{is-sentient|yes}}}}}|[[Category:Sentient Species]]|[[Category:Insentient Species]]}}<!--


--><infobox type="species">
--><infobox theme="erra">
<title source="name"><default>{{PAGENAMEE}}</default></title>
<title source="name"><default>{{PAGENAMEE}}</default></title>
<image source="image"><default>File:{{PAGENAMEE}}.png</default></image>
<image source="image"><default>File:{{PAGENAMEE}}.png</default></image>

Revision as of 17:19, 15 February 2023

This template defines the table "species". View table.This template serializes Species data into Cargo tables for site-wide querying as well as displaying an infobox.

Parameters

The template accepts the following parameters. If a value is left blank and does not have a default value, it will not appear in the infobox. Not all values appear in the infobox, as many are data parameters used for sorting and querying.

Note Regarding Lists: For any parameter that indicates it is a List, use commas.

Note Regarding Booleans (Bools): Due to how MediaWiki handles Boolean values, the default values of "yes" and "no" are used in place of "true" and "false". However, you can still use "true" and "false" if desired in these places; the template will automatically translate them for you.

Cargo-Stored Values

The following are values stored in the Cargo database for the purposes of querying. Not all of these values will display on the Infobox. To see which values are shown in the infobox or the specifications of each item in the Cargo table, see below.

(,) as a delimiter to separate values.

Cargo-Stored Values
Parameter Parameter Type Accepted Values/Format Default Example Description
name String Any {{PAGENAME}} Arcana The name of the species, if it differs from the page name.
name-scientific String Any None Strigisformes Arcana The scientific name of the species, if it has one.
subspecies List of Strings Any None Draconis, Kobolds A list of species that are subspecies of this one, if any.
parent-species List of String Any None Dragons, Humans A list of species that this species is a subspecies of, if any.
avg-height 1-2 Numbers (Separated by -)
  • {X}
  • {X}-{X}
None
  • 1.2
  • 1.2-1.5
The average height of the species in meters. If there is only one value, specify as only a number. If it is a range, use the format {minimum-height}-{maximum-height}, excluding brackets.
avg-weight 1-2 Numbers (Separated by -)
  • {X}
  • {X}-{X}
None
  • 30.2
  • 30.2-50.6
The average weight of the species in kilograms. If there is only one value, specify as only a number. If it is a range, use the format {minimum-weight}-{maximum-weight}, excluding brackets.
avg-lifespan 1-2 Numbers (Separated by -) OR Unknown
  • {X}
  • {X}-{X}
  • Unknown
None
  • 80
  • 80-100
  • Unknown
The average lifespan of the species in years. If there is only one value, specify as only a number. If it is a range, use the format {minimum-years}-{maximum-years}, excluding brackets. If the lifespan is unknown, simply specify "Unknown".
genetic-ancestors List of Strings OR Unknown
  • Any
  • Unknown
None
  • Dragons, Humans
  • Unknown
A list of the species' genetic ancestors, if any. This differs from the parent-species parameter as genetic ancestors refers to species that this one has direct genetic ancestry from (e.g. Draconis versus most variants of Arcana). If genetic ancestors are explicitly unknown (as opposed to simply not specified or irrelevant), simply specify "Unknown".
origin-regions List of Strings OR Unknown
  • Any
  • Unknown
None
  • Urushee, Enphune
  • Unknown
A list of the origin regions of this species, if any. This differs from the common-regions parameter as it refers to the locations this species originated from, but may not necessarily inhabit in modern day Erra. If the origin regions of this species are explicitly unknown (as opposed to simply not specified or irrelevant), simply specify "Unknown".
common-regions List of Strings OR None Any None
  • Urushee, Enphune
  • None
A list of the regions where this species is commonly found in modern-day Erra, if any. This differs from the origin-regions parameter as it refers to the locations that this species currently can be found in, but may not have necessarily originated from. As this refers to modern-day locations of species which are not obscured in the vast majority of cases, this parameter does not currently support the "Unknown" parameter. However if there is no single region or set of of regions that this species is identified with, the "None" parameter can be used instead.
is-sapient Boolean
  • yes
  • no
yes
  • yes
  • no
Whether or not the species is sapient (has humanlike or near-humanlike intelligence).
is-extinct Boolean
  • yes
  • no
no
  • yes
  • no
Whether or not the species is extinct (or is at least perceived as extinct) in modern-day Erra.
arcana-based-on 2 Strings Separated by / Any/Any None Wolf/Wolves The singular and plural terms for the species this Arcana variant is based on, if any.
navbox-category List of Strings Any main arcanamajor A set of values used to indicate which navigation boxes this species should populate. Primarily used for the individual pages of various subspecies, like for each subtype of Arcana. If set to "none", this species will not appear in any navigation box.

Parameter Cargo and Infobox Information

The following is a reference to the Cargo and Infobox data of this template. If a parameter name is not specified (-), then that means the parameter is automatically generated. In this case, information regarding this parameter will be provided in the Parameter Generation Criteria section.

Parameter Cargo and Infobox Information
Parameter Name Name in Cargo Database Cargo Data Type Displays in Infobox Infobox Display Title Parameter Generation Criteria
name species_name String N/A N/A
subspecies subspecies_names List (,) of String Subspecies N/A
parent-species parent_species List (,) of String Parent Species N/A
is-sentient is_sentient Boolean N/A N/A
is-extinct is_extinct Boolean N/A N/A
origin-regions origin_regions List (,) of String) Originated From N/A
- origin_regions_known Boolean N/A Automatically set as false if origin-regions equals "unknown" (case-insensitive), otherwise true.
- has_common_regions Boolean N/A Automatically set as false if common-regions equals "none" (case-insensitive), otherwise true.
- _pageTitle String N/A Automatically generated using the title of the page. _pageName is generally more useful for getting this information.
- _pageNamespace Integer N/A Automatically generated using the Namespace of the page. Only useful in a small number of cases.
- _pageID Integer N/A Automatically generated upon page creation. Only useful in a small number of cases.
- _ID Integer N/A Automatically generated upon addition of Species to Cargo table. Represents the Species itself rather than the page it is on. Only useful in a small number of cases.

Non-Cargo Stored Parameters

The following are values not stored in the Cargo table, but are instead used to define various infobox parameters.

Infobox-Only Parameters
Parameter Parameter Type Accepted Values/Format Default Example Description
image File File:{FILENAME} File:{{PAGENAMEE}}.png
  • File:DraconisSpecies.png
  • File:SentiusConstruct.jpg
A filename representing the image you would like to use in the infobox. Must be a valid image filetype. If none is specified, the infobox will attempt to use a .png file with the same name as the page, if it exists.
lifespan-subtext String Any None Believed to be several centuries Subtext to include beside the species' listed lifespan in a set of parentheses (e.g. 300-400 years (speculated)). Useful for if the lifespan of the species is unknown.