Template:Infobox Species/doc: Difference between revisions

From Errapedia
Jump to navigation Jump to search
(Created page with "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 Rega...")
(No difference)

Revision as of 18:32, 15 February 2023

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 Any None Urushee, Enphune 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.

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
- _pageName String N/A Automatically generated using the name of the page. Ideal for linking pages, as the Page Name and Species Name may differ.
- _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.