Template:Item infobox: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
suffix formatting for IDs docs
Aliser (talk | contribs)
size param docs: added a size template + example for variable size, allowed block formatting for flat bullet lists; added a gap class for flat bullet lists
Line 14: Line 14:
|Max stack = {{{max stack|}}}
|Max stack = {{{max stack|}}}
|Size = {{{size|}}}
|Size = {{{size|}}}
|Size_class = flat-bullet-list list-gap-medium
|Meow = {{{meoow|}}}
|Meow = {{{meoow|}}}
|Internal Size = {{{internal size|}}}
|Internal Size = {{{internal size|}}}
Line 19: Line 20:
|Technical Information = ID
|Technical Information = ID
|ID = {{{id|}}}
|ID = {{{id|}}}
|ID_class = flat-bullet-list
|ID_class = flat-bullet-list list-gap-medium
}}<!--
}}<!--


Line 58: Line 59:
"size": {
"size": {
"label": "Size",
"label": "Size",
"description": "How big is this item? (use smaller number first)",
"description": "How big is this item? If it's a predefined size (like 'Large'), use template {{isize|<size>}} to format it. If it's a specific size (like 1x3), specify it as is. If it has multiple sizes (eg a welding tool), specify them in a bullet list (use smaller number first)",
"example": "1x2, 2x4, 1x5,",
"example": "{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]",
"type": "line",
"type": "string",
"suggested": true
"suggested": true
},
},

Revision as of 15:45, 29 March 2025

Template documentation
view or edit this documentation about template documentation
Uses template styles
This template uses template styles found in:
Populates categories
This template will add categories when used:
(though on what conditions — consult with the template itself)

Template:Item infobox/doc

Infobox templates for roles/jobs.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Infobox titletitle

{{PAGENAME}} by default, using the title of the page.

Example
Regenerative Mesh
Auto value
{{PAGENAME}}
Linerequired
Imageimage img

no description

Example
Regenerative Mesh Sprite.png
Filesuggested
Categorycategory

no description

Example
Medical
Linesuggested
Typetype

no description

Example
Advanced topicals, tools, ect
Linesuggested
Max Stackmax stack

no description

Example
10, 30, 1
Linesuggested
Sizesize

How big is this item? If it's a predefined size (like 'Large'), use template {{isize|<size>}} to format it. If it's a specific size (like 1x3), specify it as is. If it has multiple sizes (eg a welding tool), specify them in a bullet list (use smaller number first)

Example
{{isize|Large}} (for predefined sizes) OR 1x2, 2x4, 1x5 (for specific sizes) OR * 1x2 [off] * 4x2 [on]
Stringsuggested
Internal sizeinternal size

How big is this item on the inside? For Example, medkits are 3x3 in a backpack but 2x4 on the inside

Example
2x3, 2x4, 10x8,
Linesuggested
Item IDid

Can be found in .yml files. If there are multiple IDs, use a bullet list.

Example
{{c|BloodPack}} / * {{c|MedkitCombatFilled}} [filled] * {{c|MedkitCombat}} [empty]
Stringsuggested