Template:Species infobox: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly><templatestyles src="Template:Species infobox/styles.css"></templatestyles><!--
 
-->{{#invoke:Infobox|main
|kind=species
|kind=species
|sep=,
|sep=,
|title={{{title|{{PAGENAME}}}}}
|title={{{title|{{PAGENAME}}}}}
|image={{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
|image={{#if:{{{image|}}}|[[File:{{{image}}}|250px]]}}
|sections=Main
|sections=Main, Internals, Appearance, Environment, Survivability, Technical


|Main=Naming, Abilities, Livable temperature, Breathes, Blood type, Diet
|Main=Roundstart, Naming, Sexes, Abilities
|Main_nolabel = yes
|Roundstart = {{#ifeq: {{yesno|{{{roundstart|}}}}}|yes|Yes|No}}
|Roundstart_label = {{Tooltip|Roundstart|Can be selected in character editor.}}
|Naming = {{{naming|}}}
|Naming = {{{naming|}}}
|Sexes = {{{sexes|}}}
|Abilities = {{{abilities|}}}
|Abilities = {{{abilities|}}}
|Livable temperature = {{{livable temperature|}}}
 
|Livable temperature_label = {{Tooltip|Livable temperature|Environment temperature range for the species beyond which the species will begin to take damage.}}
|Internals = Blood type
|Blood type = {{{blood type|}}}
 
|Appearance = Skin tone
|Skin tone = {{{skin tone|}}}
 
|Environment = Temperature range, Breathes, Diet
|Temperature range = {{{temperature range|}}}
|Breathes = {{{breathes|}}}
|Breathes = {{{breathes|}}}
|Blood type = {{{blood type|}}}
|Diet = {{{diet|}}}
|Diet = {{{diet|}}}
|Survivability = Damage resistances, Damage weaknesses
|Damage resistances = {{{damage resistance|}}}
|Damage weaknesses = {{{damage weakness|}}}
|Technical = ID, Prototype, Random selection weight
|ID = {{{id|}}}
|Prototype = {{{prototype|}}}
|Random selection weight = {{{random selection weight|1}}}
|Random selection weight_label = {{Tooltip|Random selection weight|Each species has a weight assigned to it that determines its chance to roll when clicking {{button|Randomize}} in character editor.}}


}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{docs}}
{{docs|bb=
{{uses template styles}}
}}


[[Category:Infobox templates]]
[[Category:Infobox templates]]
Line 26: Line 50:
"type": "line",
"type": "line",
"required": true,
"required": true,
"example": "Nuclear Operative"
"example": "Moth",
"default": "{{PAGENAME}}",
"autovalue": "{{PAGENAME}}"
},
},
"image": {
"image": {
"label": "Image",
"label": "Image",
"example": "File:Detective.png",
"example": "Moth.png",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 36: Line 62:
"naming": {
"naming": {
"label": "Naming conventions",
"label": "Naming conventions",
"description": "What rules do the names for this species follow?",
"description": "What rules do the names for this species follow? Specify a format and an example/examples.",
"example": "Common, Verbal (ex. Eats-The-Mouse) ",
"example": "''First Last'', example: John Station",
"type": "line",
"type": "line",
"suggested": true
"suggested": true
Line 48: Line 74:
"suggested": true
"suggested": true
},
},
"livable temperature": {
"temperature range": {
"label": "Livable temperature",
"label": "Temperature range",
"description": "Livable temperature range in Celsius.",
"example": "{{Degrees|5|C}} to {{Degrees|40|C}}",
"type": "line",
"type": "line",
"suggested": true
"suggested": true
Line 64: Line 92:
"diet": {
"diet": {
"label": "Diet",
"label": "Diet",
"type": "line",
"type": "string",
"suggested": true
"suggested": true
},
},
Line 75: Line 103:
],
],
"suggested": true
"suggested": true
},
"roundstart": {
"label": "Roundstart?",
"description": "Whether the species is available in character editor.",
"type": "boolean",
"autovalue": "0",
"suggested": true
},
"sexes": {
"label": "Sexes",
"description": "What sex can a species be?",
"type": "line",
"suggestedvalues": [
"Male or Female",
"Unixes"
],
"suggested": true
},
"damage resistance": {
"label": "Damage resistance",
"type": "string",
"suggested": true
},
"damage weakness": {
"label": "Damage weakness",
"type": "string",
"suggested": true
},
"id": {
"label": "ID",
"description": "Species ID",
"example": "{{c|Moth}}",
"type": "line",
"suggested": true
},
"prototype": {
"label": "Prototype name",
"description": "Species prototype name.",
"example": "{{c|MobMoth}}",
"type": "line",
"suggested": true
},
"random selection weight": {
"label": "Random selection weight",
"description": "A species can have a weight assigned to it in 'species_weights.yml' that determines its chance to roll when clicking randomize button in character editor. By default (if it's not in the file), the value is 1.",
"example": "1",
"type": "number",
"default": "1",
"suggested": true
},
"skin tone": {
"label": "Skin tone",
"type": "line",
"suggested": true,
"example": "<nowiki>#ffe1cc</nowiki> (example for human; nowiki is to escape the dash '#' symbol used in HEX colors}"
}
}
},
},
Line 80: Line 163:
"title",
"title",
"image",
"image",
"roundstart",
"naming",
"naming",
"sexes",
"abilities",
"abilities",
"livable temperature",
"blood type",
"skin tone",
"temperature range",
"breathes",
"breathes",
"blood type",
"diet",
"diet"
"damage resistance",
"damage weakness",
"id",
"prototype",
"random selection weight"
],
],
"description": "Infobox templates for species.",
"description": "Infobox templates for species.",

Latest revision as of 04:50, 11 April 2025

Template documentation
view or edit this documentation about template documentation
Uses template styles
This template uses template styles found in:

Template:Species infobox/doc

Infobox templates for species.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Infobox titletitle

no description

Default
{{PAGENAME}}
Example
Moth
Auto value
{{PAGENAME}}
Linerequired
Imageimage

no description

Example
Moth.png
Filesuggested
Roundstart?roundstart

Whether the species is available in character editor.

Auto value
0
Booleansuggested
Naming conventionsnaming

What rules do the names for this species follow? Specify a format and an example/examples.

Example
''First Last'', example: John Station
Linesuggested
Sexessexes

What sex can a species be?

Suggested values
Male or Female Unixes
Linesuggested
Abilitiesabilities

List of abilities. Don't add descriptions here, use the page. For multiple abilities, list them in a bullet list.

Example
Tail Pulling
Linesuggested
Blood typeblood type

no description

Suggested values
Iron-based Copper-based
Linesuggested
Skin toneskin tone

no description

Example
<nowiki>#ffe1cc</nowiki> (example for human; nowiki is to escape the dash '#' symbol used in HEX colors}
Linesuggested
Temperature rangetemperature range

Livable temperature range in Celsius.

Example
{{Degrees|5|C}} to {{Degrees|40|C}}
Linesuggested
Breathesbreathes

no description

Suggested values
Oxygen Nitrogen
Linesuggested
Dietdiet

no description

Stringsuggested
Damage resistancedamage resistance

no description

Stringsuggested
Damage weaknessdamage weakness

no description

Stringsuggested
IDid

Species ID

Example
{{c|Moth}}
Linesuggested
Prototype nameprototype

Species prototype name.

Example
{{c|MobMoth}}
Linesuggested
Random selection weightrandom selection weight

A species can have a weight assigned to it in 'species_weights.yml' that determines its chance to roll when clicking randomize button in character editor. By default (if it's not in the file), the value is 1.

Default
1
Example
1
Numbersuggested